How to set the document language based on the contents of a text variable?

In my Indesign documents, I use a text variable in which I type the abbreviation of the document language according ISO639-1 (e.g. EN, DE, ES, ...). I'd like to have a JavaScript that checks this text variable every time the document is opened and then sets the Language property of my Normal paragraph style, but I don't have any experience with JavaScript.
Can someone help me please?
PS: I use InDesign CS5.5.

Hi Todd,
I believe ES4 sp1 allows you to do this, but I don't have that version so aren't sure.  I follow the steps described in this blog, LiveCycle Blog: Gesperrte PDF-Eigenschaften in XFA-Formularen ändern//Edit locked PDF properties in XFA forms seems very hacky but does work (the English version comes after the German).
Regards
Bruce

Similar Messages

  • How to set one fixed folder to save rich content of rich text field in sharepoint list

    hi friends
    i have rich test filed in SharePoint list
    if user wants add picture to rich text filed from insert option it is asking to save file in existing document libraries it is showing all libraries. 
    what i need is how can we fix one particular document library to save all this file from rich text filed.

    To my best knowledge, the only basic way to input picture in SharePoint Rich Text Editor (RTE) can be finished in two steps. One, upload it to you computer and then insert it URL to RTE. This works fine if I insert few of them.
    Use SharePoint Rich Text Boost, which can let user insert images and Flash directly.
    http://www.boostsolutions.com/richtextboost.html
    If this helped you resolve your issue, please mark it Answered

  • How to findout the clearning document number based on the reference

    Hi all
    we  need to findout the clearning document number based on the reference number in financial transaction code.
    basically we know how to retrieve the data from table level using BKPF without non primary key as XBLNR but
    we  want to know is this any function module to retrieve the document number based on the reference number like XBLNR.
    Please confirm.
    Thanks
    K.Gunasekar

    you can get it from BSAD too. but again its not a primary key

  • How do I set the document language in Pages '13?

    In Pages '09 it was possible to set a document's language by going to the More tab in the Text menu of the Inspector and selecting the language from the pull-down menu.
    In Pages '13 this has disappeared from the text format More sidebar, and I cannot find any way to set the language at all. It is possible to alter the spell-checking language in the Spelling and Grammar menu (under Edit in the menu bar), but this also indicates that the document language is set somewhere centrally. See this screenshot, where I have a document that was obviously set to Br. English and I want it in Am. English:
    I have to work in multiple languages and various flavors (it's the same in German). My system language is set to English and my keyboard to Am. English.
    Any idea of what to do?
    Thanks,
    Pato

    Patito wrote:
    It is possible to alter the spell-checking language in the Spelling and Grammar menu (under Edit in the menu bar)
    That is all you can do at present with Pages 5.  Like Peter said, if you want something more, you need to go back to Pages 4.

  • Hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    <moved from Downloading, Installing, Setting Up to Creating, Editing & Exporting PDFs>

  • Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    What folder structure?
    If you're referring to how Aperture stores the originals in a managed library then the answer is you can't change it.
    If having the originals stored in a specific file structure is important to you you will need to switch to a referenced original setup.

  • Webdynpro Appl screens in different languages based on the browsers languag

    Hello Everybody,
    In Java Webdynpro, how to get the screen elements in different languages, based on the browser language selected.  It means.. for instance, we have the requirement to show the application in two languages, based on the language setting(language selected in the browser) of the users browsers.
    We have to read the  browser language selected and based on that value, we have to get the screens to come in that language. 
    Is that only through the Internationalisation process or is there any other way to do this.
    Please help us by posting your concerns....
    Thanks & Regards,
    Ravi
    Edited by: ravi shankar on Apr 28, 2009 6:36 AM

    Hi Ravi,
    Probably the following topics on SAP help could provide the solution you need:
    http://help.sap.com/saphelp_nw04s/helpdata/en/2d/e7381138a8d2458f1f4fac32614f71/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/db/f2674039c6c549e10000000a1550b0/frameset.htm

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • Are there any other languages based on the JVM?

    are there any other languages based on the java virtual machine? woud sun allow/support that? are there any projects on this from sun or other enterprises? or some openssource projects from some enthusiastic people?

    the list counts 160 languages!Ah well... looks like I was rather wrong then :-(I'm not so sure you were. When I first started with Java I expected a number of other languages to appear that would compile to Java byte code. To me it seemed an obvious way for toolmakers such as Powersoft (PowerBuilder) to get into the Java market yet still keep customers tied to their toolset but this hasn't seemed to happen.
    There may be 160 languages/tools on that page but how many are in widespread use?
    Col

  • How to configuration of pricing procedure based on the Region

    Hi,
    please help me how to configuration of pricing procedure based on the Region in the roll out project.
    Thanks
    mustafa

    What I proposed to do was,
    a. Create routes like 0 day route, 1 Day route, 2 day route etc.
    b. Route determination is based on the Shipping condition of the customer. Put in the shipping condition for the customer as 00 - immediate delivery. 01 - By Truck, 02 - By Rail, 03 - Ship etc
    c. Now, put in your route determination in such a way that routes change in the sales order with shipping condition (SC). Like, if the shipping condition is set to 00, then 0 day route comes up. Meaning immediate delivery, if SC is 01, then your normal route by truck picks up. etc.
    When the sales order is manually created, you know the time of creation. As route is one of the criteria, the material confirmation happens based on number of days you put in the route to reach the destination. Now that you have the material available for today's delivery, the delivery program can be run to create it, or it can be manually created.
    Now, when you configure the route you have to specify 'Transit duration in calendar days'.
    When you have the sales order created electronically (say thru EDI), then, you may have to ask them to send in shipping condition. Else, you have to modify the function module Idoc_input_orders in such a way that if the sales order creation time is < 12 PM, then put shipping condition as 00, else copy what ever is there in the customer.
    If you do not want to check the time manually when the user creates the sales order, then you may have to use the user exit MV45AFZZ (and I think you can use Save_order_prepare) to check the time and change the shipping condition. By this you will avoid extra coding in Idoc_input_orders and also need not bother if the user changed the route or not.
    Hope my explanation helps.
    Regards,
    Mukund S

  • How to get the pricing hierarchy based on the delivery date for sales order

    Hi,
    How to get the pricing hierarchy based on the delivery date for sales order other than system date.
    My requirement is to get the Pricing hierarchy based on the delivery date other than system date.
    Waiting for kind response.
    Best Regards,
    BDP

    HI Sai,
    please refer teh document already how to write FM based extration on generic extractors.
    and here  the logic to find the latest records values:-
    -> get the data in an internal table
    ->Sort the internal table data based from date descending
    -> Using READ statement , we can read the first record of the table which is nothign but your latest record.
    Regards.
    Sakthi

  • How to show regions markers in Google maps based on longitude and latitude. on-click of region marker i want to display all the country locations based on the region from share point list?

    Hello every one,
    In My requirement i am having  some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field.  I want to display all the region
    markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
    Thanks in advance,
    Venu.

    Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
    http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
    http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
    Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
    also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
    GeoData API with the JavaScript Bing Maps control:
    http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
    http://rbrundritt.wordpress.com

  • How to set a specific starting time for the falling snow code snippet

    Hi everyone
    I want to use the falling snow code snipet but I don't want it it to start as soon the movie starts.
    So how to set a specific time to start the falling snow?
    Thanks
    Patricia

    put the code (that's not in a function body and excluding variable declarations and import statements) in a function body and call it using the timer class.

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • How to determine the hardware requirements based on the Services' payload

    hello,Guys
    i am wondering if i can calculate the hardware requirements based on the services' payload ?
    what factors should i consider when to determine the hardware requirements?
    is there any documents related to my questions? ;)
    Thanks
    Regards
    Wen

    Payload size is not the only factor while determining size of the system (h/w). You need to consider number of services, nature of services (sync/async), payload size, frequency of messages (load), peak load value, security constraints, performance requirements etc..
    You may contact your local Oracle Sales Representative/ Oracle Support to get help in determining size of the system. They will provide you a sizing questionarre and on the basis of that they may suggest sizing as well (Oracle has an internal tool for proposing sizing)
    Regards,
    Anuj

Maybe you are looking for