× Discuss on T24 Installation, Setting up the environment, TC Server, jBOSS, Package & Deployment, etc…

NOINPUT FIELD TO INPUTABLE FIELD

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13839 by vijaygubbi
NOINPUT FIELD TO INPUTABLE FIELD was created by vijaygubbi
Dear All,
Am not getting to reset the noinput field to inputable field.
"If Filed1 eq "yes" then make Field2 as noinput field"
or
"if the Field1 ne "yes" then Filed2 as inputable field"
for this i used this syntax:-"T.LOCREF<LOC.REF.POS,7> = 'NOINPUT'" else "T.LOCREF<LOC.REF.POS,7> = ''"

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago #13842 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
Do you call REBUILD.SCREEN at the end ?

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13849 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
Dear Andreas,

Actually i called that routine like this
CALL F.READ(FN.ACC,Y.ACC.ID,R.ACC,F.ACC,ACC.ERR)
Y.PR.STATUS=R.ACC<AC.LOCAL.REF,Y.PRM.ACC>
IF Y.PR.STATUS NE "NO" THEN
T.LOCREF<Y.LNK.PR,7>='NOINPUT'
END ELSE
CALL REBUILD.SCREEN
END
RETURN
END


But its not working...
will u help me on this...

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago #13850 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
You should do the turn on-off explicit, meaning
CALL F.READ(FN.ACC,Y.ACC.ID,R.ACC,F.ACC,ACC.ERR)
Y.PR.STATUS = R.ACC<AC.LOCAL.REF,Y.PRM.ACC>
IF Y.PR.STATUS NE "NO" THEN
    T.LOCREF<Y.LNK.PR,7> = 'NOINPUT'
END ELSE
    T.LOCREF<Y.LNK.PR,7> = ''
END
CALL REBUILD.SCREEN
RETURN
END

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13851 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
hi facing problem to attach my doc to show actually what sort of problem am facing... will u guide me to attach the doc in forum...

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago #13852 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
The trick is looking at the top of browser page after using "Add file" and "Insert", you might see 'file too large' or 'unsupported type' etc...

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13853 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
Hi,
Its not showing anything and even it wont take for the add file itself.. how can it be...

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago - 12 years 2 months ago #13854 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
Use the REPLY button, not QuickReply


Attachments:
Last edit: 12 years 2 months ago by jpb.

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13861 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
Hi,
Now i attached the doc files regarding am facing the problem regarding my topic.
will please sort out the solution for this query...
Attachments:

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13862 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
this the remaining snapshots of that...
Attachments:

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago #13872 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
Obviously you are in ACCOUNT application, so why do you READ again with Y.ACC.ID ? Is that another ACCOUNT ?? If not, just use R.NEW as your READ will fail when inputting a new record.

Beside this I must say that I'm not that used to browser and can't say if there is any trick to be known, we perfer Desktop - everything works there as expected!

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago #13888 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
Actually i got for that,but it has to check the local Field2 has noinput field or not. If it is noinput field then it dont want to thrown an error as Primary account customer and the Secondary account customer are different. if it is an input able field it has to check for that the bot the customer of that account are same or not.... for this i wrote an routine like this...


INIT:
FN.ACC='F.ACCOUNT' ; F.ACC=''
Y.ACC.ID=ID.NEW ; Y.APP='ACCOUNT'
Y.FIELD='LR.LNK.PR' ; Y.POS=''
RETURN
OPENFILE:
CALL OPF(FN.ACC,F.ACC)
CALL GET.LOC.REF(Y.APP,Y.FIELD,Y.POS)
Y.LNK.PR=Y.POS<1,1>
RETURN
PROCESS:
SEL.CMD="SELECT ":FN.ACC
CALL EB.READLIST(SEL.CMD,SEL.LIST,'',NO.OF.REC,RECT.CODE)
LOOP
REMOVE Y.ACC.ID FROM SEL.LIST SETTING Y.POS
WHILE Y.ACC.ID:Y.POS
CALL F.READ(FN.ACC,Y.ACC.ID,R.ACC,F.ACC,ACC.ERR)
LR.LNK.PR=R.ACC<AC.LOCAL.REF,Y.LNK.PR>
Y.PRIM.CUS=R.NEW(AC.CUSTOMER)
Y.SEC.CUS=R.ACC<AC.CUSTOMER>
!
CALL EB.LOCREF.SETUP('ACCOUNT',LR.LNK.PR)
IF LR.LNK.PR<1,7> NE 'NOINPUT' THEN
END ELSE
IF Y.PRIM.CUS NE Y.SEC.CUS THEN
ETEXT="EB-PRIM.SEC.ACC.CHK.RII"
CALL STORE.END.ERROR
END
END
REPEAT
RETURN
END


..... its not working as per the requirement....
kindly reply for this with suggestion...

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 2 months ago #13893 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
To be honest I can't really follow your code, e.g. :
- you reuse LR.LNK.PR
- assign Y.PRIM.CUS within LOOP even it doesn't change
- you loop thru complete ACCOUNT (why not use CUSTOMER.ACCOUNT or at least select WITH ...)
- after the ! it's total confusing, you will get loads of errors ?!?!?

When you call EB.LOCREF.SETUP you get back an array with all local fields, i.e. your LR.LNK.PR is the array of all local fields for ACCOUNT with 7 subvalues for each field. To get the relevant definition for the field you want you should use the fieldposition that you get out of GET.LOC.REF.

Keep in mind that EB.LOCREF.SETUP get the information out of LOCAL.TABLE itself, not from the current common area (e.g. not your manipulated T.LOCREF)

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

  • vijaygubbi
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 months ago - 12 years 2 months ago #13895 by vijaygubbi
Replied by vijaygubbi on topic NOINPUT FIELD TO INPUTABLE FIELD
Hi, JPB

I solved some sort of the problem on the topic, but still struggling to get 100%...

this the routine i recreated for the version,

Y.PRIM.STATUS=R.NEW(AC.LOCAL.REF)<1,Y.PRIM.ACC>
Y.LNK.STATUS=R.NEW(AC.LOCAL.REF)<1,Y.LNK.PR>
Y.ACC.ID=R.NEW(AC.LOCAL.REF)<1,Y.LNK.PR>
CALL F.READ(FN.ACCOUNT,Y.ACC.ID,R.ACCOUNT,F.ACCOUNT,ACC.ERR)
Y.PRIM.CUS=R.ACCOUNT<AC.CUSTOMER>
Y.SEC.CUS=R.NEW(AC.CUSTOMER)
IF Y.LNK.STATUS EQ 'NOINPUT' THEN
RETURN
END
IF Y.PRIM.STATUS EQ 'YES' THEN
RETURN
END ELSE
IF Y.LNK.PR EQ '' THEN
E='LR.LNK.PR FIELD MUST HAVE VALUE'
END ELSE
IF Y.PRIM.CUS NE Y.SEC.CUS THEN
ETEXT="EB-PRIM.SEC.ACC.CHK.RII"
CALL STORE.END.ERROR
END
END
END
RETURN
END



in the above rouitne it checks the status of the both local field,
if the local field1 status becomes "yes" the transaction will complete and even the local field1 status become "no" and if we wont entered in the field2 it throwing error, but if i entered the value related to same customer also it throws an error as customer are different...
what shall i do for this....
Last edit: 12 years 2 months ago by vijaygubbi.

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

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 1 month ago #13936 by jpb
Replied by jpb on topic NOINPUT FIELD TO INPUTABLE FIELD
R.NEW(AC.LOCAL.REF)<1,Y.PRIM.ACC> can have value YES or NO ??
R.NEW(AC.LOCAL.REF)<1,Y.LNK.PR> contains an account number or null ??

Where is the routine attached ?

=============================================

Y.LNK.STATUS = R.NEW(AC.LOCAL.REF)<1,Y.LNK.PR>
Y.ACC.ID = R.NEW(AC.LOCAL.REF)<1,Y.LNK.PR>

???

shouldn't it be :

Y.LNK.STATUS = T.LOCREF<Y.LNK.PR,7>

========================================

IF Y.LNK.PR EQ '' THEN
E = 'LR.LNK.PR FIELD MUST HAVE VALUE'

should be tested at the beginning

========================================

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

Time to create page: 0.050 seconds