Skip to main content
Solved

Calling External c# form by passing parameter

  • December 7, 2019
  • 3 replies
  • 528 views

Forum|alt.badge.img+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.

Best answer by Lahirumala de Mel

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.

3 replies

Forum|alt.badge.img+14
  • Hero (Partner)
  • 241 replies
  • December 7, 2019

Does this help?

 

FndPLSQLSelectCommand cmd = new FndPLSQLSelectCommand(cnn, stSQL);

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


Lahirumala de Mel
Hero (Employee)
Forum|alt.badge.img+7
  • Hero (Employee)
  • 87 replies
  • Answer
  • December 10, 2019

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.


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 1 reply
  • June 2, 2023

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.