problem setting focus to datawindow-column

I have a screen with several datawindows on it. When the values in these
dw's are checked, a message will appear and the focus should be set back to
the right dw and column in that dw, but I can't get this to happen
correctly. I keep getting the focus back to the first column in the first dw
on the screen!

When the checks are performed, a few windowfunctions are triggered, as well
as a few user events. I'm under the impression that the 'getfocus'-events of
all the dw's are triggered first when the messagebox disappears and the
focus is back on the screen. I know that I should put some
'dw_x.setcolumn(column)'-code when I want to set the focus, but I just don't
know when!

Who can help me?

please send replies to this NG as well as rjm_van_raaij@hotmail.com.




0
H
6/11/2000 2:45:45 PM
sybase.powerbuilder.general 62418 articles. 17 followers. Follow

1 Replies
476 Views

Similar Articles

[PageSpeed] 19

H@nk,

Are you changing column focus in any getfocus or losefocus events? You can
get stuck in a loop that way.

If your code to check the dw's is in a losefocus, post a function or event
call to the checking routines from the losefocus event.

If I'm misunderstanding your code, please post an example.

--
Regards,
Millard[Team Sybase]
Power3 - Custom Enterprise Training



H@nK wrote in message ...
>I have a screen with several datawindows on it. When the values in these
>dw's are checked, a message will appear and the focus should be set back to
>the right dw and column in that dw, but I can't get this to happen
>correctly. I keep getting the focus back to the first column in the first
dw
>on the screen!
>
>When the checks are performed, a few windowfunctions are triggered, as well
>as a few user events. I'm under the impression that the 'getfocus'-events
of
>all the dw's are triggered first when the messagebox disappears and the
>focus is back on the screen. I know that I should put some
>'dw_x.setcolumn(column)'-code when I want to set the focus, but I just
don't
>know when!
>
>Who can help me?
>
>please send replies to this NG as well as rjm_van_raaij@hotmail.com.
>
>
>
>


0
Millard
6/15/2000 3:00:23 PM
Reply:

Similar Artilces:

problem setting focus to datawindow-column #2
I have a screen with several datawindows on it. When the values in these dw's are checked, a message will appear and the focus should be set back to the right dw and column in that dw, but I can't get this to happen correctly. I keep getting the focus back to the first column in the first dw on the screen! When the checks are performed, a few windowfunctions are triggered, as well as a few user events. I'm under the impression that the 'getfocus'-events of all the dw's are triggered first when the messagebox disappears and the focus is back on the screen. I kn...

Set Focus on Column in external datawindow
How do I set the focus to a column in an external datawindow ? Specifically: I have an external dw with an editable column. After the user edits the column, a remote object validates the entry. If validation fails, I want the focus to go back to the column, with the text selected. I tried to use the itemchanged event (returning 1) but that seems to trigger the datawindow validation message, and I need to display different messages depending on what the user typed. SetColumn doesn't work either, the cursor always goes to the next column in the tab order. I guess the fact that I...

set focus to first column on web datawindow
How do I have the focus set to the first column on my web datawindow when the page is loaded? Jon Groves This is not the right group for questions about HTMLDW. The right group is: sybase.public.easerver.htmldw Did you try SetColumn("columnname")? -- Rahul Jain On Tue, 25 Mar 2003 09:47:28 -0500, Jonathan Groves wrote: > How do I have the focus set to the first column on my web datawindow when > the page is loaded? > > Jon Groves thank you "Rahul Jain" <rahul.jain@mail.com> wrote in message news:4aocjhjv8l5u.q3uh6378neyt.dlg...

setting the focus to a row/column of a web datawindow
Hi all, I'd like to set the input focus for a html page containing a web datawindow to a certain row and column (first row, column "username"). of the datawindow. For the time being I've succes using document.dwClient_dataForm.username_0.focus(); in a function called in the onLoad() event of the page. Just to be sure, is that the correct method to achieve what I want? I thought it should be something like dwClient.SetRow(1); dwClient.SetColumn("username"); dwClient.SetFocus(); but this fails claiming that dwClient has no properties. ...

IF you set column to width 0 in a datawindow grid, the column appear as a with column at the end of the grid
Can you remove the white space at the end of a grid, it seems to appear when we set columnwidths to '0'.. ICE I've not seen that. What version of PB are you using? What platform? On Tue, 27 Aug 2002 11:42:02 +0200, in powersoft.public.powerbuilder.datawindow ICE <ICE@nospam.com> wrote: >Can you remove the white space at the end of a grid, it seems to appear when >we set columnwidths to '0'.. > > >ICE > > Bruce Armstrong [TeamSybase] http://www.teamsybase.com Not 1 - but 2 new books on developing with PowerBuilder...

To set/not to set 'Visible' property of datawindow columns ?
Hello, If I have a datawindow and I have say 10 columns in the datawindow, which retrieve data, but need not be displayed... Is it advisable to set the 'Visible' property to '0' for such columns or does it have no performance impact at all ? TIA, Ganesh It's probably more advisable to delete the DW Column Objects. Deleting the objects in the presentation layer just means that the values are not visible; these data set column values are still accessible through Get/SetItem()'s, dw expressions, etc... Good luck, Terry [TeamPS] and Sequel...

Have problem setting column back to first column using pbm_dwnprocessenter
Used pbm_dwnprocessenter to emulate 'Enter' key as 'Tab' in PB, but is having trouble in setting the focus back to first column when datawindow hit the last column. Please help. IF GetColumnName() = 'the_last_column' THEN SetColumn ('the_first_column') ELSE Send ('that_stuff_to_simulate_tab') END IF "matchoy" <matchoy@hotmail.com> wrote in message news:3f8cb4bb@forums-2-dub... > Used pbm_dwnprocessenter to emulate 'Enter' key as 'Tab' in PB, but is > having trouble in setting the focus bac...

Setting column's property in a datawindow from composite datawindow
Hi I know this is easy but I cant get it to work. I have two datawindows controls (dw_1, dw_2) in a composite datawindow (dw_report). I want to change Text of a header column of dw_2, so I try it using: 1. GetChild and Modify ------ datawindowchild ldw_child Int li_Rtn String ls_Error dw_Report.SetTransObject ( SQLCA ) li_Rtn = dw_Report.GetChild ( "dw_2", ldw_Child ) /* This returns 1, no problem */ If li_Rtn = 1 Then ls_Error = ldw_Child.Modify ( "item_number_t.Text = ~'New Text~' ") /* ls_Error is empty string, no problem, but report do...

superreview requested: [Bug 245931] Problems with accessibility API focus events : [Attachment 150306] 1) Make sure STATE_FOCUSED is set on objects focus event indicates are focused, 2) Don't fire ev
Aaron Leventhal <aaronleventhal@moonset.net> has asked Brian Ryner (IBM) <bryner@brianryner.com> for superreview: Bug 245931: Problems with accessibility API focus events http://bugzilla.mozilla.org/show_bug.cgi?id=245931 Attachment 150306: 1) Make sure STATE_FOCUSED is set on objects focus event indicates are focused, 2) Don't fire events using ExplicitOriginalTarget unless the current target has a binding parent http://bugzilla.mozilla.org/attachment.cgi?id=150306&action=edit ...

superreview cancelled: [Bug 245931] Problems with accessibility API focus events : [Attachment 150306] 1) Make sure STATE_FOCUSED is set on objects focus event indicates are focused, 2) Don't fire ev
Aaron Leventhal <aaronleventhal@moonset.net> has cancelled Aaron Leventhal <aaronleventhal@moonset.net>'s request for superreview: Bug 245931: Problems with accessibility API focus events http://bugzilla.mozilla.org/show_bug.cgi?id=245931 Attachment 150306: 1) Make sure STATE_FOCUSED is set on objects focus event indicates are focused, 2) Don't fire events using ExplicitOriginalTarget unless the current target has a binding parent http://bugzilla.mozilla.org/attachment.cgi?id=150306&action=edit ...

datawindow Focus problem!
Hi, I am using PB9 datawindow + 4GL JSP Pages + Jaguar whenever itemError event accurs following message box comes many times "Focus problem! Control losing focus is not current control!" how do i disable this message??? Regards Nas It happens in rare circumstances, usually when you have code or settings that cause the current control to change while the PB lose focus functionality is occurring. The best thing to do is figure out why that particular element is having the problem. Try using the Microsoft script debugger to walk through the javascript and see w...

setting focus on a datawindow
i am trying to set focus on a datawindow. based on suggestions i have tried: HWND dwHandle; dwHandle=(HWND)dw_1->GetDataWindowHandle(); as well, i have removed comments from the pre-compiled header (as per help instructions). when i try to run i get the following error: Char near __debuginfo is an undefined reference what else should i be doing?? thanks peter Sorry!!! the error was related to something else in the project (just manifested itself when i changed the pre-compiled header). the problem with focus is that the dw is READONLY (ie. all columns have a tabs...

Set Focus Problem
I'm not sure if this the right place for this, let me know if there's somewhere else I should post it..I'm having problems using Page.SetFocus with an AJAX enabled Web Application. I'm using VS 2005 and AJAX 2.0. On my page I'm using the RoundedCornersExtender and ModalPopupExtender.For a brief moment when the page loads, the cursor is set to the appropriate textbox, but after the final load, the focus is lost.I tried using javascript, VB.NET Page.SetFocus, and even Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(with a function call to set the focus)&nb...

set column DataWindow
Good morning everyone, I need help ... I need to set a column in a DataWindow to roll when the columns to be fixed first on the left. Grateful, Fabio I ain't sure if I understood you properly, but check HorizontalScrollSplit On 2010-06-15 13:57, F´┐Żbio De Carli wrote: > Good morning everyone, I need help ... > > I need to set a column in a DataWindow to roll when the > columns to be fixed first on the left. > > Grateful, > > Fabio Yes, the property fell through. But I wanted to set a starting position of scrool without having to go with th...

Web resources about - problem setting focus to datawindow-column - sybase.powerbuilder.general

Java JNI - Real's HowTo
Real's HowTo Custom Search Java Language String and Number Applet AWT Swing Environment IO Javascript interaction JDBC Thread Networking JSP ...

Resources last updated: 12/21/2015 5:25:08 PM