Skip to main content
Solved

Handling of Basic Data Translation IFS 9 - Add new Logical Unit

  • January 20, 2021
  • 3 replies
  • 537 views

Forum|alt.badge.img+5
  • Do Gooder (Customer)

Hi Community,

 

we are currently getting more into translations and are checking the possibilities in the system and the best approach to handle our needs.

We are also working with ‘Basic Data Translation’ but are missing some logical units in there. Is there a way to add Logical Units (not Component) ourselves? Or do I have to request this from our IFS consultant and do a full package installation routine? The Logical Units exist in the system, but are not available in this form.

 

We are using IFS Apps 9 UPD16

 

Thanks

Best answer by SarangaLiyanage

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.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

Forum|alt.badge.img+3

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.


Forum|alt.badge.img+5
  • Author
  • Do Gooder (Customer)
  • 18 replies
  • May 27, 2021

@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!


Forum|alt.badge.img+9

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings