Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2003, 11:49
morpheus's Avatar
morpheus morpheus is offline
Guru
 
Join Date: Jun 2002
Location: Planet of the apes
Posts: 369
morpheus is on a distinguished road
Baan: BaaN IV c4 - DB: BaaN Base - OS: HP-UX 11
Unhappy Multiple Forms

Hello,
There are 2 sessions, which I have combined to appear as one, just like Sales/Purchase Order Lines. In the upper half (1st session), some fields are being imported, and displayed, from the session from which it is zoomed, and in the lower part (2nd session) there are three forms. Only one of these forms become active depending upon the data imported in upper half.
Now, the problem is, for Form 1, all the input fields are displayed while maintaining a record. Whereas, in the other 2 forms, only first text field is displayed, and others are displayed IF I press a "tab". The problem remains even if I change the sequence of Forms. It is always the last 2 forms which are behaving like this!!
Any ideas why!!?
Reply With Quote
  #2  
Old 11th January 2003, 08:13
morpheus's Avatar
morpheus morpheus is offline
Guru
 
Join Date: Jun 2002
Location: Planet of the apes
Posts: 369
morpheus is on a distinguished road
Baan: BaaN IV c4 - DB: BaaN Base - OS: HP-UX 11
Another observation...

Another thing I observed is that, the scenario explained earlier only takes place if the table is empty, and FIRST record is being maintained. But, once the first record is maintained, the forms behave normally!!
Attached Files
File Type: doc problem.doc (52.0 KB, 79 views)
Reply With Quote
  #3  
Old 12th January 2003, 03:52
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,936
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Possible to initialize table

It looks like this is a sub-session that you zoom to for project 600005 correct? And since 600005 does not have any records in the table of this sub-session then forms 2 and 3 forms act like you say. I was just wondering if you could zoom to it and do an add.set when no records exist. Hmmm what is the start option on the sub-session? Does it act this way when you zoom to it for a project with a record already existing?

Not much help but maybe the questions will help someone else solve the problem.

Mark
Reply With Quote
  #4  
Old 14th January 2003, 12:50
morpheus's Avatar
morpheus morpheus is offline
Guru
 
Join Date: Jun 2002
Location: Planet of the apes
Posts: 369
morpheus is on a distinguished road
Baan: BaaN IV c4 - DB: BaaN Base - OS: HP-UX 11
Post Details...

Yes, Mark, you are right, it's a sub-session.
I am using add.set, if there is no record for the Project, and modify.set, if there is a record.
The start option of the sub session is "Refresh".
And it does not behave in such a manner if the record is maintained for the Project.
I also thought the same way, that the last 2 forms are behaving in such a manner because there is no record for the project. But, why and that too for only last 2 forms!!?
Reply With Quote
  #5  
Old 14th January 2003, 18:56
lbencic's Avatar
lbencic lbencic is offline
Guru
 
Join Date: Dec 2001
Location: Lisle, IL, USA
Posts: 1,148
lbencic will become famous soon enough
Baan: 2.2d - LN - DB: most - OS: most
I also have no answer, only more questions.
Are the second and third forms still in modify status? It almost sounds like they are in add. In debug, can you check the update.status variable going through the rest of the forms?
Also, the 'Refresh' start option on the session may be interfering with your 'Add.Set' and 'Modify.Set' logic, did you set the predefined variable 'ignore.first.event = true' in the before.program section?
Reply With Quote
  #6  
Old 15th January 2003, 07:49
morpheus's Avatar
morpheus morpheus is offline
Guru
 
Join Date: Jun 2002
Location: Planet of the apes
Posts: 369
morpheus is on a distinguished road
Baan: BaaN IV c4 - DB: BaaN Base - OS: HP-UX 11
Thumbs up ignore.first.event

Thanks Lisa!!
I did not set ignore.first.event = TRUE in the script. I did that after your post, and now it is working fine.

Thanks Mark, for your post too.

I understand what ignore.first.event does, but can you explain me why the last 2 forms behaved in such a manner when the mentioned variable was not used in the script!!?
Reply With Quote
  #7  
Old 15th January 2003, 17:16
lbencic's Avatar
lbencic lbencic is offline
Guru
 
Join Date: Dec 2001
Location: Lisle, IL, USA
Posts: 1,148
lbencic will become famous soon enough
Baan: 2.2d - LN - DB: most - OS: most
Hmm no not really. It may have to do with the Refresh forcing itself on Form 1 at the start, so you got all the fields up and were ready to modify, regardless of your logic. On situations where you switched to the other forms, your code should have taken over, but already the event was set, so....confusion I guess.
Reply With Quote
Sponsored Links
  #8  
Old 22nd January 2003, 13:00
Svetlana Svetlana is offline
Member
 
Join Date: Oct 2002
Posts: 47
Svetlana is on a distinguished road
Baan: 4 - DB: Informix - OS: Windows95
Question How you do it?

Hi, morpheus.
You combined 2 sessions to appear as one. How you do it?
Reply With Quote
  #9  
Old 23rd January 2003, 07:54
morpheus's Avatar
morpheus morpheus is offline
Guru
 
Join Date: Jun 2002
Location: Planet of the apes
Posts: 369
morpheus is on a distinguished road
Baan: BaaN IV c4 - DB: BaaN Base - OS: HP-UX 11
Svetlana,
This is achieved by using the system variable sattr.combined. You can find details in the BaaN manual on your system.
Reply With Quote
  #10  
Old 23rd January 2003, 14:36
Svetlana Svetlana is offline
Member
 
Join Date: Oct 2002
Posts: 47
Svetlana is on a distinguished road
Baan: 4 - DB: Informix - OS: Windows95
Smile

Thank you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple forms in Display Session en@frrom Tools Development 9 20th August 2003 20:11
Multiple Forms Data Maintenance Warans Tools Development 4 21st October 2002 17:49


All times are GMT +2. The time now is 00:22.


©2001-2017 - Baanboard.com - Baanforums.com