How to obtain dw control name at runtime

How can I determine the name of a given dw control at runtime. I have an 
existing application that needs to get info from a datawindow for further 
processing. This application makes extensive use of inheritance and seems 
to be the cause. I tried issuing a GetItemString and the system gives an 
error of NullObjectReference at runtime. There are some nonvisual proceses 
that occur when the window is opened and I am not sure exactally what 
occurs when executed, but the original window that is called is not valid 
after the data is retrieved. Any help would be appreciated

Thanks
0
ben
6/4/2001 7:23:30 PM
sybase.easerver.powerbuilder 3902 articles. 0 followers. Follow

2 Replies
468 Views

Similar Articles

[PageSpeed] 24

Please post to powersoft.public.powerbuilder.general
This is for PB issues while being used within Jaguar/EAS
Thanks
A.


ben wrote:
> 
> How can I determine the name of a given dw control at runtime. I have an
> existing application that needs to get info from a datawindow for further
> processing. This application makes extensive use of inheritance and seems
> to be the cause. I tried issuing a GetItemString and the system gives an
> error of NullObjectReference at runtime. There are some nonvisual proceses
> that occur when the window is opened and I am not sure exactally what
> occurs when executed, but the original window that is called is not valid
> after the data is retrieved. Any help would be appreciated
> 
> Thanks
0
Adam
6/5/2001 8:45:55 AM
Were your function being executed in ancester's script?If so,make sure that 
the ancester can identify the dw_control,
0
MISYCS
6/7/2001 8:46:44 AM
Reply:

Similar Artilces:

How get controls names in nested DW of any DW presentation style ?
Hi, I am trying to get control names from nested DWs, like: rtncode = dw_1.GetChild(lsWord, ldwc) if rtncode>0 THEN MessageBox(lsWord, ldwc.Describe("DataWindow.objects")) end if it works only with composite DWs. How can I get control names for all nested DW for all DW presentation styles ? Thank You bye Take a look at DW direct syntax reference (dot notation) as well. But for both (Describe and dot notation) you need to add additional "Object" references. Dionizas Antipenkovas wrote: > Hi, > > I am trying ...

how do i CHANGE name of the dw controls?
I have 12 datawindow controls that indicate each month in a window. I will change name of datawindow contros using FOR~NEXT or Do LOOP. But I can not change the NAME of DATAWINDOW. Anyone, reply me the solution for this problem On Wed, 17 Mar 1999 21:57:14 +0900, in powersoft.public.powerbuilder.objects ��� <chhkim@thrunet.com> wrote: >I have 12 datawindow controls that indicate each month in a window. >I will change name of datawindow contros using FOR~NEXT or Do LOOP. >But I can not change the NAME of DATAWINDOW. >Anyone, reply me the solution fo...

programmatically obtaining the controller name
how do you obtain the name of the controller you are in within the controller code?   Also, I would like to use application state variables within the controller but it will not let me access them.  i searched here and found another post that said you could use HttpContext.Current.Application ViewContext.HttpContext.Application but neither of these worked either. Rule #1: You shouldn't refer to HttpContext.Current !!!The controller name is this.GetType().Name.Replace("Controller", "");. I think there should be a public method that returns the...

HELP:Select DW controls at runtime
Hi ALL ! I have the external freeform datawindow. In DataWindow painter i can select menu item Edit-Select-Select Text ( all text label selected). Can I do this at runtime ? How to select text labels without using color and box properties ? Thank's. -- Best regards, Valera M. mailto:valera@kompan.com.ua Hi Valera, You cannot do this in run time. This is typical this tool selection (DW painter) which paints resize handles (small black squares) around selected item(s). What do you need them for anyway? Regards, Volodya. Valeriy Molyakov wrote:...

Real .y of control in DW at runtime
Is there anyway to get the real .y attribute of a control in a dw at runtime - if I do a describe, I only get the value set in the datawindow painter. Explanation: I have a datawindow with a bunch of nested dws and OLE TableBlob columns, the TableBlobs contain Word documents, and on occaison, the pagination of the dw isn't working properly, so, part of a line of text in the Word Document is cut between 2 pages. I need to be able to print the dw without text cutting, and also save as PDF. Thanks Leah No, you can just put the describe(...y) in a computed column and see t...

superreview requested: [Bug 288906] Return null for MSAA name when no name explicitly set for HTML form control : [Attachment 179538] If no name explictly set for form control, use SetIsVoid(null)
Aaron Leventhal <aaronleventhal@moonset.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 288906: Return null for MSAA name when no name explicitly set for HTML form control https://bugzilla.mozilla.org/show_bug.cgi?id=288906 Attachment 179538: If no name explictly set for form control, use SetIsVoid(null) https://bugzilla.mozilla.org/attachment.cgi?id=179538&action=edit ...

superreview granted: [Bug 288906] Return null for MSAA name when no name explicitly set for HTML form control : [Attachment 179538] If no name explictly set for form control, use SetIsVoid(null)
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> has granted Aaron Leventhal <aaronleventhal@moonset.net>'s request for superreview: Bug 288906: Return null for MSAA name when no name explicitly set for HTML form control https://bugzilla.mozilla.org/show_bug.cgi?id=288906 Attachment 179538: If no name explictly set for form control, use SetIsVoid(null) https://bugzilla.mozilla.org/attachment.cgi?id=179538&action=edit ...

Web Custom Control
 I wrote this web custom control, and finally got all the embedded images and script files to embed, and display properly.But when I assign a name to the ID of the Control, the server changes the ID Name.So I have a control called txtMovieEmbed, and I assign the ID as txtMovieEmbed.But when the control renders, the name changes to ctl00_ContentPlaceHolder2_txtMovieEmbed txtMovieEmbed = New TextBox txtMovieEmbed.Width = 325 txtMovieEmbed.CssClass = "FormControl" txtMovieEmbed.ReadOnly = True txtMovieEmbed.Text = MovieEmbedCode txtMovieEmbed.ID = "txtMovieEmbed&qu...

ASP.Net controls name changed on runtime
hi guys i had a checkbox named chkTerms0 in my web page . but when its interpretted as html in the browser it shows as ctl00_MainContent_chkTerms0 any idea why this is happening. this causes my clientside validations to go wrong. Regards,Aneef   http://www.Aneef.net  Hi,The runtime preprends the container id of the control to avoid id conflicts.you need to change your javascript code to use the Cotnrol.ClientID property which will return the actual rendered id of the control in html.e.g.var chk= docuemnt.getElementById('<%=chkTerms0.ClientID %>');Rega...

Obtaining column names generated at runtime in a Crosstab
I am unable to obtain the column names that gets generated from the row values from a stored procedure in a CrossTab datawindow. I would like to know if there is any function for that. Please follow the eg., below for better understanding, Example:- SP output is as follows ---------------------------------------------------------- legalentity buisnessconcept amount ---------------------------------------------------------- le1 b1 10 le1 b2 20 le1 b3...

copy data when dw name is only known at runtime ?
Hello, I'd like to create a generic function that accepts a DW as argument, checks if there is(are) nested report(s) in it and exports the nested reports' data to Excel. So far I'm able to loop thru the DW objects and find the nested reports, but I don't find a way to have access to the datas. Is there a solution ? Thank you, Pierre, using 10.5.2 Others may pipe in with a better approach but if you are getting a handle on the nested(with getchild I presume) why not create a standalone dw and inside the loop set the standalone dwo to the active nested dwo and us...

controlling the visibility of dw controls...
Hi! I'm creating a report that will display a footer at the end of the last page only..... so i thought this datawindow expression will work .. but i doesnt... if (page() = pagecount(), 0, 1) -- as i have noticed in all dw source, whenever you uncheck the visible property of a control, lines, etc.... there is a visible="1" in the property list of the control.. (datawindow source)... I hope you guys can explain to me what is going on? or maybe a little code snippets would be great.. thank you! jun I'm not sure if page() = pagecount() wo...

Naming Controls with a variable Name
How can you name a control like my example below where var gives each textbox a different name? <% Dim var as Integer %> <% For var = 1 to 15 Step 1 %> <p></p> <asp:TextBox ID="textbox" runat="server" /> <% Next %> so something like this <asp:TextBox ID="textbox + var" runat="server" /> Hi Nick, The following code does what you want.<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load( ByVal sender As Object, ByVal eArgs As...

Name (control name) is not declared.
I get an error with every control I put in an ASP.NET page and try to reference in the code-behind file, that says "Name (name of control) is not declared.", even though the control is properly referenced with the correct name which I named it in the .aspx file. What is the deal? Does VS2005 Express not explicitly declare web controls in the code-behind file? If you add a control to your page and it has the runat attribute set to server, you can reference to it with the name you have specified for its ID attribute./Fredrik Normén - fredrikn @ twitterMicrosoft MVP, MCSD, MCAD,...

Web resources about - How to obtain dw control name at runtime - sybase.easerver.powerbuilder

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

China lays out its vision of the internet: more control, more censorship
... censorship of the internet, in a high-profile speech underscoring China's increasingly emphatic attempts to justify its strict online control. ...

Stringify your life by taking control and automating tasks
... Adobe Post or If you can think it, you can create it in Scribblenauts Unlimited . Stringify IF by IFTTT Stringify your life by taking control ...

How to engage Tesla's Launch Control mode
Filed under: Green , Videos , Tesla , Electric Short video shows Model S keeping it straight on a rain-slicked road.

Nuance’s voice control going where Siri, Google Now and Cortana fall short
... for Samsung's S Voice and Apple’s Siri, is ready to go where no other digital assistant has gone before. The company wants to bring voice control ...

EU Acts on Refugees, Terrorism With Tougher Border Controls
Beset by the refugee crisis and fears of terrorism, the European Union floated plans to stiffen its external border controls for Europeans and ...

Apple is about to take even more control
... be about to get tough for some Apple partners as the company invests in top secret display technology development labs and increases its control ...

Google Updates BigQuery With New Cost Controls
Enterprises using BigQuery to run analytics against large data sets can now set a daily query quota on a project-wide or an individual basis. ...

Cancer May Be More Within Our Control Than We Thought
Some cancers may be due to 'bad luck.' But even more of the risk may come from the choices we make every day.

After losing control of Parliament, Venezuelan socialists create a new one
After losing control of Parliament, Venezuelan socialists create a new one

Resources last updated: 12/18/2015 12:39:23 AM