Home » Developer & Programmer » Forms » dialog window
dialog window [message #387140] Wed, 18 February 2009 00:47 Go to next message
imuharram
Messages: 48
Registered: January 2009
Member
I have form that has two windows. A main window that has a datablock from a table in my database and a button. When the button is clicked, the other window (dialog window) appears and has a datablock that is created manually and has 3 list items and one button.
After I finish from this datablock I get back to the main window. If I click the button for the second time to go to that dialog window, the fields in that datablock doesn't appear unless i press the Tab key and the button in that dialog doesn't work

[Updated on: Wed, 18 February 2009 07:36]

Report message to a moderator

Re: dialog window [message #387290 is a reply to message #387140] Wed, 18 February 2009 14:39 Go to previous messageGo to next message
mandeepmandy
Messages: 79
Registered: May 2008
Location: USA
Member

Post the code you are using to start new window(Click button code)
Re: dialog window [message #387523 is a reply to message #387140] Thu, 19 February 2009 14:02 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
go_block('control2');
go_item('div_list');

control2 is a datablock that is created manually and has three list items and two buttons

div_list is the first list item i want the cursor to be there when the dialog window opens
Re: dialog window [message #387568 is a reply to message #387523] Thu, 19 February 2009 22:51 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
The 'go_item' command needs both the 'block' and 'item' name to be specified (separated by a period '.').

David
Re: dialog window [message #387868 is a reply to message #387568] Sat, 21 February 2009 01:49 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
still not working
when i get back to the dialog window for the second time the fields doesn't appear unless i press the tab key
Re: dialog window [message #388255 is a reply to message #387868] Tue, 24 February 2009 00:55 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Are you serious in telling us that two buttons only contain the two lines of code that you have posted?

Please post all of the code for both buttons.

David
Re: dialog window [message #389290 is a reply to message #388255] Sat, 28 February 2009 02:04 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
Ok here is what I have

In the main window I have a button has this code:
go_block('control2'); --> to go to the dialog window
Control2 is a datablock created manually and it is in a seperate dialog window, in this dialog window i have button has the following code:
insert into wo_det values(:wo_trans.wo_no,:control2.unit_list,
:control2.dept_list,1,1,0,0,null,null,null);
commit;
go_block('wo_det'); --> to go back to the main window
Re: dialog window [message #389895 is a reply to message #389290] Wed, 04 March 2009 00:23 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
To make windows 'appear' you need to change the focus of the form. Use 'go_item' to do this.

Also, 'commit' is the same as 'commit_form' and it will NOT see that the database has been changed as it only looks at the state of the form. Use 'standard.commit'.

David
Re: dialog window [message #393959 is a reply to message #389895] Wed, 25 March 2009 03:39 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
Ok, I found out what's happening but i don't know how to solve it.
The position of the fields changes.
As attached, you could see a main window, when I press the button "Change password", the dialog window appears in the corner and all the fields are in their right place. When I press "Cancel" and go back to the main window, I press again "Change password" and the dialog appears again but the fields are not in their right place. It's either the window changed its coordinates or the fields their position without me know ing why. How could I solve this problem?
Re: dialog window [message #394988 is a reply to message #393959] Mon, 30 March 2009 23:53 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you solved your problem?

David

PS Make your attachments smaller!!
Re: dialog window [message #394994 is a reply to message #394988] Tue, 31 March 2009 00:05 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
No, I didn't
I don't know how
Re: dialog window [message #416942 is a reply to message #394988] Wed, 05 August 2009 04:58 Go to previous message
imuharram
Messages: 48
Registered: January 2009
Member
I solved the problem

I had the canvas type for the dialog box as content, I had to change it to stacked.
Previous Topic: Icon on Selected Node
Next Topic: can we call form through tree?
Goto Forum:
  


Current Time: Wed Dec 07 16:18:41 CST 2016

Total time taken to generate the page: 0.09253 seconds