× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

T.FIELDNO update

  • Insane
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 3 months ago #699 by Insane
T.FIELDNO update was created by Insane
Hi, I have a problems in validation routine, that adds new multivalue to another field. In the end of routine I'm calling REBUID.SCREEN function, and then cursor position changes to the first field on version, instead of next field. I think, that this happens because T.FIELDNO doesn't updates, when I manually create new multivalue. Does anyone knows, how to correctly update T.FIELDNO, or maybe there is another way?

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

More
17 years 3 months ago #700 by malai
Replied by malai on topic Post here
Post your code snap here.



Have you tried the same in Desktop?

What happens when you call MATRIX.ALTER?



Which version of T24 r u using?






Keep posting and make this community active|Thanks

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

  • Insane
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 3 months ago #701 by Insane
Replied by Insane on topic T.FIELDNO update
SUBROUTINE CUSTOMER.V.VAL
$INSERT I_COMMON
$INSERT I_EQUATE
$INSERT I_F.CUSTOMER

    R.NEW(EB.CUS.SHORT.NAME) = 'TEXT1'

    R.NEW(EB.CUS.SHORT.NAME) = 'TEXT2'
* This field isn't present in T.FIELDNO, but it will, if I call REM, for example. :)

    * .... SOME ANOTHER CODE
    R.NEW(AF) = COMI
    CALL REBUILD.SCREEN
RETURN
END

This is validation routine for local field in CUSTOMER application. Version doesn't contains SHORT.NAME field, but contains another fields before field, routine is connected to.
T24 version: R06.
I've tested it only on GLOBUS Desktop, currently we're not use Browser.
MATRIX.ALTER gets the same results (BTW, where can I read about it?).

Thanks.

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

More
17 years 3 months ago #702 by malai
Replied by malai on topic T.FIELDNO
If you dont want a field to display in a version then you dont want to put the field no in T.FIELDNO.



I tried the same in T24 and works fine for me.



I created a version CUSTOMER,TEST with the following fields.

MNEMONIC

NAME

STREET

SECTOR

LANGUAGE

NATIONALITY

RESIDENSE



I wrote a validation routine for the field MNEMONIC that fills/updates the field SHORT.NAME.


B>
0001 SUBROUTINE MY.VALIDATION.RTN

0002 $INSERT I_COMMON

0003 $INSERT I_EQUATE

0004 $INSERT I_F.CUSTOMER

0005

0006 IF MESSAGE EQ 'VAL' THEN RETURN

0007

0008 R.NEW(EB.CUS.SHORT.NAME)='ENGLISH VALUE'

0009 R.NEW(EB.CUS.SHORT.NAME)='FRENCH VALUE'

0010

0011

0012 RETURN



Once I enter a value in the field MNEMONIC the value in SHORT.NAME will get populated and the cursor moved to the next field NAME.






Keep posting and make this community active|Thanks

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

More
17 years 3 months ago #703 by Spiderman
Replied by Spiderman on topic Check AF,AV values
Chek the AF, AV values also. I dont think the AF , AV values will get updated when you update the field value in R.New.

Great power comes with great responsibilities.

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

  • Insane
  • Topic Author
  • Offline
  • New Member
  • New Member
More
17 years 3 months ago #704 by Insane
Replied by Insane on topic Cursor position
2Spiderman: Values of AF, AV and AS doesn't changed explicity and implicity in my routine, I've already check it.



2malaiselvan: I agree, that your routine will work fine. But in my case routine connected to the field, that placed below SHORT.NAME. This routine will work fine even in that case. But if you want to change also value of the field, that exist on the version, you need to call REBUILD.SCREEN, and then cursor will jump.

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

Time to create page: 0.080 seconds