Announcements
No record found.
Hi Friends,
I want to pass stringedit value child form to parent form.
For example: Am opening a formB from FormA i wants to pass the stringedit values from formB to formA.
Thanks in advance.
*This post is locked for comments
Hi Sukrut,
I would like to pass from formb to formA.
Thanks in advance
Hi,
you can create a method on formA and call this method from formB using the element.args().caller-object.
Example, Method on formA
public void myMethod(str _str) { info(_str); }
Call from formB
if (element.args() && element.args().caller() && element.args().caller() is FormRun) { if (sysFormRun::hasMethod(element.args().caller(), identifierStr("yourMethod"))) { element.args().caller().yourMethod("Hello World"); } }
Regards,
Heinz
Hi Heinz,
Thanks you for reply.
I placed the below code in closeOk method on my formB but it is failing to go inside first if statement i.e element.args() && element.args().caller() && element.args().caller() is FormRun . Please help me on this. Thanks in advance.
if (element.args()
&& element.args().caller()
&& element.args().caller() is FormRun)
{
if (sysFormRun::hasMethod(element.args().caller(), identifierStr("yourMethod")))
element.args().caller().yourMethod("Hello World");
}
Hi Sukrut Parab,
Add in init method but am not finding any difference.
Hi Karthickks,
Just look into below code this will help you.
In Form1
public void getValueMethod(str s){ info(strFmt("From Form2 : %1",s));}
void clicked(){ Args args; FormRun formRun;
super();
args = new Args(); args.caller(element); args.name( formstr( Form2 ) );
formRun = classFactory.formRunClass( args ); formRun.init(); formrun.run(); formrun.wait();}
In Form2
public void close(){
super(); if (element.args() && element.args().caller() && element.args().caller() is FormRun) { if (sysFormRun::hasMethod(element.args().caller(), identifierStr("getValueMethod"))) { element.args().caller().getValueMethod("Pass the Text"); } } }
Hi Karthickks, how do you open fromB?
My code assumes that it is called via a MenuItemButton
Hi Heinz Schweda,
Thank you for your reply, Will check and get back with you.
Thanks Johnkrish, Will check and let you know!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader