How to Map the styles in indesign

I have updated certain styles in template now I need to updated those styles in source indd file.
Do we have any way to map the styles or do we can replace the styles from one indd doc to another is there possible.
Otherwise do we have any other simplest way in indesign.
I have to replace more than 30 to 40 documents.
Then it take so long time.
Is there any script to make it soon.

REMO1980 wrote:
The actual probs is I need to replace only the style naming not the style.
Example:
In indd file the style name is "Title" I need to replace this style name to Chapter Title.
Is this Possible in
scripting?
Yes its possible ....
Check below code
//rename paragraph style
var myDoc = app.activeDocument;
if (myDoc.paragraphStyles.item("Title") != null)
myDoc.paragraphStyles.item("Title").name = "Chapter Title";
But if you importing template style and your template style naming is different then your document stye. I think you can also use delete old style and replace with your new style.
//delete and replace paragraph style
if (myDoc.paragraphStyles.item("Title") != null && myDoc.paragraphStyles.item("Chapter Title") != null)
myDoc.paragraphStyles.item("Title").remove("Chapter Title");
Shonky

Similar Messages

  • How to map the elements in Indesign document with the PDF elements

    I wanted to know any way of mapping elements in the InDesign document with the elements in the exported PDF document from the same InDesign document.
    E.g If I have an Image X in InDesign document, Can I point out the same element in exported PDF using some mapping?
    Thanks in advance
    -Sandeep

    What is meant by me is, if there is a Text element in InDesign document, I should able to point out the respective PDF object.
    I am looking for some way to mark a specific InDesign element and once we export the document to PDF, I want to point out to the same element in some way so that I can process it.
    Requirement is simple, one user will mark some elements in the InDesign document and export it to PDF and send it to the other user. Other user will parse the PDF and extract the same element back or process it and use it.

  • How to Map the Unit field  in case of DSO and INFOCUBE

    Dear Experts,
    I have a issue ,Please help me to solve this
    I have DSO as provider ,
    And, i have to map transformations  btw the Datasource and DSO.
    In generic Data source,  i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
    and normal Quantity fields  like KWMNG,OAUME(quantity related),OAUWE (value related).
    In DSO data fields as Key figure info objects like  0Quantity (which have 0Unit as unit of measure) and some other  key figures which have there respective unit of measure in info object  definition.
    So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
    (How it will be for both DSO and Info cube is there any difference?)
    Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PM

    Navasamol ,
    If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
    what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
    And i have  seen the Quantity fields  and there respective unit fields are mapped directly  to key figure info object
    in case of Info cube . Its working fine .
    If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
    why this difference btw DSO and Info cube can any one explain me in detail.
    Expecting your valuable suggestions.
    Thanks & Regards,
    Anjunath Naidu
    Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM

  • How to insert the style in sap-script? and in smart form?

    how to insert the style in sap-script? and in smart form?

    Hi..,
    For SAP scripts u need to create them in SE72 ...
    and u can include them in the script editor as..
    /: STYLE <STYLE-NAME>
    P1 text...............  (*** P1 is the Paragraph format created in SE72 )
    /: STYLE *
    For smartforms u need to go for the transaction (tcode) SMARTSTYLES... here u can create paragraph and character formats globally...
    <b>Sunil, plz do remember to close all your threads, when ur problem is solved !!</b>
    reward all helpful answers,
    sai ramesh

  • How to place the images in Indesign xml file by Javascript?

    How to place the images in Indesign xml file by Javascript?
    We got the Indesign xml file, how to give the image placement link by Indesign javascript? Please help me its urgent.

    Hi,
    You can pass the image url as a href attribute=> file:///Users/me/Documents/my_pic.jpg directly within your xml. It just needs that you pass a local, static and valid url.
    If you want to add image later once the xml is flowed and so target specific nodes and inject images, it's a bit more complex. If the node is not part of the layout, you may try to reach the XMLElement objet and such an attribute, then layout the element.
    var x = some XMLElement
    x.xmlAttributes.add("href","file:///Users/m/Documents/my_pic.jpg" );
    If already placed, then you have to get the associated pageItem, then place your file into it.
    pagItm.place ( File ( "/Users/m/Documents/my_pic.jpg" ) );
    Hope that helps,
    Loic
    http://www.loicaigon.com

  • How to Map the parameters in GP interface?

    Hello All ,
    I have 2 callable objects in two different actions for same Block. How to map the first callable object output to input of second callable object ??
    Please give the clear details.
    Thanks
    Risha

    Hello,
    Goto the Block -> Parameters tab....select the 2 parameters ...click on Group button .....give a name to it and click 'Create Group' button.....
    Regards,
    Shikhil

  • How to map the user to Responsible Person for Proj/ Capital Investment Prog

    Hi All,
    Could you please help me in mapping the user to Responsible Person for Proj/ Capital Investment Prog.
    Here is the scenario. I am trying to restrict the user to access only WBS under a cost center but not to have complete access to the Cost Center. I in my way to do, I found out that we can create a user name using OPS6 tcode and use the reference number of the user we created in CJ20N, so as only the person who was added in the Responsible Person for Proj/ Capital Investment Prog list will be able to access particular WBS.
    Now my question is, How to map the user which I created using OPS6 tcode to user in user master record. I am not able to map the user, as its taking any random name to add in the list. Could some one please help me in mapping the user created in the list with the user master record.
    Hope I managed to put the question clearly. If you have any queries, please feel free to ask. Appreciate your time and thanks in advance.
    Farooq.

    Hi Stephan,
    Thanks for your time and finding SAP note for me. I got the problem fixed. The solution for the above problem is, When we create a responsible person for the project through OPS6 tcode, we have a column called "Offer User", next to the person responsible. We must add the user name next to it. And we can add only the user name which is present in the user master record.
    It solved my problem, but when I pressed F1 for help in this column, there is nothing mentioned about its mapping or anything.
    Thanks again for the help, Cheers,
    Regards,
    Farooq.

  • How  to map the Third Party materila for Job Wok process in our Plant

    Dear All,
    please guide me how  to map the  Third Party  Subcontracting in Our Plant Means Customer materials to be Processed  in our Plant and  then we have to sent to customer after processing.
    please  Brief me  with the Proces sflow
    Reagrds
    kishore Edagali

    1) create a 2 material as non valuated (one incoming material "A1"& after processed material"B1")
    2) create a BOM. for A1
    & assign the B1 and maintain respective conversion
    3) create a routing for A1 and assign the relevant work center
    4) create a manual PO to receive the material from customer and store it in storage location
    5) create a production order and release the order  in co01
    6)issue the material :B1 to the order 9 in MB1a, 261 movement)
    7) and confirm the order (so that cost incurred for order is captured)
    8) create a  sale order and maintain service price in PR00 and send the material A1 to customer.

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • How i map the caf data with data of UWL in web dynpro

    Hi Experts,
    i created a bpm project with nwce 7.1.1 and it have a independent caf to keep it's data and status.
    now i have to create a view(use web dynpro) such like UWL,
    my question is
    how i map the caf data with UWL, and let the view can open the task(popup a window, just like UWL do) for user to finish their job?
    thanks.

    Hi Vic
    Your requirement is exect functionality of UWL based on WEBDYNPRO, CAF and BPM for automation? ,and question is How to use CAF with WD or CAF with UWL API's ?. please clarify it.
    Please fo through from given doc misght give u some idea
    1. [How to develop Web Dynpro UI for your CAF project |http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID0722080650DB02400261803144436507End?blog=/pub/wlg/5414]
    Best Regards
    Satish Kumar

  • How to map the node which i have created dynamically into the view

    Hi All,
    Many thanks to all ur answers in advance.
    I have created a node dynamically.I want to display the fields which i have fetched in that node.
    i dont know how to map the node which i have created dynamically into the layout of the view.
    Other than Using ALV is there any other way to do.
    for example usin table control

    Hi,
    use the reference variable of view to access the corresponding UI element and then use the method of that UI element to do data binding with context node.
    for ex:
    Context node = flights
    element = inputfield, ID = inp_name
    data view type ref to if_wd_view.
    data lr_inp type ref to cl_wd_input_field.
    lr_inp ?= view->get_child_element( ' INP_NAME' ).
    use following methods of input field to define the data binding.
    SET__DDIC_BINDING( )
    BOUND__PROPERTY( ).
    BOUND__PRIMARY_PROPERTY( ). " for input field it is value property.
    Get the reference of view from wddomodifyview method as importing parameter(view). Store this parameter as controller attribute.
    Thanks,
    Rahul

  • How to map para style by script

    Hi
    My indesign file has already some Group style, when I try to flow the XML file in Indesign that time same style of paragraph are not mapped with automatically. FYI
    Here 'TXT' style is already defined in 'Chapters' Group style (see Part A). After flowing again 'TXT' (see Part B) is coming in without mapping.
    Now I want to map the 'Part B' style with 'Part A' is this possible by script?

    Hi
    I have used this code but its showing errors
    _mappingStyle("TXT", "Chapters", "Chapter_Title") 
    _mappingStyle("TXT", "Chapter_Title") 
    function _mappingStyle(findStyle, changeGroup, changeStyle) 
        app.findGrepPreferences = app.changeGrepPreferences = null;   
        app.findGrepPreferences.appliedParagraphStyle = findStyle;   
        app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item(changeGroup).paragraphStyles.item(changeStyl e);    
        app.activeDocument.changeGrep();     
        app.findGrepPreferences = app.changeGrepPreferences = null;   
    by hasvi

  • How to map the appointment date in CRMXIF_ORDER_SAVE_M02-4x ?

    Hi Team,
    I want to map the field in CRMXIF_ORDER_SAVE_M02-4X, how to map..please help ..where we need to do ..could you please tell me the steps.
    CustomerAppointmentDate  
    CRMXIF__ORDER__SAVE__M02-4x/ E101CRMXIF__BUSTRANS/ E101CRMXIF__APPOINTMENT__XT/E101CRMXIF__APPOINTMENT/ TIMESTAMP__FROM
    Thanks
    Kalpana  

    Hi Kalpana,
    Below is a sample code. Modify this as per your input.
    * Header details
      CLEAR itab_edidc40. 
    MOVE sy-mandt TO itab_edidc40-mandt .
    MOVE sy-saprl TO itab_edidc40-docrel. 
    itab_edidc40-docnum = '0000000000000001'.
    itab_edidc40-direct = '2' . 
    CONCATENATE 'SAP' sy-sysid INTO itab_edidc40-rcvpor. 
    itab_edidc40-rcvprt = 'LS'. 
    itab_edidc40-rcvprn = t000-logsys. 
    CONCATENATE 'SAP' sy-sysid INTO itab_edidc40-sndpor. 
    itab_edidc40-sndprt = 'LS'. 
    itab_edidc40-sndprn = t000-logsys. 
    itab_edidc40-mestyp = 'CRMXIF_ORDER_SAVE_M' . 
    itab_edidc40-idoctyp = 'CRMXIF_ORDER_SAVE_U02' . 
    itab_edidc40-arckey = ' '.
    itab_edidc40serial = l_serial . 
    APPEND itab_edidc40  .  CLEAR itab_edidc40  .
      CLEAR: itab_edidd40 ,e101crmxif_bustrans. 
    itab_edidd40-segnam = 'E101CRMXIF_BUSTRANS'. 
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_bustrans-object_task = ’I’.
    e101crmxif_bustrans-object_type = eg: 'BUS2000117'.
    e101crmxif_bustrans-process_type = process type of your transaction.
    e101crmxif_bustrans-description = ’Test’.
    MOVE e101crmxif_bustrans TO itab_edidd40sdata . 
    APPEND itab_edidd40  .  CLEAR itab_edidd40  .
    itab_edidd40-segnam = 'E101CRMXIF_APPOINTMENT_XT'.
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_partner_xtdatax =  'X' . 
    MOVE  e101crmxif_partner_xt TO itab_edidd40-sdata . 
    APPEND itab_edidd40  . 
    CLEAR: itab_edidd40,e101crmxif_bustrans  .
    *** Pass the Value   
    itab_edidd40-segnam = 'E101CRMXIF_APPOINTMENT'.   
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_appointmenttimestamp_from = ‘01/03/2015’.   
    MOVE e101crmxif_appointment TO itab_edidd40sdata .   
    APPEND itab_edidd40  .    CLEAR itab_edidd40  .
    * Create IDoc
    CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'   
    TABLES    
    idoc_control_rec_40 = itab_edidc40     
    idoc_data_rec_40    = itab_edidd40.
    SELECT  * FROM edidc   WHERE serial = l_serial .  
    l_range-low = edidc-docnum.    l_range-sign = 'I'.    l_range-option = 'EQ'.    APPEND l_range.  ENDSELECT .
    * report program to create transaction 
    SUBMIT rbdapp01 WITH docnum IN l_range                WITH p_output = ' '  AND RETURN.  COMMIT WORK.
    WAIT UP TO 2 SECONDS. 
    SELECT  status countr statyp stapa4     INTO (l_status, l_countr, l_statyp,l_stapa4)    UP TO 1 ROWS     FROM  edids     WHERE docnum = edidc-docnum      ORDER BY countr DESCENDING . 
    ENDSELECT. 
    SELECT SINGLE object_id guid INTO (lv_object_id , lv_object_guid)     FROM crmd_orderadm_h     WHERE guid = l_stapa4+0(32).
    IF lv_object_id IS NOT INITIAL.  
    object_id = lv_object_id.
    ENDIF. 
    COMMIT WORK.
    You can test it using WE02 or WE05 transaction.
    Give Points if useful.
    Regards,
    Abi

  • How to map the permits Scenarios

    Dear Experts,
    Good Morning  to Every to Body.
    I am confusing to map the permits scenario . In my client place they raise the Work permit request to the Safety Officer for getting the approval for doing their work.
    Based on working condition safety officer checks the safety precautions , after verification he approved it and handover to the workperson. if safety officer not satisfied with safety precaustions he deny to give the approving for start the work. this is one scenario. and this work permit valid only for that approved day only. if its not complete that day , next day again workpermit was raised by work person or incharge of the work.
    2. scenario : for any corrective action on running machine or predictive maintenance time , maintenance people gets the work approval from the Relevant department or Concerned persons. Ones relevant department head gives approved , then only maintenance people will start the work.
    i am requesting you please guide me how to map in sap with out complexity. i am waiting for you people response.
    please suggest me.
    thanks & regards
    Jalu

    Hi,
    There are 2 different type of permits.
    1. Safety Permit
    2. Work Permit
    Safety permit will be approved by Safety officer. This is your first scenario. Work permit is approved by Maintenance officer, that is your second scenario.
      IWO10007 Maint.order: Customer enhancement - permits in the order
    As permits are approved in IW32, through above mentioned User Exit, you can develop some logic to restrict the authorisation between Safety officer in case of safety permits & Maintenance Manager in case of work permits.
    Regards,
    Maheswaran.

  • How to map the font folder with particular instance?

    Hello All,
    I need a quick clarification on one of the requirement in InDesign Server that whether we can map the fonts folder for particular instance say if there are 5 multiple instances, can we map these 5 instances into 5 different font folders? Please advise.
    Thanks,
    Praveen

    Sounds like you need http://helpx.adobe.com/indesign/using/using-fonts.html#document_installed_fonts
    Dirk

Maybe you are looking for