Working with Multilingual fields - Forum - Rollbase - Progress Community

Working with Multilingual fields

 Forum

Working with Multilingual fields

  • I have some fields setup to allow for multilingual input. I am wondering how to access this data with client-side api such as rbf_getfield. Say I want to get data from a multilingual field from object A an copy to an input on object B. I see that I can target the field using Fieldname_isoCountryCode. That works fine in conjunction with rbf_setFieldValue. However, I cannot see to get the info from the original Object A field. Primary language is not a problem.
  • Hello Andrew,



    from my understanding, you'd like to access a field of object A and copy it over to a field on object B?



    Thanks,

    Corey Prak
  • Hi Corey,

    Yes, you are correct. I am trying to grab the data from both language inputs on the field.
  • Hello Andrew,



    were you able to retrieve the value of the field of Object A? Please let me know if you'd like my assistance.



    Thanks,

    Corey Prak
  • That is my question, I can get the value of the primary language with something like rbf_getfields. How to get the value of the secondary language?
  • Hello Andrew,



    if you were able to retrieve the first field using rbf_getfields(), could you apply the same API to retrieve the value of the second field? I'm assuming that these two fields are custom fields of an object which you created. Please correct me if I'm wrong, I apologize for the misunderstanding.



    Thanks,

    Corey Prak



  • Hi Corey.



    This is a multi-lingual field, i.e. it has the "This field allows storing multiple values for supported languages" option set. So the single field presents more than one input and accepts values for both languages.



    I need to copy the value from both languages to another object. using rbf_getfields, I can copy the input from the currently used language. I would like to copy both.
  • Hello Andrew,



    I have tested and confirmed this possibility with my colleagues, there is currently no way to access this secondary translation field. Hence, this field strictly serves as an interchangeable representative of an Object/Record Field label, depending on the language setting that is active. For now, any code or tolkien that refers to an Object/Record Field corresponds to the Field of the base language.



    An Enhancement Report, CR# PSC00112624, has been filed on behalf of adding this feature. Our product management team will review this report and consider implementation for a future Rollbase release.



    I will be sure to provide you with updates once any are available.



    Thanks,

    Corey Prak
  • Corey,

    Thanks for your follow up, please do keep me updated if this is updated.