mbdave
17th January 2007, 07:36
How to get a Button on LN as we used to get on Baan 5.
button i want on form itself not only as specific in menu bar or as icon in secondary toolbar.its a List window type of session hwere i want a button as shown in attachment.
bigjack
18th January 2007, 06:09
1. In Display Sessions "ttadv2500m000" right-click your session and select form commands.
2. Create New form command as shown in attachment
Couple of things to take are,
1. The function confirm_advice_lines should be declared as of type extern
2. Zoom to the "Group/Field Number" and select the field besides which you want to place the button
Cya
mbdave
18th January 2007, 07:52
Hi bigjack i did as u explained but whenevr i try to zoom to select Group/Field
i get error as attcahed if i select group then it alwasys show only 2, on selecting that and savind as u said it gives stiill no button. Except in "Specific".
I think u need to give me some more info as why on selecting the field near which i want to have a button on zooming gives error. see the attachment for errorn on zooming after selectinf Field enum.
bigjack
18th January 2007, 08:01
In the command type dont select "group" , select "field" and then zoom and select the rightmost field on form, so that the button is placed besides it.
If possible send a screenshot of the properties of the form button you have created
mbdave
18th January 2007, 08:08
Hi jack
Thats what i am telling on selecting "Field" as command type and then enum and then zooming for selecting Field number it gives me fatal error which i had attached in previous thread, did u got me.
bigjack
18th January 2007, 08:32
Ok...I got your problem.
Do one thing, start the DFE(Dynamic Form Editor) for this session.
Right click the field(the one where you want to place the button besides) and select properties. I hope you are selecing one the view fields and not grid fields.
Note down the "field sequence number", which is located at the bottom of the display.
In the form commands, select command type as "field" ,instead of zooming and selecting the field, type the "field sequence number" found in DFE.
Let us know whether this works.It always works for me.
mbdave
18th January 2007, 09:15
Hi jact thanks for ur interest but still its not working as u said i did which is now not giving any error but at the same time no buttons . I tried with the sequenc no's as 10,20,30, 40 too but none are working and all are view fields.
i am attaching the foorm command and the form too. please reply if u can find some solution or may be some LN admin problem i mean some installation having some missing tools files for buttons dont no?
ARijke
18th January 2007, 10:11
I did look up some examples and for all the option 'Show as Button in Dialog or browse Session' is set to yes.
HtH
mbdave
19th January 2007, 05:40
In LN the buttons other than on secondary toolbar and specific is not possible on Multi - Occ session i htink so. Because on single occ it is possible to set it as a field command.
bigjack
19th January 2007, 05:52
HI Mahesh,
I've created buttons like you described in the attachment for multi-occurence session. In fact there are more than 5-6 sessions that i can remember. This is precisely the reason why i proposed the above method. I really dont know why this is not working in your case. There is some problem in installation at your end, this might be the reason why the session threw an error whenever you tried to zoom and select the field.
As a final attempt, can you attempt to create a button on a completely different session. This is just a guesswork but who knows it might work on other session.
Bye
NPRao
20th January 2007, 03:55
Make sure in the DFE, the top most leaf for the Session Properties the Rich View Option is Enabled.
bigjack
22nd January 2007, 07:09
Hi Mahesh,
NP Rao is correct, the "rich view" option should be turned on, else the buttons are not displayed.
The help for "rich view" has following documentation,
Rich View: If this check box is selected, the form's view has more features.
A rich view can contain group boxes, filed buttons and group boxes beside
each other.
Just try to enable it, and let us know if the button is displayed.
Bye
mbdave
22nd January 2007, 07:58
Thanks bigjack and arijke now i am able to get those field buttons as i enabled rich view on the main group. can i have normal buttons as we used to get for form commands as in Baan5.
dstegink
22nd January 2007, 18:29
To get the option to have the icon in the secondary toolbar, look up secondary toolbars in the programmers manual. You will also have to create an additional file for the icon to be saved to the server. The secondary toolbar can execute any form command.
mbdave
23rd January 2007, 09:51
hi dstegink
boss i had worked on secondary toolbar its not an issue but i want the Button to be displayed on form as form command as not as icon in toolbar. I can view the form command in specific option but can i have them as normal buttons and not as filed commnad u can see the jpg i had attached of baan5 session. The buttons shoiwn there is a form command i want same way in LN too.
bigjack
23rd January 2007, 10:54
Hi Mahesh,
Im curious to know your objection in using field command. I mean, the field command looks and functions exactly the same as the buton in your baan5 session. What are you precisely looking for when you say you want a button like in your baan5 session and how is it different from a field command in LN
Cya
mbdave
23rd January 2007, 11:11
Hi folks
The field commands button will next field, and i had in some session more than 1 Button which i want on righthand side as the field length varies the position for Field command button will vary, which i dont want.
Also i am curious to know WHY CAN'T WE HAVE BUTTONS AS IN BAAN5 AS THE FORM COMMAND TO APPEAR ON THE LN FORM??
I KNOW U AGREE THAT THERE EXIST A BUTTON ON THE RIGHT SIDE OF THE FORM IN BAAN5 WHICH WE HAD DESCRIBED AS FORM COMMAND (NOT AS FIELD COMMAND) SO THAT WE CAN HAVE THOSE BUTTON ON RIGHTSWIDE OF THE FORM. SOCAN WE THAT IN lLN TOO .
bigjack
23rd January 2007, 11:28
Hi Mahesh,
"Why we dont have buttons in LN as in baan5? ...this can be answered only by GOD or Infor Guys"
Our job is to find a decent workaround. The problem in your case is the non alignment of buttons for which I suggest following workaround. Declare a dummy string variable. Place this dummy variable on your form. Now add a field command for this dummy variable. Please note that this dummy variable is required whenever you need to shift your button to the right hand side. The exact length of this dummy variable will depend on your form layout and will have to be discovered by trial & error. Try this out and let us know your findings.
Cya
mbdave
23rd January 2007, 11:42
Hi bigjack
thanks for ur interest. i got it know.
But i was not COMPLAINING that why its in 5 and not in LN, but i was just curious to know that whether this functionality exist in LN or not as it use to be in baan5. Because i didnt know for sure that the thing which we use to get in baan 5 by form command will not be available in LN, i though that it must be there but i may be missing some trick as in Field command type i missed
"THE CLICKING OF RICH VIEW IN HIGHEST LEAF FOR A MULTI OCC SESSION"
BUT THAN U GUYS TOLD ME THAT rOCH VIEW HAS TO BE CLICKED FOR MULTI OCC SESSION TO THE BUTTONS TO GET VISIBLE ON FORM.
So thats ok if ur sure that this kind of buttons are not possible in LN.
we can definately have workaround by working as u told bu a dummy form field of type string, or can do with field command or we can even do with secondary toolbar or just use specific option.
because if that functionality is not in LN not even god can asnswer why certain things are not thaere ok?
Thanks for ur interest.
i hope when any body or even SSA find solution for form command please inform me ob
bye u guys.
thanks for ur interest.
mark_h
23rd January 2007, 14:35
I undeleted this thread - someone else might find the answers useful in the future.