Java Programming
- pblnkalyan
- Topic Author
- Offline
- New Member
-
- Posts: 3
- Thank you received: 0
I can see there are some core function like below available under this package:
Cdd
Cdt
StoreEndError
etc...
i tried to use them, but under each class file there are a number of functions. it is difficult to identify the correct function that we use under infobasic.
Wold be helpful if someone could provide any documentation if available.
Please Log in or Create an account to join the conversation.
- gmaroko
- Offline
- New Member
-
Is CALLJ what you're looking for?
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
i am using java progamming and i ama trying to set a default value in a application field using validateRecord() method ;
i'm using .setvalue() and .setMnemonic("ABCD") my example is on mnemonic field but not working , Mnemonic field not changing
@Override
public TValidationResponse validateRecord(String application, String currentRecordId, TStructure currentRecord,
TStructure unauthorisedRecord, TStructure liveRecord, TransactionContext transactionContext) {
AccountRecord acc=new AccountRecord(currentRecord);
//NOT WORKING
TField f1=acc.getMnemonic();
f1.setValue("ABC");
transactionContext.toStructure();
}
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
Also there is a java documentation posted on TCSP site
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
You may refer to T24 Documentation posted on TCSP Site for more info
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
if you know someone can help please tell me!
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
in fact my setvalue() method is working but she is not returning value to mnemonic field .
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
public void defaultFieldValues(String application, String recordId,
TStructure record, TStructure lastLiveRecord) {
FundsTransferRecord ft = new
FundsTransferRecord(record);
Session session = new
Session(this);
if
(session.getUserDispoOffice
r().compareTo("") == 0) {
throw new
T24CoreException("","EBDOFF.REQUIRED");
} else {
if (ft.getTransactionType().getValue() == "") {
ft.setTransactionType("AC");
}
if (ft.getDebitCurrency().getValue() == "") {
TField localCurrency =
session.getCompanyRecord().getLocalCurrency();
ft.setDebitCurrency(localCurrency.getValue());
}
record.set(ft.toStructure());
}
}
Based on the documentation there different way to set the value similar to R.NEW on TAFC/Jbase.
try to use
f1.("ABC")
acc.setMnemonic(ABC"))
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
my main problem is that setvalue works using defaultFieldValues method like the one you sent this method work on check rec routine
but i'm trying to set values in a input routine using validateRecord method and setvalue() is not working in this type of method
Please Log in or Create an account to join the conversation.
- silvergem
-
- Offline
- Elite Member
-
- TAFC|R12/R13, TAFJ|R20
- Posts: 268
- Thank you received: 21
Also validation only works when there is hot field/hot validate or you click the validate button.
ON user guide, he use defaultFieldValues class to set value not on TValidationResponse class
You can check the full user guide here
Please Log in or Create an account to join the conversation.
- zouzou
- Offline
- Junior Member
-
- Posts: 25
- Thank you received: 0
how can i keep in touch with you ?
Please Log in or Create an account to join the conversation.