Hi,
I use Profile Documents to create Sequential Numbering. I have a “Press To Sign” button on another form, and when the originator clicks on this button, it should get the sequential number and record it. I have a Computed when Composed field - seqnum, with value - seqnum, on this form.
Example of setting the seqnum, when clicking on the “Press To Sign” button.
**
TempWS:=@GetProfileField(“ProfileWS”;“counterWS”);
TempWW:=@GetProfileField(“ProfileWW”;“counterWW”);
TempDS:=@GetProfileField(“ProfileDS”;“counterDS”);
TempDW:=@GetProfileField(“ProfileDW”;“counterDW”);
TempWM:=@GetProfileField(“ProfileWM”;“counterWM”);
TempWB:=@GetProfileField(“ProfileWB”;“counterWB”);
TempBS:=@GetProfileField(“ProfileBS”;“counterBS”);
TempBM:=@GetProfileField(“ProfileBM”;“counterBM”);
@If(
type=“WS”;@Do(FIELD seqnum:=TempWS;@SetProfileField(“ProfileWS”;“counterWS”;TempWS+1));
type=“WW”;@Do(FIELD seqnum:=TempWW;@SetProfileField(“ProfileWW”;“counterWW”;TempWW+1));
type=“DS”;@Do(FIELD seqnum:=TempDS;@SetProfileField(“ProfileDS”;“counterDS”;TempDS+1));
type=“DW”;@Do(FIELD seqnum:=TempDW;@SetProfileField(“ProfileDW”;“counterDW”;TempDW+1));
type=“WM”;@Do(FIELD seqnum:=TempWM;@SetProfileField(“ProfileWM”;“counterWM”;TempWM+1));
type=“WB”;@Do(FIELD seqnum:=TempWB;@SetProfileField(“ProfileWB”;“counterWB”;TempWB+1));
type=“BS”;@Do(FIELD seqnum:=TempBS;@SetProfileField(“ProfileBS”;“counterBS”;TempBS+1));
type=“BM”;@Do(FIELD seqnum:=TempBM;@SetProfileField(“ProfileBM”;“counterBM”;TempBM+1));
“”);
**
When some users create a document, it gets the Sequential Number through the Profile Document, but it doens’t display it in the field - seqnum.
How is this possible. For some users it works, for others it doesn’t. Once someone created a document where the number isn’t displayed, it affects all new documents. No numbers are then displayed.