Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 02 SEP 2005 04:23:31PM Mark Ford wrote:

I wish to pass data to a Dialog_Box, allow the client to change the data and then save the data.

I have defined a Dialog _BOX Window (ANSWER_TEXT_LABEL) containing a single edit table (Label_text).

From a child window I click a button to display the Dialog_Box using a Click Promoted_Event.

The code for the button in the Click Promoted_Event is:

Text_label=xlate(rp.survey:'_QUS',q_qnum,11,"X")

CREATEPARAM=TEXT_LABEL

RESULT=DIALOG_BOX("ANSWER_TEXT_LABEL",@window,createparam)

In the CREATE Promoted event for the ANSWER_TEXT_LABEL window I have defined

=set_property(@window:".LABEL_TEXT","TEXT",createparam)

The Dialog_Box displays correctly. The Create Event fires but does not pass the createparam data to the Dialog_Box. If the createparam parameter is replaced with "XXXXXXX" the "xxxxxxx" data is displayed correctly in the Dialog_Box.

How is the Createparam Dialog_Box data passed to the Create event? This seems to be the piece of the puzzle I am missing.


At 02 SEP 2005 05:00PM dbakke@srpcs.com's Don Bakke wrote:

Mark,

It sounds like your promoted CREATE event isn't passing the parameter through. That is, the parameter is probably missing. How did you design it?

dbakke@srpcs.com

SRP Computer Solutions, Inc.


At 02 SEP 2005 07:30PM Mark Ford wrote:

Thanks Don. As you suspected I was not passing the information to the Promoted Create routine. I corrected this and the data is now being displayed correctly.

Now that I have the information displayed my next task is to Save the changes.

Do you know of Revelation "How to Guide" for using the various Dialog functions and subroutines (Create_Dialog, Dialog_Box, End_Dialog and Set_Dialog_Info)? I have checked the Help/documentation but I found the explanations at best a reference guide.

Your help is very much appreciated.


At 04 SEP 2005 08:01PM Barry Stevens wrote:

]]my next task is to Save the changes

In the click event for the dialog's "SAVE" button, get the field values that you want from the dialg screen then

Values="

Values=Value1

.

.

Values=Valuen

call end_dialog(@window,Values)

These values will then be returned to your "function" call to dialog_box.


At 07 SEP 2005 07:52PM Mark Ford wrote:

Thanks Barry. Your sample code was just what I was looking for. All is now working.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/cd9ed795f3b388ea852570700070048f.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1