Solved

Calling External c# form by passing parameter

  • 7 December 2019
  • 3 replies
  • 480 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

3 replies

Userlevel 6
Badge +14

Does this help?

 

FndPLSQLSelectCommand cmd = new FndPLSQLSelectCommand(cnn, stSQL);

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

Userlevel 3
Badge +7

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.

Badge +1

Is possible to send ifs user credentials to external application as parameters? Without this user have to manual log to external application every time when he use it. 

Reply