Solved

Calling External c# form by passing parameter

  • 7 December 2019
  • 2 replies
  • 375 views

Badge +1

i have created a grid view form to display the payroll summary in c# form, now i want to call it from payrol calculation screen of IFS by passing payroll id.  i know i can call the form by using external program. I dont know how to pass parameters.

icon

Best answer by Lahirumala de Mel 10 December 2019, 04:28

View original

2 replies

Userlevel 6
Badge +14

Does this help?

 

FndPLSQLSelectCommand cmd = new FndPLSQLSelectCommand(cnn, stSQL);

cmd.BindVariables.AddFndTextVariable("order_no", order_no, FndBindVariableDirection.In);

Userlevel 1
Badge +2

You can follow this documentation path which shows how form data can be used as parameters for an “external program” type custom menu.
 

https://docs.ifs.com/techdocs/Foundation1/040_administration/220_user_interface/020_custom_objects/020_custom_menus/default.htm#How_to_use_form_data_in_parameters
Basically you can write it like this

 

Then in your application access payroll_id as a commandline parameter as you would do in a normal c# application.

Reply