Hiya..
i have created an global variable called ColmNo as integer. And i have a table with various fields. what i want to know is how to set the colmNo for each field. like if my table has 4 fields say FIELD1,FIELD2,FIELD3,FIELD4 then i want to assign the ColmNo has this,
FIELD2 := ColmNo 1;
FIELD3:= ColmNo 2;
can anyone guide me in this :?:
Thanks
Comments
I do not fully grasp what your trying to achieve. Could you elaborate a bit more how? What would be your end result? (You might make some kind of mock-up using Excel and make a screen shot.)
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Anyways my requriment is like this.....i have a form which picks up value from another and on changing this picked up value the color wil change!
So i have kept a button called default and an global var ColmNo as int, What i want is , on clicking the default button after selecting an colmNo, the value in that field should revert back to its original one(the one which was there before changing it).
Thanks
shona
That which you seek inside is that which you find outside
Some questions:
Your list will have multiple lines (i.e. records)?
If so, should for all these lines, when pushing that default button, the value in the 'selected' column be reverted, or only for that record?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
yes you are right my form does have multiple lines,thats why i have kept 2 text box under my form....one is entry no(which is mapped to the forms entry no) so that it know which line 'm refering to. Another text is this ColmNo. So if i give entry no =2 And ColmNo = 4, then press default buton it will know what to change right. this is what i thought....
thanks
shona
That which you seek inside is that which you find outside
what is this? what exactly are you trying to say?
shona
That which you seek inside is that which you find outside
No clear answer yet to the second part of my second question: So do you want to reset that field for all records or only for the selected?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
only the selected ones. like line 2, colmNo 3....this is very specific right.
thats what i want
shona
That which you seek inside is that which you find outside
Of while you are editing a field value (before validation has occured) NAV still holds the previous value, but this only applies to that one record.
Do you really want to go this way?
An additional question would then (also) be: how many version back do you want to go?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
am i making sense?
shona
That which you seek inside is that which you find outside
On the main form (where you want to implement your feature on) you have the availibilty over the Rec (system) variable that contains the data of the current (selected) record.
next to that you need to define another variable (of type Record) that is linked to the supplemental table containing the options. Or as you describe, the ...: Let's call this variable supTab.
Your code (in the OnPush-trigger of the button) could be something like this: Makes sense?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
but where in the code do i specify the line no and colmno? thats important in reverting back the value right?
shona
That which you seek inside is that which you find outside
Regarding the column: I understood you would have a designated button for a specific column (i.e. field), but maybe I misunderstood. If I misunderstood I do not have a direct solution for that (as I never have built code for that). But you might have a look in the C-SIDE Reference Guide on FIELDNO.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
No..i have created a global variable called ColmNo as int, and mapped it to the textbox i placed at the bottom of my form in the designer.
In the command button default, i need to call this colmno in through codes, so that when i change the colmno and press default it will change the value respectively!....
thanks
shona
That which you seek inside is that which you find outside
If you have a gmail account you can post your screenshot there and use a link. else screenshot to paint & save as JPG and attach it to the post.
http://www.BiloBeauty.com
http://www.autismspeaks.org
shona
That which you seek inside is that which you find outside