Can code and action execute at the same time?

L

Lin

Hi

Is it possible to create a button with custom submit code along with switch
view action perform the task of sumbitting to a sharepoint website and switch
to a different view when you click it, or do you need 2 buttons and
additional coding?
 
S

Steve van Dongen [MSFT]

Hi

Is it possible to create a button with custom submit code along with switch
view action perform the task of sumbitting to a sharepoint website and switch
to a different view when you click it, or do you need 2 buttons and
additional coding?

Switch the view using code instead of actions.
XDocument.View.SwitchView(viewName)

Regards,
Steve
 
Top