Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#135205 - 08/23/06 08:45 AM Refreshing field after dialog window closes
remedybuff Offline
Stealth Member

Registered: 05/05/06
Posts: 76
Loc: New Jersey, USA
Hi,

I have a button on a form which opens up a dialog window and the fields in the dialog window are filled from the form which has the button. One of the fields in both the forms is a date/time field.

When I change the date/time field in the dialog window (and click OK in dialog window), I need those changes to be reflected in the form from which the dialog was invoked, as soon as the dialog window is closed.

Passing events is not working with 6.3 (Also, I think passing events is not supported with dialog windows as they are modal).

Any other way, that I could refresh the field in my main form as soon as the dialog window is closed? Any workarounds?

Any suggestions would be appreciated.

Thanks,

Anuj.

Top
#135206 - 08/23/06 08:51 AM Re: Refreshing field after dialog window closes [Re: remedybuff]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Hi,

You can use On Close mapping in the Open Window action associated with Commit.
_________________________
Vincent.

Top
#135207 - 08/23/06 08:59 AM Re: Refreshing field after dialog window closes [Re: Vincent_RIEDWEG]
remedybuff Offline
Stealth Member

Registered: 05/05/06
Posts: 76
Loc: New Jersey, USA
Hi Vincent,

I think that will refresh the contents in the dialog window...

I would like to refresh the contents in the window from which the dialog was invoked...

Anuj.

Top
#135208 - 08/23/06 09:11 AM Re: Refreshing field after dialog window closes [Re: Vincent_RIEDWEG]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Quote:
You can use On Close mapping in the Open Window action associated with Commit.


Try it and enjoy
_________________________
Vincent.

Top
#135209 - 08/23/06 09:12 AM Re: Refreshing field after dialog window closes [Re: remedybuff]
remedybuff Offline
Stealth Member

Registered: 05/05/06
Posts: 76
Loc: New Jersey, USA
From the dialog window, I do a push fields, commit changes and a close window action...

But after pushing the fields to the main form from the dialog window, how do I refresh the field on the main form..

I want to see the reflected changes in the main form as soon as the dialog window is closed...

Any help would be appreciated..

Thanks,

Anuj.

Top
#135212 - 08/23/06 09:39 AM Re: Refreshing field after dialog window closes [Re: remedybuff]
thwe Offline
Stealth Member

Registered: 03/11/04
Posts: 188
Loc: Germany
If you do not have the need to save the data to database then remove the push fields and define a mapping for "On Close" in your Window Open action as Vincent sayed.

If the push fields is necessary and the data you need is not fully aviable in the dialog include a set field after the window open action (on the form where you invoke the window open action).

Top
#135214 - 08/23/06 10:24 AM Re: Refreshing field after dialog window closes [Re: thwe]
remedybuff Offline
Stealth Member

Registered: 05/05/06
Posts: 76
Loc: New Jersey, USA
Vincent and thwe, thanks for the replies..

Now, I need to do a run process action on the field that is modified... for. eg. if i modified the date/time field in the dialog window, the changes will be seen in the parent window, if I open the parent window in the 'on close' active link of the dialog (as mentioned in the replies).. But how do i detect that there was a change in the date/time field in the parent window so that I can do the 'run process' action?

On what active link do I call a run process action...

I would appreciate your reply..

Thanks,

Anuj.

Top
#135216 - 08/23/06 10:36 AM Re: Refreshing field after dialog window closes [Re: remedybuff]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Hi,

Use a temporary Date/Time field in your parent Window and use this field in the On Close mapping instead of the original Date/Time field.

Then, after you Open Window action in your parent form verify if the original Date/Time field is different than your temporary Date/Time field.

If it's different, copy the new value in your original Date/Time field and run your process...
_________________________
Vincent.

Top
#135218 - 08/23/06 11:58 AM Re: Refreshing field after dialog window closes [Re: Vincent_RIEDWEG]
remedybuff Offline
Stealth Member

Registered: 05/05/06
Posts: 76
Loc: New Jersey, USA
Vincent, thank you very much for the reply.

I did as u suggested, and now i have a temporary date/time field..

I have an active link which check if the temporary field is different from the original date/time field which executes on display. If different, i use a set fields, commit and run process actions.

But the thing is that when I use the run process action, it takes the old value from the original date/time field, not the new value that I set from the temporary field using the set fields action, even when I commit the changes after the set fields.

Any suggestions?

Thanks,

Anuj.

Top
#135219 - 08/23/06 12:00 PM Re: Refreshing field after dialog window closes [Re: remedybuff]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Which process do you run?
_________________________
Vincent.

Top
Page 1 of 2 1 2 >