on 03-03-2005 7:47 PM
Hi SBO developers!...
I want to add columns in "document numbering" form in its load event. Someone could sugest me how to do that? I try to make it but the error is "Matrix - Line Exists" after to execute the sentence "colum.add(id,16)"in my code.
Thanks a lot.
It's very importan to me.
VDM
As far as I know you cant make an extra row on the fly if lines exist in a matrix.
I have not tried this but try adding a userfield to the NNM1 table. This way the new column should be there always and you should be able to show and hide it... In theory...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> As far as I know you cant make an extra row on the
> fly if lines exist in a matrix.
The SBO UI-help says the same.
> I have not tried this but try adding a userfield to
> the XYZ table. This way the new column should be
> there always and you should be able to show and hide
> it...
I can confirm that, that's exatly what i'm doing. For a simple field, you get a column with an EditTexts.
If you specify valid values, you get a column with ComboBoxes.
Show / Hide works just like showing/hiding other matrix fields. If you want to it programmatically, you may want to have a closer look at table CPRF. I didn't figure out how to do it using the SDK.
If anyone is interested I could post following functions:
SetInvisible(fieldName As String, formType As String, itemId As String)
SetVisible(fieldName As String, formType As String, itemId As String)
Florian
I did not try that... Is it permanently hidden then? Or would I have to do it on every FORM_LOAD?
I don't want to hide a UI-column, I would like to configure where a User Definde Field should be displayed... This is what I'm doing at the moment by changing CPRF only once, at addon installation time... you also can specify there on which position the column should appear...
In the SBO GUI you can do the same thing by opening the Form "Form Settings" (Formtype=998, one of the icons in the Toolbar)
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.