?
Solved

Related to Datawindow(Very Urgent)

Posted on 2003-02-25
5
Medium Priority
?
309 Views
Last Modified: 2013-12-26
Hi
    My question is as fallows:
  I have one datawindow,in which i retrieve data from three tables,i just wanted to click the pericular row,and insert no of rows afetr that row,which should be blank,i wanted to enter new data in it,One of field of datawindow is dropdowndatawindow,so that field should be present in blank rows too,plz hepl me ,plz give a code for it,
Thanks in advance,i hope u will help me soon..
Regards
 Sanika
0
Comment
Question by:sanika
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Accepted Solution

by:
Bhatti earned 100 total points
ID: 8024000
In dw where you want to inseret the rows just click on this row and then use the function InsertRow(row_number) in the clicked event of the dw.

InsertRow(row_number) where row_number is the row number before which row you want to insert the row or rows.

If you want to insert more then 1 row then use for loop how many rows you want to insert.

Please just have a small look on the function InsertRow(n).

Now you have a dddw in the datawindow. This dddw is the child of the parent dw. say dw you have is a dw_1. and you have a dddw in this dw_1.

In the same event (clicked) of the dw code:

//variable
datawindowchild  ldwc_child

dw_1.GetChild("name_of_column_of_dddw", ldwc_child)
ldwc_child.SetTransObject(sqlca)
ldwc_child.InsertRow(n) //where you want to insert the row.

And also please just have a look on the GetChild function.

In this function first parameter is the name of the dw_1 column where you placed the dddw.

If you have any question or you need more explaination please let me know.


Best regards


Bhatti

0
 

Author Comment

by:sanika
ID: 8025465
Its not working properly,
Tell me how i do this
If i click on perticular row,after that i ahve to add no of rows.
and second In pb7 how do i set one of my column name as detawindow,i have style as dddw,but its not working.Plz help me as soon as possible.
0
 
LVL 2

Assisted Solution

by:EAServer
EAServer earned 100 total points
ID: 8027454
Put the following in the clicked event of your datawindow...

IF row < 1 THEN RETURN //No row was clicked so just return
This.InsertRow(row + 1)

That's it two lines of code are all that is needed.  Now this code is going to add a new row evertime you click on a row, are you sure that is what you want?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question