on ‎2010 Mar 30 5:53 PM
Hi experts,
I need help,
I have two problems
the first one is : i have 5 folders into my form but when my form is activate it's one folder which is activate the others are desable.
I must always load my form in screen painter before loading it in SBO menu.
the second is : when i change language i must reload my add-on. Because my add-on status is always "connected" but i can say it in SBO menu.
Regards.
Request clarification before answering.
Hi Gordon,
I have used 5 folders. I said that when my form is activate one folder is enabled and when i try to see the information in an other folder it's the editTextbox of the first folder which appear.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to set the FromPane and ToPane properties of the controls present on each folder. Then the controls in each folder will be visible accordingly.
If the FromPane and ToPane for the first folder is set to 1 then all the controls present on that folder should have their FromPane and ToPane properties set to 1. For second folder the FromPane and ToPane should be set to 2 and same for the controls of the second folder and so on.
Then you need to set the FormPane property to 1 or 2 and so on. Then in item pressed event change the form pane as you wish.
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
oForm = oSBOApplication.Forms.ActiveForm
If pVal.ItemUID = "tabRunTime" Then
oForm.PaneLevel = 1'first folder items will be displayed
End If
If pVal.ItemUID = "tabResDet" Then
oForm.PaneLevel = 2'second folder items will be displayed
End If
If pVal.ItemUID = "tabTstDet" Then
oForm.PaneLevel = 3
End If
End If
Hope this helps.
Regards,
Noor hussain
Edited by: noor_023 on Mar 31, 2010 11:05 AM
Hi Noor,
When i restart SAP Business One it's the same problem i get.
Regards.
Edited by: Olivier KPOLO on Apr 1, 2010 2:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to check the formid property. Put the below code in ItemEvent
If pVal.FormUID = "Your Form ID" And pVal.BeforeAction = False Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
oForm = oSBOApplication.Forms.ActiveForm
If pVal.ItemUID = "tabRunTime" Then
oForm.PaneLevel = 1
End If
If pVal.ItemUID = "tabResDet" Then
oForm.PaneLevel = 2
End If
If pVal.ItemUID = "tabTstDet" Then
oForm.PaneLevel = 3
End If
End If
End IF
Noor
Hi,
it's mean that i must redraw the folders and the controls by code? If it's yes. why we use UDO Form Generator?
Regards
Edited by: Olivier KPOLO on Mar 31, 2010 5:31 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
We use form generator to save the time which would be required to design the form manually. And you don't need to draw the folder and controls in your form by code. You just write the code which I had posted before in the item event of your form. you need to change the formpane property when the folder is clicked.
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
oForm = oSBOApplication.Forms.ActiveForm
If pVal.ItemUID = "tabRunTime" Then
oForm.PaneLevel = 1
End If
If pVal.ItemUID = "tabResDet" Then
oForm.PaneLevel = 2
End If
If pVal.ItemUID = "tabTstDet" Then
oForm.PaneLevel = 3
End If
End If
Noor
Hi Noor,
I have done my form with SBO UDO Form Generator.
I have no specific code.
It work properly when i activate my form with screen painter before activate it in sbo menu, but when i don't do that the problem appear.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi experts,
thanks for yur reply.
But my real problem is that, when my form is activate the first folder is activate and displayed his controls.
If i click on the second folder it's the first folder controls which are displayed i.e it's don't change else we must have the second folder controls. it's the same with the 3 to 5th folder.
Regards.
Edited by: Olivier KPOLO on Mar 31, 2010 11:25 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One question for one thread please. This is the forum rule.
For the first question, only one folder could be enabled at any given time. Have you tried to use only one folder for your form?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 17 | |
| 17 | |
| 10 | |
| 9 | |
| 8 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.