Skip to main content
Solved

Update data one Screen to another Screen

  • February 1, 2022
  • 9 replies
  • 579 views

Forum|alt.badge.img+1

Hi guys good morning/noon/evening

I have 2 screens,  Screen1 & Screen 2 When I change/update data in Screen 1  I need to updated screen2  (saved data in DB should be updated )  that have the same SectionID value.

find below screen shot 

Thanks in advance

 

Best answer by deebhane

jinin wrote:

Hi @ShahidaValiSyed04 

can you please share the code snippet once?

hi @ShahidaValiSyed04  

The code should be as follow 

 PXSelect <DACNameDeclare a view name

<px:PXGridLevel DataMember="Declare the same view name" >

  <px:PXGridColumn DataField="DeclareColumnName" Width="100px" />

 </px:PXGridLevel>

Sharing the above code assuming the screen1 and screen 2 the DAC fields are same.

If screen 1 and screen 2 DAC fields are different then we need to use different approach of update.

 

View original
Did this topic help you find an answer to your question?

9 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 693 replies
  • February 1, 2022

Hi @ShahidaValiSyed04 

In screen2, you can simply create View with the DAC and assign it to the grid. It will show the updated records.

 


deebhane
Semi-Pro I
Forum|alt.badge.img+1
  • Semi-Pro I
  • 62 replies
  • February 1, 2022

hi @ShahidaValiSyed04,

What @jinin  suggested would work, if  you have created relation ship for screen1 and screen 2 records. 

 


Forum|alt.badge.img+1
jinin wrote:

Hi @ShahidaValiSyed04 

In screen2, you can simply create View with the DAC and assign it to the grid. It will show the updated records.

 

It’s won’t working jinin


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 693 replies
  • February 2, 2022

Hi @ShahidaValiSyed04 

can you please share the code snippet once?


deebhane
Semi-Pro I
Forum|alt.badge.img+1
  • Semi-Pro I
  • 62 replies
  • Answer
  • February 2, 2022
jinin wrote:

Hi @ShahidaValiSyed04 

can you please share the code snippet once?

hi @ShahidaValiSyed04  

The code should be as follow 

 PXSelect <DACNameDeclare a view name

<px:PXGridLevel DataMember="Declare the same view name" >

  <px:PXGridColumn DataField="DeclareColumnName" Width="100px" />

 </px:PXGridLevel>

Sharing the above code assuming the screen1 and screen 2 the DAC fields are same.

If screen 1 and screen 2 DAC fields are different then we need to use different approach of update.

 


  • Freshman I
  • 6 replies
  • February 16, 2023

I was create a form for new task, 

 

and used view with name task same that original

 

but in the first screen I have a grid with view taks, and second screen for create task,

 

I don’t have grid in a second screen


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 693 replies
  • February 16, 2023

Hi @bmendoza31 

Can you please elaborate the issue you are facing?


  • Freshman I
  • 6 replies
  • February 16, 2023

Hello
in the CRM
I have created a new window Tasks

to create a task either from leads or from opportunities

I created it because the factory CR306020 screen is slow

Now I have created a new one, and I need that when I save changes, the activities grid of the screen id cr304000 is updated

 

to call my new window tasks i create an instance

var graph = PXGraph.CreateInstance<CrTaskMaintv2>();
                Guid noteidL = oppor.NoteID.Value; 
                graph.inicializar(noteidL, oppor.BAccountID.Value    );
                string screenID = "US306020";
                throw new PXRedirectRequiredException(PXSiteMap.Provider.FindSiteMapNodeByScreenID(screenID).Url, graph, PXBaseRedirectException.WindowMode.NewWindow, "Tareas"); 


  • Freshman I
  • 6 replies
  • February 16, 2023

I want call an action on the cr304000 from my instanceUS306020 and execute this acction


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings