Override masterpage items

What is the correct syntax to override masterpage items in indesign?
I found the parameter to do so : unlink, but can not find the correct syntax.
This is what I came up with so far, but it doesn't override the masterpage items.
tell application "Adobe InDesign CS3"
set the user interaction level of script preferences to never interact
tell document 1
unlink items of masterpages
end tell
end tell

Hello
I don't have CS3 and I only guess here.
If I understand what you're after correctly, you might try something like this (for one page, e.g., page 1):
tell application "Adobe InDesign CS3"
tell document 1
set applied master of page 1 to nothing
end tell
end tell
Or this (for every page):
tell application "Adobe InDesign CS3"
tell document 1
repeat with i from 1 to (count pages)
set applied master of page i to nothing
end repeat
end tell
end tell
cf.
http://www.adobe.com/products/indesign/scripting/index.html
InDesignCS3ScriptingGuideAS.pdf
pp.25-27
Documents > Basic Page Layout > Setting up Master Spreads
Good luck,
H

Similar Messages

  • How to prevent RSS Viewer web part from overriding list-item CSS style?

    I am using SharePoint Online. I have a web part page with a number of web parts with links. Font size of the links is ~12px.
    If I add an RSS Viewer web part to the page, then it overrides the 'list-item' class CSS Style to something like 8px, which is unreadable.
    To correct this I have tried the following:
    1. Added the following code to a Script Editor Web Part on same page:
    <style type="text/css">
    .item link-item
    font-size:20px !important;
    .link-item
    font-size:20px !important;
    </style>
    2. Completely deleted all XSL from the RSS Viewer web part and replaced it with very simple formatting code which format the links within the RSS web part to 16px - but still the other links are set to 8px.
    3. Linked a custom style sheet to the relevant master page and set the link-item classes in there, ensuring that it is executed after the standard SharePoint css.
    ...but nothing works!
    It appears that, as soon as the RSS Viewer web part is added to the page it overrides the list-item style and then will not release it even if all the XSL within the web part is deleted!
    On deleting the RSS Viewer from the page and saving it, the links font size returns to normal.
    Does anyone have a fix/work around for this?
    Thanks in advance,
    Jimmy

    Hi Jimmy,
    I recommend to use “.link-item a” instead as the code below to change the font size of the links:
    <style>
    .link-item a
    font-size:20px !important;
    </style>
    And I tested the code above in my environment and it worked fine.
    Best regards,
    Thanks
    Victoria Xia
    TechNet Community Support

  • Specify/override whether item is taxable by warehouse or taxing jurisdictio

    We have warehouses in multiple states and taxing jurisdictions.  An item may be taxable in one state and not in another.  Currently all the items are flagged as taxable.  Is there a way within SAP B1 to specify/override the taxability of an item either by warehouse or tax code?
    TJA-ECS
    Edited by: Paul Finneran on Mar 11, 2009 10:24 AM

    Hii Thomas
              In sap b1 2007b as upto my knowledge there is no way you can assign Taxability of an item through warehouse
             But i suggest you have a non excisable warehouse where you dont have Tax Jurisdictions, and make the item non excisable in marketing documents and use the non excisable warehouse
    further refer this thread
    https://forums.sdn.sap.com/click.jspa?searchID=23368766&messageID=6885439
                                                                   Good Luck
                                                                                    RIYAZ

  • Make masterpage items in indesign....

    How can I get my automatic design on the master page?
    set Vbreedte to (text returned of (display dialog "width?" default answer "")) as string
    set Vhoogte to (text returned of (display dialog "Height?" default answer "")) as string
    set Vbleed to (text returned of (display dialog "bleed? document?" default answer "3")) as string
    tell application "Adobe InDesign CS4"
    set the user interaction level of script preferences to never interact
    tell view preferences
    set horizontal measurement units to millimeters
    set vertical measurement units to millimeters
    end tell
    --make new document
    set myDocument to make document with properties {document preferences:{page width:Vbreedte, page height:Vhoogte}}
    tell myDocument
    -- document preferences adjusted
    tell document preferences to set facing pages to false
    set zero point to {0, 0}
    set properties of guide preferences to {guides shown:false}
    tell layout window 1
    zoom given fit page
    end tell
    set ruler origin of view preferences to page origin
    --make spot-color
    set myColor to make color with properties {name:"spot", color value:{100, 0, 100, 0}, model:spot}
    --maak background layer + ill-box
    set myLayer1 to make layer with properties {name:"background"}
    set myFrame1 to make rectangle
    set geometric bounds of myFrame1 to {"-6", "-6", Vhoogte + 6, Vbreedte + 6}
    set stroke weight of myFrame1 to 0
    set fill color of myFrame1 to "None"
    set stroke color of myFrame1 to "None"
    tell application "Adobe InDesign CS4" to activate
    end tell

    Budgie, Thanks for the sugestion. I've tried it like it was discribed but no result.
    The tutorial refers to Masterspreads, but I do not work with Spreads but with pages. I can not find the exact syntax to refer or go to the masterpage.
    --my script--
    set Vbreedte to (text returned of (display dialog "width?" default answer "")) as string
    set Vhoogte to (text returned of (display dialog "Height?" default answer "")) as string
    --set Vbleed to (text returned of (display dialog "bleed document?" default answer "3")) as string
    tell application "Adobe InDesign CS4"
    set the user interaction level of script preferences to never interact
    --make new document
    set myDocument to make document with properties {document preferences:{page width:Vbreedte, page height:Vhoogte}}
    tell view preferences
    set horizontal measurement units to millimeters
    set vertical measurement units to millimeters
    tell myDocument
    --Get a reference to the first master spread.
    set myMasterSpread to master spread 1 of myDocument
    --Get a reference to the margin preferences of the first page in the master spread.
    tell margin preferences of page 1 of myMasterSpread
    end tell
    end tell
    tell myDocument
    -- document preferences adjusted
    tell document preferences to set facing pages to false
    set zero point to {0, 0}
    set properties of guide preferences to {guides shown:false}
    tell layout window 1
    zoom given fit page
    end tell
    set ruler origin of view preferences to page origin
    --make spot-color
    set myColor to make color with properties {name:"spot", color value:{100, 0, 100, 0}, model:spot}
    --make background layer + ill-box
    set myLayer1 to make layer with properties {name:"background"}
    set myFrame1 to make rectangle
    set geometric bounds of myFrame1 to {"-6", "-6", Vhoogte + 6, Vbreedte + 6}
    set stroke weight of myFrame1 to 0
    set fill color of myFrame1 to "None"
    set stroke color of myFrame1 to "None"
    tell application "Adobe InDesign CS4" to activate
    end tell
    end tell
    end tell
    --end script--

  • Bind variables not available when overriding criteria item clause

    Hello -
    Using jdev 11.1.1.3.0. Using ADFBC.
    In a view object I am overriding getCriteriaItemClause in order to produce a clause for a view criteria of the form
    my_column in ( select a_column from a_table where a_field = :MyBindVariable )I have created the bind variable ("MyBindVariable") for my view object and checked the "Include bind variable accessors" box in the Java options panel for the view object. When I use the view object I call the setMyBindVariable method with a value before I call the execute method. However, when
    I call the execute method it gives a JBO-27122 error.
    oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation.  Statement: << query here, with the appropriate where clause that refers to the bind variable >>
    ----- Level 1: Detail 0 -----
    (java.sql.SQLException) Missing IN or OUT parameter at index:: 1I have tested this code by running the application module tester. With it I am:
    1. Right-clicking on my view object and selecting "Operations"
    2. Choosing the setMyBindVariable operation, providing a parameter value, and hitting the "Execute" button.
    3. Choosing the getMyBindVariable operation, hitting the "Execute" button and verifying that I get the right value back.
    4. Right-clicking on my view object and selecting "Re-execute query". I get the JBO-27122 error as described above.
    2nd approach (this also didn't work): I have additionally tried creating the clause above using the bind variable value instead of the reference. In getCriteriaItemClause, I would call getMyBindVariable to get the bind variable value and construct the above clause this way:
    my_column in ( select a_column from a_table where a_field = literal_value_stored_in_view_object_bind_variable )However, when I tried this approach, getMyBindVariable always returned null.
    Is there some reason why the bind variable isn't "available" when executing the query even though I specifically set it?
    Thank you for reading my question.

    Have you seen this blog http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html ?
    And my extension to it http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4 ?
    Timo

  • Override Master Item Attributes- object detaching from master after arrangement change

    I'm working on a large catalog and facing a problem when I try to update my master. Any object on my page that I altered the arrangement of (send to back, bring to front, etc..), is no longer linked to the master.
    Any ideas for a fix/work around? We're dealing with a thousand page catalog, so efficiency is critical.

    > Any object on my page that I altered the arrangement of (send to back, bring to front, etc..), is no longer linked to the master.
    It actually depends on what you did to the object on the document page.
    If all you did was override and send to front/back, then the object is actually still linked to the master page and will respond to change of fill/stroke and position.
    But if you did loads of other things, then the object loses each relationship to the master object.
    Regarding "fixing" your situation, I can't help you if I don't know what you want to do on the document pages.

  • Can't override item on opposite page

    I have a master template which is a double page template.
    I can override items on the left page just fine, but when I try to do it on the right side page, it keeps overriding the items that are on the background instead, and brings them to the front. I just want to override an image on top of the background image. Is this possible?

    JoeyJoeC wrote:
    I have an entire master template, complete with some background shapes, and text. The background shapes are right at the bottom of the layers.
    When I drag down the master template to create a new set of pages, I can use SHIFT + CTRL and click on the textboxes on the left to override them. This works fine.
    If I want to override the textboxes on the right hand side, it overrides those background layers instead. This happens to anything I try to override on the right hand side.
    Work around would be to override everything, but this beats the point of being able to go back and make changes later.
    Sorry, I go your thread through to get your points, point by point, don’t feel offended, I want to guide you what is going wrong here.
    Don't use the master page for such a purpose. If you need to place items exactly on the very same place on different pages, create a library and put repeating elements there. In a InDesign Library (INDL file) you can add anything and when you place items via the panel menu (Place Object(s)) they are exactly positioned on the very same place as the original.
    In your example you have even filled the master page with text and images. Don’t do that. Keep the master as empty as possible. But make following changes:
    You don’t use Paragraph, Character or Object Styles. Use them strictly, they will help you. No text without a paragraph style!
    Use text variable on the master based on Paragraph or Character styles and/or sections, this will help to avoid to override place holder like you have for the Hotel name.
    Don't place text frames into the ”air”, use page margines and column guides. This is very important. When you use Paragraph styles with correct keep options for the headlines you can link all text frames together to get a single story.
    Use more layers like Background—Images—Graphics—Text—Page Number—Page Title in that order, images below text, layers don’t cost anything and are very helpful, this is the main problem here.
    You should work with color management, you have turned off your color management, this is driving like a ghost rider. This will cause a lot of problems in the production. Turning off color management does not mean that you work without color management, it means only that you are out of control of the color management. InDesign will use default values given by the Operating System and InDesign. But when you produce a printing or web publication you have to decide according to the printers requirement what color settings you are using.
    I would say, according to your link you have given, you should reconsider to start from the scratch.

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • Open Add Item Form as Dialog

    Hi All - I have a custom button on the click of which I am trying to open a Add Item form. When the display form opens I want to hide all the masterpage items( viz. Quick Launch, header, foooter, etc). I tried below but it's not opening and giving error
    when the masterpage is Oslo. It works fine when masterpage is Seattle. 
    <asp:LinkButton OnClientClick ="javascript:SP.UI.ModalDialog.showModalDialog({ url: '../Lists/AddAccount/NewForm.aspx', title: 'Add Account' }); return false;" CausesValidation="false"   CssClass="orange-btn" Text="Post"
    runat="server" ID="btnPost"></asp:LinkButton>
    Does anything know why is it happening?
    Regards,
    Khushi
    Khushi

    You need to set the URL of SharePoint link button like this
    http://<Site Name>/Lists/AddAccount/NewForm.aspx?isDlg=1
    to open that in modal dialog use below jScript.
    <script type="text/javascript">
    function openDialog(listUrl, frmTitle) {
    var options = {
    url: listUrl,
    title: frmTitle,
    allowMaximize: false,
    height: 500,
    width: 600,
    showClose: true
    //SP.UI.ModalDialog.showModalDialog(options);
    SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
    </script>
    And your anchor tag should be like
    <asp:LinkButton OnClientClick ="javascript:openDialog('/Lists/<List Name>/NewForm.aspx?IsDlg=1', 'Add Account')" CausesValidation="false" CssClass="orange-btn" Text="Post" runat="server" ID="btnPost"></asp:LinkButton>
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Visual attribute for current item

    How can i set the visual attribute of the current item in multi block form so that when user navigate through item in a form its background colour is changed and user can easily trace where the cursor is ?

    1- I have three list box on the form as well so whether post-text-item works over therei have no issues with this and it is working fine in my forms list box
    2- and i have 3 datablock among which 2nd and thid datablock is multirecord datablock where i set current record visual attribute so what is the behaviour @ run time either current record Visual attribute override current item VA or it works fine
    it is working perfectly in multi record also..you need to remember in post text trigger use the same visual attribute used for current record visual attribute

  • ISA-Ecommerce : Passing extension data at item level to CRM backend?

    Hi Experts,
    I want to pass the extension filed data which is present at item level to the CRM back end system. In DEMO1 example provided, they have demonstrated about header data to pass.
    HeaderData headerdata = isaBOM.getBasket().getHeaderData();(header data BOM instance)
    ItemListData itemsdata = isaBOM.getBasket().getItemListData();(Item data BOM instance)
    String extHDshipmethods = (String)p_request.getParameter("zhext_shippmethods");(request from http for header data)
    String extIDshipmethods = (String)p_request.getParameter("ziext_shippmethods");(request from http for item data)
    headerdata.addExtensionData("ZHEXTENSIONSHIPMETHODS", extHDshipmethods);(adding extension to header data)
    itemsdata.add("ZIEXTENSIONSHIPMETHODS", extIDshipmethods);(adding extensoin to item data but gettin error)
    In the above last line i am getting an error saying that add(itemlistdata) cannot be used as a string. Generally for header data, in the extension guide it is mentioned that we use "headerdata.addExtensionData("",)" but for items data what should be used??
    Thanks a lot in Advance!
    regards,
    lakshman.
    Edited by: lakshman reddy G on Jan 21, 2009 2:24 PM

    Hello LRG,
    In the Java and JSP layer
    In the ZMaintainDispatcher, override the Item level method
    public void customerExitParseRequestItem
    This method is called for each item to parse
    the custom variables. Hint: Since the items are processed in a loop in the JSP, it is
    customary to name the page level variables suffixed with the Item index like myData1[itmIndx]
    public void customerExitParseRequestItem(
       RequestParser parser,
       UserSessionData userSessionData,
       ItemSalesDoc itemSalesDoc,
       int itmIndx  {
       String zItemExtData1 = "";
    // Item level data1[itmIndx] - value is set for item itmIndx
    // see the method parameters
       zItemExtData1 = parser.getParameter("zItemExtData1" +
    itemIdx).getValue().getString();                    
       itemSalesDoc.addExtensionData("zItemExtData1", zItemExtData1 );                    
    This will parse and add item level extensions to the items object.
    In the ABAP layer
    Implement CRM_ISA_BASKET_ITEMS and code in the methods  changeitems_set_data and getitems_get_data
    In the request cycle, you will read the value from the extension table and persist that in the
    transaction - say in a EEWB field. In the method changeitems_set_data
          READ TABLE lt_extension INTO ls_extension WITH KEY
                   name = 'zItemExtData1'.
          IF sy-subrc EQ 0 AND NOT ls_extension-value IS INITIAL.
            ZEEWBDATA1 = ls_extension-value.
          ENDIF.
    In the response cycle, code the getitems_get_data
    *     Populate Extension data Data1 - Assuming that you read it from EEWB field ZEEWBDATA1
          CLEAR ls_extension.
          ls_extension-ref_guid = ls_guid.
          ls_extension-name     = 'zItemExtData1'.
          ls_extension-value    = lv_leewbdata1.
          APPEND ls_extension TO ct_extension.
    In principle, the idea is same as what is shown in the extension guide for the header.
    Please note: Depending upon several user interaction requirements, you may have to
    use different methods in the Item BAdI as well as other methods in the MaintainDispatcher class.
    Easwar Ram
    http://www.parxlns.com

  • Reg: visual attribute for list item

    hi frs,
    i have created a listitem i have used
    APP_ITEM_PROPERTY2.SET_PROPERTY('list4',VISUAL_ATTRIBUTE, 'color');
    in keylistval Trigger.
    when i select one particular item in the list it should have background color mentioned in the VISUAL_ATTRIBUTE 'color'.
    but what is happening is when i select one particular item visual attribute is set to all items in list.
    why it is so?
    how can i solve this problem.
    any one help pls.
    Thanks
    Rajesh

    1- I have three list box on the form as well so whether post-text-item works over therei have no issues with this and it is working fine in my forms list box
    2- and i have 3 datablock among which 2nd and thid datablock is multirecord datablock where i set current record visual attribute so what is the behaviour @ run time either current record Visual attribute override current item VA or it works fine
    it is working perfectly in multi record also..you need to remember in post text trigger use the same visual attribute used for current record visual attribute

  • Read all items when when item-level permissions set

    I have a SharePoint 2010 list where the general user population should be able to submit and read only their own items.
    Item-level permissions set as follows:
    Read access : Read items that were created by the user
    Creaed and Edit access : Create items and edit items that were created by the user
    That works fine.
    Now, I have a small group of power users that need read-access to all list items. I can do that by granting 'Contribute' permissions, but I don't want them to be able to modify items, so I prefer granting only read permissions. When I do that, they can't
    see all the items due to the item-level permission settings.
    Is there a permission level that I can use (perhaps a custom permission level) that enables a read-all (and overrides the item-level permission)?

    With these specific settings, there are not. It is possible to do security through obscurity by only showing views that allow the users to see their items and use audience targeting for the others, but that is not true security, so it will depend on your
    requirements.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How do I remove items from duplicates (child pages) of Master Page?

    I am trying to remove an element from a copy of a master page. Basically, I inserted 18 pages into our document, and only on the first of those pages can I go into the layers, select the rectangle (shown in the photo as the smaller square or inset on the larger square) and delete it. However, when I try to do that to the others, it's not selectable and it doesn't show up in the layers. The photo shows what I am trying to remove.
    Note: I do not want to change the master page — I just want to take this one item off of the duplicate pages I have created.
    The tutorials I found on Adobe aren't really helpful bc I am so new to this program and don't know where to find the things they tell me to use. My version is CS6.

    Override this item, use the selection tool and hold down cmd/ctrl + shift key when selecting this object.

Maybe you are looking for