Solved

Update data one Screen to another Screen

  • 1 February 2022
  • 9 replies
  • 524 views

Userlevel 3
Badge +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

 

icon

Best answer by deebhane 2 February 2022, 11:08

View original

9 replies

Userlevel 7
Badge +11

Hi @ShahidaValiSyed04 

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

 

Userlevel 4
Badge +1

hi @ShahidaValiSyed04,

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

 

Userlevel 4
Badge +1

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.

 

Userlevel 7
Badge +11

Hi @ShahidaValiSyed04 

can you please share the code snippet once?

Userlevel 7
Badge +11

Hi @bmendoza31 

Can you please elaborate the issue you are facing?

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"); 

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

Userlevel 3
Badge +1

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

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

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved