×
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...
Anyone ever use CALLDOTNET ?
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20038
by mealea
Anyone ever use CALLDOTNET ? was created by mealea
Hi all,
Is there anyone ever use CALLDOTNET in T24. I use it but I got problem while trying to paste Unicode character but it's show ??? in T24.
Waiting for your response.
Is there anyone ever use CALLDOTNET in T24. I use it but I got problem while trying to paste Unicode character but it's show ??? in T24.
Waiting for your response.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20044
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
Hi
- Unicode or UTF-8 one?
- Paste from where to where?
- Unicode or UTF-8 one?
- Paste from where to where?
Cheers
VK
Please Log in or Create an account to join the conversation.
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20045
by mealea
Replied by mealea on topic Anyone ever use CALLDOTNET ?
Using UTF-8, I use .net to read all the value from xml and display it into T24.
In .net I see it display correctly with UTF-8 but when display it in T24 is show ??? instead.
So anyway to display correctly in T24 as .net?
In .net I see it display correctly with UTF-8 but when display it in T24 is show ??? instead.
So anyway to display correctly in T24 as .net?
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20046
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
I suppose you have utf-8 set in T24? Something like:
Also, what exactly "display in T24" means? Is it an output of ENQUIRY or something else?
Can you see other utf-8 data in T24?
set JBASE_I18N=1
set JBASE_CODEPAGE=utf8
Also, what exactly "display in T24" means? Is it an output of ENQUIRY or something else?
Can you see other utf-8 data in T24?
Cheers
VK
Please Log in or Create an account to join the conversation.
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20051
by mealea
Replied by mealea on topic Anyone ever use CALLDOTNET ?
Hi VK,
Sorry for my explanation not clear. I will explain in detail as below :
- I already set
set JBASE_I18N=1
set JBASE_CODEPAGE=utf8
set JBASE_LOCALE=km_KH
- My problem is that
I have a table store 2 column ID and XML record
I use c# in .net to read all the data in XML record from the table
My necessary is MEMBER_REF, ID_TYPE, CUSTOMER_NAME, GENDER, DOB, MOBILE ...
In T24, I create a local field MEMBER_REF in the CUSTOMER file.
Then I attach it in the validate in the MEMBER_REF field and set it to hot field in the version to create new customer.
So when input the value in the field MEMBER_REF it will access to the dll of .net through calldotnet function and I got it properly when the data contain number English letter , but the problem when the data contain Khmer Unicode character it display data in the field ID_TYPE in T24 as '???'.
Please suggest me any way to display it in the field ID_TYPE with original value from .net?
Sorry for my explanation not clear. I will explain in detail as below :
- I already set
set JBASE_I18N=1
set JBASE_CODEPAGE=utf8
set JBASE_LOCALE=km_KH
- My problem is that
I have a table store 2 column ID and XML record
I use c# in .net to read all the data in XML record from the table
My necessary is MEMBER_REF, ID_TYPE, CUSTOMER_NAME, GENDER, DOB, MOBILE ...
In T24, I create a local field MEMBER_REF in the CUSTOMER file.
Then I attach it in the validate in the MEMBER_REF field and set it to hot field in the version to create new customer.
So when input the value in the field MEMBER_REF it will access to the dll of .net through calldotnet function and I got it properly when the data contain number English letter , but the problem when the data contain Khmer Unicode character it display data in the field ID_TYPE in T24 as '???'.
Please suggest me any way to display it in the field ID_TYPE with original value from .net?
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20055
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
Hi
Field ID_TYPE in T24 - which type is it? (IN2A, IN2S, IN2ANY...)
Can you input there your Khmer character manually?
Also, try to analyze what exactly dll returns to you.
E.g. (in T24 Classic or in jsh):
Field ID_TYPE in T24 - which type is it? (IN2A, IN2S, IN2ANY...)
Can you input there your Khmer character manually?
Also, try to analyze what exactly dll returns to you.
E.g. (in T24 Classic or in jsh):
* test program - use on XML data that returns only one Khmer character and nothing more
* replace sample names with yours at the next line
CALLdotNET 'myNameSpace.Class1', 'mymethod', p SETTING ret
CRT ret
CRT LEN(ret)
CRT BYTELEN(ret)
CRT SEQ(ret)
Cheers
VK
Please Log in or Create an account to join the conversation.
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20066
by mealea
Replied by mealea on topic Anyone ever use CALLDOTNET ?
Hi VK,
Please check my screen for detail.
Mealea,
Please check my screen for detail.
Mealea,
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20067
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
Hi
sorry I never open a doc file from an external source :))
please use png or something else
Thanks for your understanding
sorry I never open a doc file from an external source :))
please use png or something else
Thanks for your understanding
Cheers
VK
Please Log in or Create an account to join the conversation.
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20068
by mealea
Replied by mealea on topic Anyone ever use CALLDOTNET ?
Hi VK,
Ok I will send you again screen below :
Mealea
Ok I will send you again screen below :
Mealea
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20069
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
Hi
the debugger shows "?????" but we can't be sure if these are question marks or Khmer characters - the terminal might be not capable to show the latter...
Can you try to include to this program the following lines that I posted earlier - with a slight change
... and see results?
the debugger shows "?????" but we can't be sure if these are question marks or Khmer characters - the terminal might be not capable to show the latter...
Can you try to include to this program the following lines that I posted earlier - with a slight change
CRT LEN(ret)
CRT BYTELEN(ret)
CRT SEQ(ret[6,1])
CRT OCONV(ret, 'MX')
CRT OCONV(ret[6,1], 'MX')
... and see results?
Cheers
VK
Please Log in or Create an account to join the conversation.
- mealea
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
7 years 6 months ago #20071
by mealea
Replied by mealea on topic Anyone ever use CALLDOTNET ?
Dear VK,
This is the result. Please check as attachment.
Mealea,
This is the result. Please check as attachment.
Mealea,
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
Less
More
- Posts: 1106
- Thank you received: 148
7 years 6 months ago #20072
by VK
Cheers
VK
Replied by VK on topic Anyone ever use CALLDOTNET ?
Hi
LEN() and BYTELEN() results are the same, it means that all characters are single-byte ones.
Apparently it returns ASCII 3F (question mark). There are 2 ways to proceed:
1. Address Temenos stating that CALLdotNET can't proceed Unicode characters (you'll need the output of "CRT OCONV(ret, 'MX')" to prove that). Maybe they might suggest something on .NET side.
2. Mask Unicode characters in .NET - like conversing them to ASCII strings like "\uNNNN", where NNNN is the character number.in Unicode; then convert them back in jBC.
Hope this helps.
LEN() and BYTELEN() results are the same, it means that all characters are single-byte ones.
Apparently it returns ASCII 3F (question mark). There are 2 ways to proceed:
1. Address Temenos stating that CALLdotNET can't proceed Unicode characters (you'll need the output of "CRT OCONV(ret, 'MX')" to prove that). Maybe they might suggest something on .NET side.
2. Mask Unicode characters in .NET - like conversing them to ASCII strings like "\uNNNN", where NNNN is the character number.in Unicode; then convert them back in jBC.
Hope this helps.
Cheers
VK
Please Log in or Create an account to join the conversation.
Time to create page: 0.144 seconds