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 runtimeHi 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 runtimeIs 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 CrosstabI 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,...