Mandatory field

  • dmitry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 4 months ago #2128 by dmitry
Mandatory field was created by dmitry
Hello everybody. I have the following question. How can I make no local fields of system or local application mandatory for input on version programmatically? I tried to use R.VERSION(EB.VER.MANDATORY.FIELD) but this way doesn't work. Do you have any idea?

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #2129 by Viewer
Replied by Viewer on topic mandatory
Hi,

I did something like that in the past so dont rememeber all details (would have to check) but you can set the field to be mandatory in the very stage of the application launching so the routine - which manipulates the common variable related to the filed definition N(X)- should be attached to VERSION->Aut New Content or Check Rec Rtn.
However as I rememebr it doesn't work in all core applications, especially LD which is special one. I suggest to use different Versions with filed mandatory or not, instead of routine or just use it in local development.

P.

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #2130 by samuraj
Replied by samuraj on topic R.VERSION manipulation
I think that on some releases you can change R.VERSION from version routines, I tried it last time on G14 and R05. But I'm not sure that this is still available in further versions like R06 or R07

Please Log in or Create an account to join the conversation.

  • saran
  • Visitor
  • Visitor
16 years 4 months ago #2131 by saran
Replied by saran on topic N array
hi,

you can play with N array as Mr.Viewer said. But a care should be taken before doing that.It will work fine. Change N(fieldno) = 'maxchar.1.' and call REBUILD.SCREEN .

But its is not ADVICEABLE. think twice before doing this.

regards,
saravanan

Please Log in or Create an account to join the conversation.

  • dmitry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 4 months ago #2132 by dmitry
Replied by dmitry on topic About array N()
Hello.

Thanks for your posts. But I tried to play with array N().
After REBUILD.SCREEN field is really highlighted like mandatory, but it is not mandatory in fact. System allows commit record with empty field and doesn't display error message.
It is very strange, because analogous way works for local fields via array T.LOCREF<>.

Please Log in or Create an account to join the conversation.

  • saran
  • Visitor
  • Visitor
16 years 4 months ago #2133 by saran
Replied by saran on topic IT WORKS FINE FOR ME
hi Dima,

i am using same logic that we are using in T.LOCREF for N array and i am calling rebuild.screen. it is working fine in TELNET and DESKTOP i didnt tested in browser. Hope it will work fine in browser also.

below is a sample code:

BEGIN CASE
CASE AF = EB.CUS.ADDRESS
IF COMI THEN
Y.NSTORE = N(EB.CUS.POST.CODE)
N(EB.CUS.POST.CODE) = Y.STORE:'.':'1'
END ELSE
N(EB.CUS.POST.CODE) = '35'
END
END CASE
CALL REBUILD.SCREEN

regards,
saravanan

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #2134 by samuraj
Replied by samuraj on topic You can crossvalidation
Instead of manipulating global variables which is a hack to say honestly, you can use INPUT.ROUTINE to inform user that he needs to fill some more fields, and this will surely work on every technology Temenos will introduce, at least for next several yeras :)

Please Log in or Create an account to join the conversation.

More
16 years 3 months ago #2135 by revinath
Replied by revinath on topic Try this...

You can use an INPUT.ROUTINE

below is a sample code:

Y.PUR.TYPE=R.NEW(IBN.PURCHASE.TYPE)
IF Y.PUR.TYPE EQ '' THEN
ETEXT='ENTER PURCHASE TYPE'
CALL STORE.END.ERROR
END
CALL REBUILD.SCREEN

revinath

Please Log in or Create an account to join the conversation.

  • dmitry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 3 months ago #2136 by dmitry
Replied by dmitry on topic INPUT ROUTINE.
Hello.
Thanks for your posts. I think processing in INPUT ROUTINE
is the most appropriate variant in my situation.

Please Log in or Create an account to join the conversation.

  • divesh
  • Visitor
  • Visitor
13 years 5 months ago #7817 by divesh
Replied by divesh on topic Re: INPUT ROUTINE.
I have a local field Province and its a mandatory field in version

When Residence NE "MZ" , this field should become non mandatory field.

Please help its urgent

Thanks
Divesh

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #7821 by Dzuki
Replied by Dzuki on topic Re: INPUT ROUTINE.
Hello
If it local field, then you can write validation routine, change in version field from mandatory to the non-mandatory.
In validation just write
if Residence EQ "MZ" and local field="" then error

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #7824 by sharathnp
Replied by sharathnp on topic Re: Mandatory field
Better make it mandatory while defining the version or handle it through ETEXT,not adivsable to change the attributes in between.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #8431 by raji
Replied by raji on topic Re: Mandatory field
Hi,

If you want to set a local refernce filed as a 'mandatory' in version level use the bellow concept in the input routine.

CALL GET.LOC.REF('FUNDS.TRANSFER', 'CONTRACT.NO', LRF.POS) * To get a loc ref field position
T.LOCREF<LRF.POS,2>="FLD.LEN":".1" * To set a loc.ref field as a mandatory

Here 'CONTRACT.NO' is local reference field of FT application.

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds