How to pass value from a response window to a sheet window without hard coding window's name?

--------------61550542C801F20B8152B0BC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I opened a response window from the sheet window, got value from the
response window and now I need to put it into the sle of thesheet
window. The response window is used by multiple sheet windows,  so I
can't hard code the sheet window's name. It should be a generic code.
Below  is the code which needs to be modified.

string ls_value, ls_value_cd
ls_value = dw_1.GetItemString(dw_1.getrow (),"frb_dept_nm")
ls_value_cd = dw_1.GetItemString(dw_1.getrow (),"frb_dept_cd")
CloseWithReturn(parent,( "(" + ls_value_cd +")" +"  " + ls_value ))
w_linkageretrieve.sle_dept.Text = Message.StringParm
I need to replace w_linkageretrieve on something generic.

--------------61550542C801F20B8152B0BC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
I opened a response window from the sheet window, got value from the response
window and now I need to put it into the sle of thesheet window. The response
window is used by multiple sheet windows,&nbsp; so I can't hard code the
sheet window's name. It should be a generic code.&nbsp; Below&nbsp; is
the code which needs to be modified.

<P>string ls_value, ls_value_cd
<BR>ls_value = dw_1.GetItemString(dw_1.getrow (),"frb_dept_nm")
<BR>ls_value_cd = dw_1.GetItemString(dw_1.getrow (),"frb_dept_cd")
<BR>CloseWithReturn(parent,( "(" + ls_value_cd +")" +"&nbsp; " + ls_value
))
<BR><B><FONT COLOR="#3366FF">w_linkageretrieve.sle_dept.Text = Message.StringParm</FONT></B>
<BR>I need to replace w_linkageretrieve on something generic.</HTML>

--------------61550542C801F20B8152B0BC--

0
Henry
2/23/1998 2:09:59 PM
sybase.powerbuilder.objects 3160 articles. 0 followers. Follow

2 Replies
876 Views

Similar Articles

[PageSpeed] 13
Get it on Google Play
Get it on Apple App Store

Thanks a lot it works!!!

Boris Gasin [TeamPS] wrote:

> On Mon, 23 Feb 1998 14:09:59 +0000, in
> powersoft.public.powerbuilder.objects Henry Dilsky
> <hdilsky1@flash.net> wrote:
>
> >I opened a response window from the sheet window, got value from the
> >response window and now I need to put it into the sle of thesheet
> >window. The response window is used by multiple sheet windows,  so I
> >can't hard code the sheet window's name. It should be a generic code.
> >Below  is the code which needs to be modified.
> >
> >string ls_value, ls_value_cd
> >ls_value = dw_1.GetItemString(dw_1.getrow (),"frb_dept_nm")
> >ls_value_cd = dw_1.GetItemString(dw_1.getrow (),"frb_dept_cd")
> >CloseWithReturn(parent,( "(" + ls_value_cd +")" +"  " + ls_value ))
> >w_linkageretrieve.sle_dept.Text = Message.StringParm
> >I need to replace w_linkageretrieve on something generic.
>
> Henry,
>
> You are very close.  The typical way of handling this situation is not
> to let the response window manipulate properties of another object
> (sheet) directly.   The response window should just CloseWithReturn.
> You can then add the code to the sheet window to read the returned
> value and set the text into the sle.
>
> Open(w_response)
> ls_return = Message.StringParm
> IF Len(ls_return) > 0 THEN
>         this.sle_dept.Text = Message.StringParm
> END IF
>
> HTH,
> --
> Boris Gasin [TeamPS]
> mailto:bgasin@advent2000.com
>
> Have a heart,
> http://home.sprynet.com/sprynet/JCredit/eds_stry.htm



0
Henry
2/23/1998 3:14:41 PM
On Mon, 23 Feb 1998 14:09:59 +0000, in
powersoft.public.powerbuilder.objects Henry Dilsky
<hdilsky1@flash.net> wrote:

>I opened a response window from the sheet window, got value from the
>response window and now I need to put it into the sle of thesheet
>window. The response window is used by multiple sheet windows,  so I
>can't hard code the sheet window's name. It should be a generic code.
>Below  is the code which needs to be modified.
>
>string ls_value, ls_value_cd
>ls_value = dw_1.GetItemString(dw_1.getrow (),"frb_dept_nm")
>ls_value_cd = dw_1.GetItemString(dw_1.getrow (),"frb_dept_cd")
>CloseWithReturn(parent,( "(" + ls_value_cd +")" +"  " + ls_value ))
>w_linkageretrieve.sle_dept.Text = Message.StringParm
>I need to replace w_linkageretrieve on something generic.

Henry,

You are very close.  The typical way of handling this situation is not
to let the response window manipulate properties of another object
(sheet) directly.   The response window should just CloseWithReturn.
You can then add the code to the sheet window to read the returned
value and set the text into the sle.

Open(w_response)
ls_return = Message.StringParm
IF Len(ls_return) > 0 THEN 
	this.sle_dept.Text = Message.StringParm
END IF

HTH,
--
Boris Gasin [TeamPS]	
mailto:bgasin@advent2000.com

Have a heart,
http://home.sprynet.com/sprynet/JCredit/eds_stry.htm
0
NOSPAM_bgasin
2/23/1998 8:30:10 PM
Reply:

Similar Artilces:

pass value from window to response window
I KNOW I'm not supposed to use global variables except in DIRE EMERGENCIES, but how can a pass a boolean value from a main window to its response window? I know....I have to rethink my whole strategy... Maybe I'm missin something, but have you tried OpenWithParm()? Gary Rick Charnes wrote in message <01beb2bb$b53aa320$4066f392@mis04>... >I KNOW I'm not supposed to use global variables except in DIRE EMERGENCIES, >but how can a pass a boolean value from a main window to its response >window? I know....I have to rethink my whole strategy... > ...

superreview granted: [Bug 283342] Many windows don't set window classes : [Attachment 197950] Patch to add a window class to the Default Plugin's window
Johnny Stenback (:jst) <jst@mozilla.org> has granted superreview: Bug 283342: Many windows don't set window classes https://bugzilla.mozilla.org/show_bug.cgi?id=283342 Attachment 197950: Patch to add a window class to the Default Plugin's window https://bugzilla.mozilla.org/attachment.cgi?id=197950&action=edit ...

superreview requested: [Bug 103638] targets with same name in different windows open in wrong window with javascript : [Attachment 170288] Proposed fix, bz's fix with window.open() etc fixed.
Johnny Stenback <jst@mozilla.jstenback.com> has asked Daniel Veditz <dveditz@cruzio.com> for superreview: Bug 103638: targets with same name in different windows open in wrong window with javascript https://bugzilla.mozilla.org/show_bug.cgi?id=103638 Attachment 170288: Proposed fix, bz's fix with window.open() etc fixed. https://bugzilla.mozilla.org/attachment.cgi?id=170288&action=edit ...

superreview cancelled: [Bug 103638] targets with same name in different windows open in wrong window with javascript : [Attachment 170288] Proposed fix, bz's fix with window.open() etc fixed.
Johnny Stenback <jst@mozilla.jstenback.com> has cancelled Johnny Stenback <jst@mozilla.jstenback.com>'s request for superreview: Bug 103638: targets with same name in different windows open in wrong window with javascript https://bugzilla.mozilla.org/show_bug.cgi?id=103638 Attachment 170288: Proposed fix, bz's fix with window.open() etc fixed. https://bugzilla.mozilla.org/attachment.cgi?id=170288&action=edit ...

superreview requested: [Bug 241972] new window opened by window.open('xxx.exe') or target="_blank" isn't closed automatically when a download begins : [Attachment 227564] fixes in response to Darin's
Marria Nazif <marria@gmail.com> has asked Darin Fisher (Google) <darin@meer.net> for superreview: Bug 241972: new window opened by window.open('xxx.exe') or target="_blank" isn't closed automatically when a download begins https://bugzilla.mozilla.org/show_bug.cgi?id=241972 Attachment 227564: fixes in response to Darin's review https://bugzilla.mozilla.org/attachment.cgi?id=227564&action=edit ------- Additional Comments from Marria Nazif <marria@gmail.com> > >+ /** > >+ * This is set based on whether the channel indica...

superreview granted: [Bug 241972] new window opened by window.open('xxx.exe') or target="_blank" isn't closed automatically when a download begins : [Attachment 227564] fixes in response to Darin's re
Darin Fisher (Google) <darin@meer.net> has granted Marria Nazif <marria@gmail.com>'s request for superreview: Bug 241972: new window opened by window.open('xxx.exe') or target="_blank" isn't closed automatically when a download begins https://bugzilla.mozilla.org/show_bug.cgi?id=241972 Attachment 227564: fixes in response to Darin's review https://bugzilla.mozilla.org/attachment.cgi?id=227564&action=edit ------- Additional Comments from Darin Fisher (Google) <darin@meer.net> >Index: docshell/base/nsDocShell.cpp > if (!r...

response window and doubleclick on main window causes action on response window
I am having an issue in PB7.0.3 Bld 10009. I have a window that has 2 DW controls. DW1 that has a field the has some validations that occurs in its itemchanged event that calls a response window for the user to select exceptions reasons. DW1 also does an accepttext() in its losefocus event to force itemchanged validations. What is happening, is if the user doubleclicks a field in DW2 that just happens to be inline with a control button on the response window, the cursor gets positions to the field in DW2 but the response window executes the logic for the control button. I've added...

WINDOWS AUTHENTICATION
Hello ,I am Using windows authentication in my asp.net application. I want to know a way to get the Windows users , Group name who is logged in to my application .I mean I want to know user's group name so that role can be implimented for that group user in my asp.net application.  Thanks & Regards.Harish Patel.If you are not sure better ASK.. Because wrong guesses are COSTLY.. !!  --Harish Patel www.MicrosoftSQLandASP.netpatelharish@gmail.com I Tried with the Method Below but it does not work and give error as mentioned below : Dim test As Booleantest = User.IsInRole("G...

Open Sheet window from response window
I am trying to open a sheet window inherited from w_sheet from a response window. I need it to work like it does when you open the sheet window from a menu using: Message.StringParm = "w_citystate_sheet" of_SendMessage("pfc_open") That way it will resize to the frame area. I have not been able to come up the the correct open command to make this happen. How should I open this PFC window? Use: CloseWithReturn( this, "w_citystate_sheet" ) to close the response window and in the calling object, code: Message.StringParm = "w_citystate...

TB Address Book --> Windows Vista's Windows Calendar's Contacts
I would like to import my Thunderbird Address Book into Vista's Windows Calendar's contacts. Suggestion? CA Handly On 22.03.2008 18:54 � CA Handly� wrote: > I would like to import my Thunderbird Address Book into Vista's Windows > Calendar's contacts. Suggestion? > > CA Handly OK, no problem! You can use CSV or LDIF to export from TB/AB ... what ever MSVista prefers. For importing you should ask the MS gurus ...Think they also have some sort of newsgroup/blog/etc .... ...

superreview requested: [Bug 231426] CJK native font names are not recognized on non-CJK Windows and English names are not on CJK windows : [Attachment 174441] patch without caching per rbs' comment
Jungshik Shin <jshin1987@gmail.com> has asked David Baron <dbaron@mozilla.org> for superreview: Bug 231426: CJK native font names are not recognized on non-CJK Windows and English names are not on CJK windows https://bugzilla.mozilla.org/show_bug.cgi?id=231426 Attachment 174441: patch without caching per rbs' comment https://bugzilla.mozilla.org/attachment.cgi?id=174441&action=edit ...

superreview granted: [Bug 231426] CJK native font names are not recognized on non-CJK Windows and English names are not on CJK windows : [Attachment 174441] patch without caching per rbs' comment
David Baron <dbaron@mozilla.org> has granted Jungshik Shin <jshin1987@gmail.com>'s request for superreview: Bug 231426: CJK native font names are not recognized on non-CJK Windows and English names are not on CJK windows https://bugzilla.mozilla.org/show_bug.cgi?id=231426 Attachment 174441: patch without caching per rbs' comment https://bugzilla.mozilla.org/attachment.cgi?id=174441&action=edit ------- Additional Comments from David Baron <dbaron@mozilla.org> I'm a little skeptical about removing something like that during a beta cycle, but sr=dba...

How to use window.dialogarguments properties to get the information passed in window.showmodaldialog in the code behind of the modal window page
How to use window.dialogarguments properties to get the information passed in window.showmodaldialog in the code behind of the modal window page Hi ashutosh, Here is an article that explains the use of the window.dialogArguments method. In the article is even an example that combines that property with the window.showModalDialog method. The article: http://msdn2.microsoft.com/en-us/library/ms533723.aspx Caution: You have to remember that those methods of the window class are case sensitive. window.showmodaldialog is not the same as window.showModalDialog ! Hope this helps!WimPlease re...

How to use window.dialogarguments properties to get the information passed in window.showmodaldialog in the code behind of the modal window page
How to use window.dialogarguments properties to get the information passed in window.showmodaldialog in the code behind of the modal window pagelaks See if this helps: http://msdn2.microsoft.com/en-us/library/ms533723(VS.85).aspxMark replies as answers if they helped you solve the problem. I saw that..But i want to use it in my code behind.    laks window.dialogArguements is available in client-side JavaScript only.Mark replies as answers if they helped you solve the problem. Any option to have the same functionality of showModalDialog of javascript in asp.net?....