Link item style using personalization

We have a requirement using personalization
I want to create a link item style using personalization.
but when i go to personalize page and click on create child icon i can create only some of the widgets.
Is there any way to create a link bean using personalization?
Can anybody throw some points on this?

I remember we removed it for some technical issues(earlier I think it was exposing the fireAction property) and added it back in RUP4 without those properties.
You have two good solutions to this in CU2 if you are not going to move to the latest.
1. Use a button instead which has a target frame property which will launch you page in a new window.
2. Use jdeveloper create a stackLayout and add a link inside that and set the properties required. Deploy that region in MDS, now use personalization to add a stacklayout(good thing for you is this feature of adding regions was introduced in CU2) and set the extends property pointing to the region you deployed and live happily ever after :).
We have a nice release notes which tells about features added, features removed. You should be utilising that to understand the restrictions on a particular release and the new features too, it's very short and sweet and you can go back to personalization or dev guide to know more about the feature.
Message was edited by:
Ramkumar Sekar

Similar Messages

  • Link Item Style to open a PDF hangs if opened in IE in 30 seconds

    Hi,
    I am using Jdeveloper version 9.0.3.
    I have a page in which, I have an advanced table, in which there is a column, with item style - link.
    On the link item there is a PPR event and it should open a PDF file, residing on the server.
    I am using java code to open the PDF file.
    In Internet Explorer, the link doesnt work, infact the Explorer hangs and the user has to exit the window.
    This doesnt happen in Firefox. However, this is critical as , use of firefox is not allowed, and the users have to ultimately use IE.
    Below is the java code for opening the PDF file from the server:
    public void downloadFileFromServer(OAPageContext pageContext, String file_name_with_path, String file_name_with_ext)
    HttpServletResponse response = (HttpServletResponse) pageContext.getRenderingContext().getServletResponse();
    if (file_name_with_path == null || "".equals(file_name_with_path)){
    throw new OAException("File path is invalid.");
    File fileToDownload = null;
    try{
    fileToDownload = new File(file_name_with_path);
    }catch (Exception e){
    throw new OAException("Invalid File Path or file does not exist.");
    if (!fileToDownload.exists()){
    throw new OAException("File does not exist.");
    if (!fileToDownload.canRead()){
    throw new OAException("Not Able to read the file.");
    String fileType = getMimeType(file_name_with_ext);
    response.setContentType(fileType);
    response.setContentLength((int)fileToDownload.length());
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file_name_with_ext + "\"");
    InputStream in = null;
    ServletOutputStream outs = null;
    try{
    outs = response.getOutputStream();
    in = new BufferedInputStream(new FileInputStream(fileToDownload));
    int ch;
    while ((ch = in.read()) != -1){
    outs.write(ch);
    }catch (IOException e){
    e.printStackTrace();
    }finally{
    try{
    outs.flush();
    outs.close();
    if (in != null){
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    }//end catch
    }//end finally
    }//end method
    public String getMimeType(String s)
    int i = s.lastIndexOf(".");
    if (i > 0 && i < s.length() - 1){
    String s1 = s.substring(i + 1);
    if (s1.equalsIgnoreCase("pdf")){
    return "application/pdf";
    }//end if
    }//end if
    return "application/octet-stream";
    }//end method
    Thanks,
    AJ

    Hi Kristofer,
    We did look at the possibility for using messageDownload bean instead of a link, but we do not want to store the file as a LOB.
    The file needs to be stored in the server location.
    Any clue as to why the file opened in the browser ( on clicking on the link) hangs and this is happening only in IE.
    Thanks,
    AJ

  • Prevent values being passed using Link Item on Web Application Designer

    Hello all,
    I have a question regarding 7.0 Web Application Designer. I am using the web item Link Item and using the command OPEN_TEMPLATE_DIALOG to open a new WAD Template BUT I do not want to pass the values from the original WAD template to the new one. Is there a way to restrict passing any values to the new template? Am I using the correct command OPEN_TEMPLATE_DIALOG?
    To better describe what is happening, my characteristics and key figures are being passed from my original WAD template to my new WAD template when using the OPEN_TEMPLATE_DIALOG. I do not the values to be passed, only to open up the new WAD Template with its own reports.
    Thank you.

    Sorry maybe I mistated the problem. I do not have an issue with the variable screen when transitioning to the second WAD template screen, I have a problem due to the values from the first WAD template being passed to the second WAD template.
    My first WAD template using the Link Item is only for the ability to click on the text to open up a second WAD template which I do not want the values to be passed from the First template.
    I hope this clears up the confusion.
    Thanks

  • Using VO Attribute in destination URI of Item Style LINK in OAF Personalization

    Extended the VO in iReceivables to have a Transaction link (external URL) as additional view attribute 'InvoiceUri' (i.e. each TRX will have a unique URL from 3rd party)
    Now trying to add a LINK type Item in the same and proving the VO Attribute as Destination URI, tried all the below possibilities:
    javascript:void window.open('decodeURIComponent({@InvoiceUrl})')
    javascript:void window.open('{@InvoiceUrl}')
    {@InvoiceUrl}
    When I click the link item created/added using personalization is, its opening the URL like this:
    http://*******.com:34604/OA_HTML/https%3A%2F%2Fxxxx.net%2FXDSServer%2FInvoice_51214777_20141201.pdf
    First issue is its prefixing the Oracle Apps server url (i.e. http://*******.com:34604/OA_HTML/) to the invoice url while opening the new IE window
    Other issue is URL being encoded i.e. removing all the special characters and replacing them with %3A, %2F etc.,
    Is there a way to make it work, with out extending the page controller. This is for Oracle R12.1.3, tried with IE 7, 11 and Mozilla
    Thanks in advance

    Hi,
    In destination URI, you can add parameters at the end of URI as shown below:
    OA.jsp?page=/xx/oracle/apps/<app_name>/webui/XxPageNamePG&Action=DETAILS&HdrId={@HeaderId}
    Here, there are 2 parameters added (followed by '&'):
    Action - event name
    HdrId - parameter name you want to pass.
    {@HeaderId} - value of parameter (VO attribute name)
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What Item Style i must use to get my list of value

    hello forum,
    initially i have selected Item Style as "messageChoice" in the Property Inspector and the VO had only 83 rows so the complete list was appearing.
    After i changed my query in the VO to allow some more data to appear (i.e. 345 rows) the Item Style as "messageChoice" that i am using does not show all the rows. It is instead showing few data and at the end of the list it reads as follows:
    <Max rows exceeded>: END_OF_DATA
    could any out there please tell me how i can get all values displayed in my parameter?
    Do i need to change the Item Style from "messageChoice" to something that can allow the complete list?
    appreciate if some one can advise/help!
    Brgrds,
    Jenny

    Hi Jenny ,
    Well , since you are working with standard page , you need to extend the controller class which is associated to the page .
    First you need to hide the existing the Message Choice bean using personalization , this will actually make the field disappear from
    the page .
    Next to need to add the new field (MessageLovInput ) by making use of java code , this java code needs to be implemented in the
    controller class .
    The following link has complete set the code to implement the MessageLovInput pro-grammatically
    https://cn.forums.oracle.com/forums/thread.jspa?threadID=458476
    http://mukx.blogspot.in/2009/11/setting-query-dynamically-in-view.html ( Setting Query Dynamically )
    Please go through it and let me know if you need any further help .
    Keerthi

  • Issue while adding Help Link using personalization

    Hi... i am adding a help links on all the iRec pages using personalization.
    Requirment:-
    Need to have a help link on all the pages of iRec at the left corner of the page
    So i made the following changes to do this...
    1. Created a new Region(This regios is shared by all the pages of iRec)
    StackLayout (AM set to deflaut value)
    |_
    RowLayout (Horz Align set to end)
    2. Now i go to the page, click on personalize link at top, and create a new Stack Layout Region below the PageLayoutRN for the Page
    and set the extend property of this StackLayout to my above create region.
    3. Create a new item under RowLayout, Item Type "Link" and set the destination URI for this link to say "http://google.com"
    I do the same steps above on all the pages of iRec and point the destination URI for the link to the one i want to set and all this is done at Site level.
    But the issue i am getting is that i am not able to see these personalizations for all the users and at some places the links i created are not clickable. They simply display on the page but cannot be clicked.
    Is there something i am doing wrong? so is there any step i did wrongly? Please let me know the solution.
    Thanks
    Sandeep

    It should not be show this behavior. one test you can do in this reference create Two more item at site level say MessageStyleText and one more link and check this behavior to all the user.

  • Issue using the mp:Link item in a plug-in mpcui definition

    Hello,
    I'm developing an OEM plug-in and wanted to use the Link item - <mp:Link label="Click Me" click="{invokeActivity('myPage')}"/> - in my mpcui-defined UI.
    This actually works but it's conflicting with other content on the page. For example, if I define an InfoItem followed by the Link item, the link overlays the label of the InfoItem.
    Here's my code
    <mp:InfoItem label="My Label" value="Some text"/>
    <mp:Link label="Click Me" click="{invokeActivity('myPage')}"/>
    This results in a single line on the page with link label (Click Me) overlayed on top of the InfoItem label (My Label), with the InfoItem text (Some text) to the right.
    [overlayed My Label and Click Me]    Some text
    The mouse pointer turns into a finger pointer and I can click the garbled/overlayed text and it navigates to my page so it works; it's just messed up layout-wise. I don't have any positioning information in either element but normally, if I just use multiple InfoItem elements, they will be arranged vertically down the page. I was expecting the Link element to work the same way but it doesn't seem to for me.
    Has anyone seen this? know how to fix it?
    Thanks,
    Tom

    InfoItem tags can only be used as a child to the InfoDisplay tag.  And InfoDisplay only accepts InfoItem tags as children.  If you are trying to get a link into an InfoDisplay list, this can be done on the InfoItem tag:
                            <mp:InfoItem id="relatedHost" label="{getString('HOSTED_BY')}" value="{model.relatedHost}"
                                imageRenderer="{appModel.renderer('TARGET_TYPE')}"
                                imageDataSource="{model.relatedHostType}"
                                destination="{model.relatedHostLink}"  />
    destination can be an URL string or an Activity (which you have defined in your integration class).

  • Can We personalize DFF using Personalize page Link

    Hi all
    i have been asked a question that ,can we personalized DFF using the Personalize Page link ?? ,i m bit confused about the answer although i have handled the DFF via controller extension ,but i never performed any action using Personalize Page link on DFF.can u guys pour your views on this topic
    thanx
    Pratap

    Hi Pratap,
    You cannot directly personalize the field in the DFF..
    however there is a workaround. I haven't tested it.
    1. Hide the DFF
    2. Create a new Flex region for the same DFF again
    3. Now you can choose the segments as you like (hide or display, readonly or not)
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is it possible to move items betwen regions using personalizations

    Is it possible to move items betwen regions using personalizations?

    Hi,
    1. Can I create new item using personalization and refer to the item in the another region (for example there are 2 regions in my page R1 and R2, R1 has fields a,b,c and R2 has salary,empno,deptno , so can I create a field FFF in R1 and refer to deptno in R2.Suppose you have a 2 region like R1 & R2.
    R1 contains three MessageTextInput Box. (eg a,b,c)
    R2 contains three MessageTextInput Box. (eg x,y,z)
    Then you can create a new item in any region & its will only impact your UI. (i.e. It will be displayed under the region where you have created it.)
    2. if answer to above question is yes, then if user changes the value in deptno, will this get updated in the apps.The data in the new field won't update the automatically unless & untill, you attach EO based VO to the newly created item.
    Hope you are clear.
    Regards,
    Gyan

  • Personalizations with Create Item and Item Style "Pop Up"?

    Can anyone provide me an example of how to create a simple pop up message?  I would attempt to create this with Oracle Personalizations -> Create Item -> Item Style "Pop Up".
    I attempted to create the pop up message but am not successful.
    Any guidenace would be greatly appreciated.
    Thanks!

    Hi Timo,
    My question is related to personalizations in Oracle Self Service pages,  Currently I am on Oracle APPS R.12.1.3.
    The Self Service pages are associated to a VIEW OBJECT that is either copied from Oracle seeded VOs or created and/or modified in JAVA.
    You can also perform a "Personalization" within the form and by pass making updates in JAVA.  This option is available in any self-service screen, top right corner labeled "Personalize Page".  Once you select "Personalize Page, there is a option called "Create Item" that will allow you to create a new column or custom action.
    My request is simply to understand how to utilize the seeded "Create Item" and within this function "Pop Up" in order for a page or message to appear immediately after for example the user select a button or enters data into a field. 
    Not sure if I can perform this within a "Personlization" or is updating the underlining View Object or Controller class is required.
    Thank you and I appreciate any guidance you can provide.
    Robert

  • Dynamically select detail report for a master report link item or button?

    I'm still new to APEX, so apologies if this sounds like a stupid question, but so far I can't find anything online about how to do the following.
    I have a simple report, and I want to be able to drill down from here to a detail report via a link item (or a button) in each row. The problem is that the specific detail report to use depends on a combination of values in the parent record.
    So if I have a parent record in the master report with values for columns 1/2/3 of A/B/C, I would drill down to a detail report against table X. If my parent record has values of D/E/F, I might drill down to a different detail report against table Y.
    I can build the individual reports easily enough, and I can set up a link item in the master report to drill down to a hard-coded detail report page. I can even generate the name (alias) of the relevant target report as an extra non-DB item in each row of the parent report. But I can't figure out how to allow each row in the parent report to actually link to a different detail report dynamically, depending on the contents of the parent row.
    Can anybody suggest an easy way to do this, or point me towards an online resource that would explain how to do this (preferably in basic terms that this APEX-newbie can understand)?
    Thanks for your help!

    Hi,
    When you say "Detail report" do you just mean a normal report of the child records for the selected master record or a tabular form style "Details report"?
    Using different reports on a page would, typically, depend on the value in a hidden page item - for example, P1_REPORT_TYPE. Your link could pass an appropriate value into this item and the second page would then use this as a Condition for each of the report regions - each region being conditionally displayed when the hidden item is a specific value.
    Andy

  • How to create a radio button on OA Page using Personalization

    I am trying to create a radio button on OA Page using Personalization. The item style , I can see is Message Radio Group.
    How to create Message Radio Button and bring them under one group.
    Thanks

    You should use jdev to define a radiogroup and radio buttons under that, wrap that definition inside a stackLayout in jdev, use personalization to add a stackLayout and extend the region which you had created earlier in jdev.

  • Adding Nationality Field in iRecruitment Page Using Personalization

    Dear Sir (+most probably Mr. Prabhu who is only helping here in this Forum) :)+
    I found one document on how can I add Nationality and National Identifier Fields in iRecruitment Pages Using Personalization, so it gave me an example so when he was personlazing
    "Basic Details” he was giving some parameters which I don't know the source of it :
    Select the “Level” of personalization
    • Select the item style as “Message Choice”. _(what's the difference between this type and others in LOV)?_
    • Provide a unique “ID”, for example: Nationality.
    • Provide: “Picklist Display Attribute”, for example: Meaning
    • Provide: “Picklist Value Attribute”, for example: LookupCode
    • Provide: “Picklist View Definition”. for example:
    oracle.apps.per.selfservice.personalinformation.server.NationalityListVO (_how can I get it if I want to create a new one_)
    • Provide a “Prompt”, for example: Nationality
    • Provide the “View Attribute”, for example: Nationality
    • Provide the “View Instance”, for example: IrcCandidatePerInfoVO _(??)_
    Do you have any clarification or supporting document for this?
    Thanks in advance..
    Akram
    BR
    Akram

    No Unfortunatelly it didn't answer my question and it took me to a programatic approach on how to attach the "DetailFuelTypesVO" to WebExpensesAM and extending the controller as follows (which is irrelevant to my case):
    package xx.oracle.apps.ap.oie.webui;
    import oracle.apps.ap.oie.webui.MileageListCO;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.ap.oie.entry.server.* ;
    import oracle.apps.fnd.framework.* ;
    import oracle.apps.fnd.framework.server.* ;
    public class xxMileageListCO extends MileageListCO
    public xxMileageListCO()
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    if(oapagecontext.isLoggingEnabled(2))
    oapagecontext.writeDiagnostics(this, "start xxMileageListCO processRequest", 2);
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oam = oapagecontext.getApplicationModule(oawebbean) ;
    System.out.println("XXXX Mileage AM Name is =>" + oam.getFullName() );
    OAViewObject oav= (OAViewObject)oam.findViewObject("xxoieDetailFuelTypesVO") ;
    if ( oav != null )
    System.out.println("XXXX Found VO DetailFuelTypesVO for Mileage AM. This means we have re-entered the page" );
    else
    System.out.println("XXXX CAN NOT FIND VO DetailFuelTypesVO for Mileage AM" );
    oav = (OAViewObject)oam.createViewObject("xxoieDetailFuelTypesVO", "oracle.apps.ap.oie.entry.server.DetailFuelTypesVO") ;
    if ( oav != null )
    System.out.println("XXXX FINALLY FOUND VO DetailFuelTypesVO for Mileage AM" );
    oav.setWhereClauseParams(null);
    //Remove this hardcoding later, or get this from a profile option
    oav.setWhereClauseParam(0, "10090" );
    oav.executeQuery();
    }

  • SharePoint Branding - New Custom Item Style does not appear on dropdown of Item Styles

    We are using custom styles on our SharePoint site. We need to create a new item style for a user requirement. I have created my new item style on the xml file using the existing Visual Studio solution then deployed it on our site. Unfortunately, I couldn't
    seem to see the new style on the Item Style dropdown when I try to edit a webpart.
    I have checked the 14 hive folder and the verified that the xml file is updated with my new item style. I have also verified that the XML is well formed.
    I have done IISReset, BLOB Cached Flush, and remove browser cache but I still couldn't see my new item style.
    Artificial intelligence can never beat natural stupidity.

    I presume you mean themes?
    This link covers the process:
    http://howtosharepoint.blogspot.co.uk/2010/04/how-to-deploy-new-theme-as-feature.html
    It also includes a few comments which might be relevant, have you checked them?

  • Javascript: select all text, break link to style

    Hi
    I'd like to select all text in a Document (in different independent textboxes) and then break the link to it's style (in the program in the Flyout-menu of the paragraph styles)
    Is this function scriptable (javascript)?
    How do I select all the text?
    InDesign CS6, OS10.7.4
    Thanks

    In fact, I use the adobe findchangebylist to modified, I want to do a clear setting script, not only break link to style, but when i run the script that will get error, can u help me to fix it, my script is shown as below:
    main();
    function main(){
    var myObject;
    //var myCheckSelection = false;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "TextFrame":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         //myFindChangeByList(app.documents.item(0));
                        //alert("Nothing Selected, Please Select Text Frame or Text.");
      else{
       //Nothing was selected, so simply search the document.
                //myFindChangeByList(app.documents.item(0));
                alert("Nothing Selected, Please Select Text Frame or Text.");
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"Joan New Clear Setting_v1.0"});
    with(myDialog.dialogColumns.add()){
       with(dialogRows.add()){
       with(dialogColumns.add()){
    staticTexts.add({staticLabel:"Search Range:"});
         var mySearchButtons = radiobuttonGroups.add();
         with(mySearchButtons){
         radiobuttonControls.add({staticLabel:"Current Document", checkedState:true});
                       if(app.selection[0].contents != ""){
        radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
       with(dialogColumns.add()){
        with(borderPanels.add()){
         staticTexts.add({staticLabel:"Clear Setting:"});
         var myDateButtons = radiobuttonGroups.add();
         with(myDateButtons){
         radiobuttonControls.add({staticLabel:"English", checkedState:true});
         radiobuttonControls.add({staticLabel:"Chinese"});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(mySearchButtons.selectedButton){
       case 0:
                     BreakLinktoStyleDocument();
                     TurnOffHyphenationDocument();
                     myObject = app.documents.item(0);
                     myCheckSelection = false;
        break;
                  case 1:
                     BreakLinktoStyleSelection();
                     TurnOffHyphenationSelection();
                     myObject = app.selection[0];
                     myCheckSelection = true;
        break;
      switch(myDateButtons.selectedButton){
      case 0:
      myFindChangeByList1(myObject, myCheckSelection);
      break;
      case 1:
      myFindChangeByList2(myObject, myCheckSelection);
      break;
      myDialog.destroy();
      //myFindChangeByList1(myObject);
    else{
      myDialog.destroy();
    function TurnOffHyphenationDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().hyphenation=false;
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().hyphenation=false;
    function TurnOffHyphenationSelection() {
    app.selection[0].texts[0].hyphenation=false;
    app.selection[0].cells.everyItem().texts[0].hyphenation=false;
    function BreakLinktoStyleDocument() {
    app.activeDocument.stories.everyItem().texts.everyItem().applyParagraphStyle(app.activeDoc ument.paragraphStyles.item(0), false);
    app.activeDocument.stories.everyItem().texts.everyItem().applyCharacterStyle(app.activeDoc ument.characterStyles.item(0), false);
    myTables = app.activeDocument.stories.everyItem().tables.everyItem();
    myTables.cells.everyItem().paragraphs.everyItem().applyParagraphStyle( app.activeDocument.paragraphStyles.item(0), false);
    myTables.cells.everyItem().paragraphs.everyItem().applyCharacterStyle( app.activeDocument.characterStyles.item(0), false);
    function BreakLinktoStyleSelection() {
    app.selection[0].texts.everyItem().applyParagraphStyle(app.activeDocument.paragraphStyles. item(0), false);
    app.selection[0].texts.everyItem().applyCharacterStyle(app.activeDocument.characterStyles. item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyParagraphStyle(app.activeDocument.paragra phStyles.item(0), false);
    app.selection[0].cells.everyItem().texts[0].applyCharacterStyle(app.activeDocument.charact erStyles.item(0), false);
    function myFindChangeByList1(myObject, myCheckSelection){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/ScriptSupport/te.txt")
    if(myFindChangeFile != null){
            // Because the selection will change as we add/remove characters,
            // we'll need to reset the selection after each pass if we are
            // checking the selection. We'll get the index of the first character
            // in the selection (relative to the start of its parent story) and
            // the index of the last character in the selection (relative to the
            // *end* of the story, and we'll use them later in the script to
            // keep the ends of the selection in place.
      if(myCheckSelection == true){
       var myStart = myObject.characters.item(0).index;
       var myEnd = myObject.characters.item(-1).index;
       var myStory = myObject.parentStory;
       var myStoryEnd = myStory.characters.item(-1).index;
       myEnd = (myStoryEnd - myEnd)+1;
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)!="text")||(myLine.substring(0,4)!="grep")||(myLine.substring(0, 5)!="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
         if(myCheckSelection == true){
          myStartCharacter = myStory.characters.item(myStart);
          myEndCharacter = myStory.characters.item(-myEnd);
          myObject = myStory.texts.itemByRange(myStartCharacter, myEndCharacter);
          app.select (myObject);
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    alert("Done");
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
      myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    app.findChangeTextOptions = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findChangeGrepOptions = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    app.findChangeGlyphOptions = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;
    and here is my text file, te.txt
    //001
    grep {findWhat:"."} {appliedLanguage: app.languagesWithVendors.item("English: USA"), kerningMethod: "無"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //002
    grep {findWhat:"."} {kinsokuSet: "繁體中文避頭尾(s)"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //003
    grep {findWhat:"."} {mojikumi: "nothing"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //004
    grep {findWhat:"."} {ligatures:false} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //005
    grep {findWhat:"."} {gridAlignment: 1852796517} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //006
    grep {findWhat:"."} {leadingModel: 1248619858} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}
    //007
    grep {findWhat:"."} {characterAlignment: 1247896172} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, includeLockedStoriesForFind:true, widthSensitive:true}

Maybe you are looking for

  • Help! My Acrobat keeps crashing when I view comments...

    I'm running a MAC OS X (version 10.6.8), my acrobat pro XI keeps crashing when I am viewing comments from my clients. I need to view what they're saying so I can make appropriate edits to my design files...but I can't even view one without Acrobat cr

  • ERROR UJT015 when doing restoring via UJBR

    I got error message when trying to restore a BPC appset from PRODUCTION BI to Quality BI. error message is UJT015  in classs CX_UJT_BACKUP_RESTORE_ERROR Error occured while creating Application PROFITABILITY via Admin API Message no. UJT015 my backup

  • G4 and Intel compatibility

    Hey there! My new MacBook Pro is the first Mac I've owned. I'm using it for music creation and most of the software has system requirements for a Mac G4 processor. This may be a stupid question but will they run fine with my 2.16GHZ Intel Core Duo pr

  • Not all info is seen pn a page

    We have page http://www-03.ibm.com/software/lotus/symphony/spreadsheetsForum.nsf/AllByUNID/37D031F1FCD781FE85257A1C0047638C?open&forum=Questions%20and%20Troubleshooting&row=1 If we open it in Chrome 19.0.1084.56 m, then we see all info in topic "IBM

  • Ipad air looses wifi

    mmy iPad Air looses connection often even though the signal is really strong and other devices stay connected? The latest iPad HW with the latest available SW.