473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DAP - What datapage?

CC
Hello,

I have created a 'data access page'.

DataPages(0), the main object, represents a recordset that lists all
names of dossiers.
To these dossiers is a datapage appended (expanded band, second
grouping level) that contains data about each dossier.

Now I've put a command button (that is repeated with each second
datapage) in this second datapage that leads to another .htm file that
lists some more information.

My problem however is, to display this second .htm file, I need to know
on what datapage (2nd level) this button was pressed.

I've struggling with this problem for some time now, and my deadline is
approaching...

Thx in advance,
Best regards,

CC

Feb 3 '06 #1
2 1297
CC
This is only the second time I'm using dap's.
Following should be close to what I'm looking for:

"Accessing a section from a control or other element on a page"
---- GetContainingSection
"...If you're writing event procedure code for an element on a page,
you can pass in the Me keyword to gain access to the section that
contains the element"

<SCRIPT language=vbscript event=onClick for=getSection_btn>

Set sec = MSODSC.GetContainingSection(Me)

</SCRIPT>

But is it possible to get some value from the header section to define
in what data page the button has been pushed?

BR,

Seppe

Feb 3 '06 #2
CC
Found a suitable solution!

<SCRIPT language=vbscript event=onclick for=contact_btn>

msodsc.GetContainingSection(Me).DataPage.Recordset .Fields(x).Value

</SCRIPT>

Feb 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Seetha | last post by:
Hi, How do I find the max row size for a particular table? This was the error I recieved while execting my proc with the relevant i/p I need to: "cannot sort a row of size 8192, which is...
4
by: SamMan | last post by:
I have a .js file that receives a value from an html page. I'd like this value to be a global variable that all functions in the .js file can use. I have tried just declaring a var at the top of my...
5
by: Timur | last post by:
Hi gurus, I have a problem to convert MS SQL Server application to DB2. I have a view which combines 7 tables ( table sizes 60millions rows, 3 mill, 1 mill, other small ones) I use this view to...
0
by: TheCoder | last post by:
I am making a D-base with web conectivity for my class project. I have everything working but the subit button sends the data to the correct fields but afterwards it wants to reproduce new blank...
1
by: Ed B | last post by:
I've been trying to connect to SQL Server 2000 through a web form created in c#. As I created my connection object the data source test succeeded. I've even tried the datapage wizard and I get...
2
by: Kraai | last post by:
in normal asp , and even php i could use the <!--#include file="login.aspx" --> or <!--#include virtual="login.aspx" --> to include pages in my main page without using frames! when i try...
5
by: js | last post by:
I am having a problem with a dynamicly added DataGrid that always shows the first data page even the message in the DataGrid.PreRender shows the correct datapage as the DropDownList control's...
4
by: Ben | last post by:
Hi, I have a ASP page which applied default master page style. I added a html text control in the ContentPlaceHolder and try to access it in javascript. I always got a null value of...
4
by: Trunk3d | last post by:
Hello all. I have a Data Access Page that users can reach to submit a request. At the end of the page I am using a Command Button that is set to Save Record. Is there a way that upon pressing the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.