Hi,
I managed to add the component and the logical unit using the method ‘ LANGUAGE_SYS_IMP_API.New__’ and used it for Basic Data translation.
For example, following is the script that I used to add the Engineering Change Request Level to the Basic Data Translation Header.
DECLARE
attr_ VARCHAR2(32000):=NULL;
info_ VARCHAR2(32000);
objid_ VARCHAR2(32000);
objversion_ VARCHAR2(32000);
action_ VARCHAR2(32000):='DO';
BEGIN
CLIENT_SYS.Clear_Attr(attr_);
CLIENT_SYS.Add_To_Attr('MODULE', 'PDMCON', attr_);
client_sys.Add_To_Attr('LU', 'EcoRequestLevel', attr_);
client_sys.Add_To_Attr('TYPE', 'Basic Data', attr_);
client_sys.Add_To_Attr('USE_TRANSLATION_DB', 'TRUE', attr_);
client_sys.Add_To_Attr('SHOW_PROG_LANGUAGE_DB', 'TRUE', attr_);
client_sys.Add_To_Attr('USE_TRANSLATION_EDITED_DB', 'FALSE', attr_);
LANGUAGE_SYS_IMP_API.New__(info_, objid_, objversion_, attr_, action_);
END;
I used this along with an RMB option at the Basic data window in order to give the user ability to enter the translations along with the basic data entry.
Hope this helps.
@SarangaLiyanage
Hi Saranga,
that helps a lot. In the meantime,we also contacted IFS and got a solution from one of the consultants, but yours is even more detailed.
Thanks a lot!
Hi Saranga,
This is just a small part of the solution.
This just allows to manually administrate the translations for basic data in Basic data translation.
But the translations will not be used anywhere in the system. The following is missing in client and/or server code:
- Function to Create and update of a basic data translation, when description is created or changed in basic data of the logical unit
- translated descriptions are not fetched to the basic data form or any other form where the basic data is used
- Logical_unit ….’API.get_description(Attribute_key, language_code) is missing.
Johannes