08-06-2018 09:43 AM
Hello,
I have a panel that have several tabs. I would like to retrieve the value of a field from one tab from the callback function of another tab, how to do?
Thank you for help
Solved! Go to Solution.
08-06-2018 10:40 AM
Hi Taloche,
To make sure I understand your question, you have:
- Panel 1
- Tab 1
- Tab 2
- Callback function from Tab 2
Goal:
- You want to make it so you retrieve the return of the callback function from Tab 2 using a control from Tab 1.
Solution (if I understood correctly):
- You can force a control from Tab 1 that calls on the callback function when its EVENT (such as EVENT_COMMIT) occurs so that the Panel and Control from Tab 2 are the inputs.
For example, this can be the case for a control in Tab 1:
case EVENT_COMMIT:
returnValue = CallbackFunction (<Handle for Tab 2>, <Control for Tab 2>, .... );
break;
Let me know if I misunderstood the question or if there is anything I can clarify.
Regards,
Vincent
08-07-2018 04:52 AM
Hi Vincent,
Thanks for your answer, i have find my solution:
I have :
1 panel,
2 tabs with text fields
When it is the Tab 2 that is active I want to be able to read a field from Panel 1. It was just my handle that was not good.
Bests regards
08-07-2018 10:27 AM
Hi Taloche,
Not a problem. Be sure to mark your response as the answer! This helps other users find the answer quickly and marks the issue to be RESOLVED.
Regards,
Vincent