Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

To pass the value from table field to another formstringcontrol

(0) ShareShare
ReportReport
Posted on by 1,457
i need to pass the value from the table field to the form stringcontrol , can anyone help me on this how can i pass , if i select the field on cust parameter then the value should be pass to form string control.
 
 
thanks,
Regards,
Dinesh
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    To pass the value from table field to another formstringcontrol
    Assuming control not bound to a datasource, get the control in init method of form and in the text method pass the value from parameter.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,532 Super User 2024 Season 2 on at
    To pass the value from table field to another formstringcontrol
     
    Do you want to set string control value when you open the dialog based on the Cust Parameter form? Can you share more details about your code and requirements?
     
     
    Thanks,
    Waed Ayyad
  • Martin Dráb Profile Picture
    Martin Dráb 230,414 Most Valuable Professional on at
    To pass the value from table field to another formstringcontrol
    You seem to be saying that you need no lookup, no code or modification etc., you'll just have one or two (please clarify) dialog fields that you want to set a value to. Is that correct.
     
    It's not clear to me what you mean by "dialog basic". If you created DialogField object on your own, I already told you how to set the value: use the value() method. If it's a SysOperation dialog, set the value in the contract class.
     
    If you have a question, please write it down. There is none in your reply.
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To pass the value from table field to another formstringcontrol
    hi ,
    martin ,
    thanks, for reply ,
    there is slight change in requirement .
    my form type is dialogue basic , and the form string control is non editable on dialog , i have put the field in cust parameter form , so if i select the value of journal name from the parameter in cust parameter from the value should flow when my dialoue opens into form string control "JournalName" . please can you guide me on this .
     
     
     
    thanks,
    Regards,
    Dinesh
  • Martin Dráb Profile Picture
    Martin Dráb 230,414 Most Valuable Professional on at
    To pass the value from formstringcontrol to another formstringcontrol
    Getting a setting dialog field values is simple - there is value() method for that.
     
    But you'll need two more important parts:
     
    1) You need to be able to run code when journal name value changes. Use registerOverrideMethod() to use your own override of modified() method. How exactly you should do it depends on how you create the dialog (which you didn't mention).
    2) You want a description, but the first controls contains a journal name. You'll need to find the journal name record and take a description from there.
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,457 on at
    To pass the value from formstringcontrol to another formstringcontrol
    here is my dialogue form , and the name formstringcontrol is below that where i want to pass the value of from cust parameter field should i use init  method ,

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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans