Search Script trouble!

OK, I thought I had this working but apparently I didn't.  How can I get it to search for only each object that is checked the box?  and displays a dialog box saying that everything was changed when some check boxes are selected.  RunCH1, RunCH2 and RunCH3 are the names of the boxes I have.  I thought I had the find/replace to work yesterday, but I must have not been paying attention. It will be the first set of changes and the second, but it won't make the change 3.  and no matter which I chose (or not selected), I get all 3 alert messages.  I want only the alert message for the selected change.  If you need the rest of the code, let me know and I'll paste below.  Thanks in advance.

// How do i make each CHECK BOX RunCH1/2/3 Only work when they are selected?  I cannot figure out how to make 2&3 Work.


        if(myResult == 1 && (RunCH1.value==true || RunCH2.value==true || RunCH3.value==true) ){  
            alert("Find and Replace Items Have been made.!")
                Replace_TXT(" <CR> ", "^p");
                Replace_TXT(" <CR>", "^p");
                Replace_TXT("  ", " ");
                Replace_TXT(" :", ":");
                Replace_TXT(" .", ".");
                Replace_TXT("^p^p", "^p");
                
               
              
            if(myResult == 2 && (RunCH2.value==true ) );
           
                Replace_TXT ("test", "asdfasdfasdfadsfasdfasdfasdfadfasdfasdf"); 
                    
         {  
                    alert ("RunCH2 Changes Made")  
         }; 
     
            if(myResult == 3 && (RunCH3.value==true) ){  
                Replace_TXT("and", "TEST");
          }  
                   alert ("RunCH3 Changes Made")  
          }; 
            w.close(true);     
    
     
    function Replace_TXT(input, output)  
    {  
    app.findChangeTextOptions.caseSensitive = true;  
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;  
    app.findTextPreferences.findWhat = input;  
    app.changeTextPreferences.changeTo = output;  
    app.activeDocument.changeText();  
    }

Try this with your main script file that you have posted in another thread... I think that your condition is great... it Ditto == 1 is used if you press ok and 2 we press Cancel... hope you understand now

// How do i make each CHECK BOX RunCH1/2/3 Only work when they are selected?  I cannot figure out how to make 2&3 Work.
if(myResult == 1 && (RunCH1.value==true)){
alert("Find and Replace Items Have been made.!")
Replace_TXT("  ", "^p");
Replace_TXT(" ", "^p");
Replace_TXT("  ", " ");
Replace_TXT(" :", ":");
Replace_TXT(" .", ".");
Replace_TXT("^p^p", "^p");
}
if(myResult == 1 && (RunCH2.value==true ) ){
Replace_TXT ("test", "asdfasdfasdfadsfasdfasdfasdfadfasdfasdf");
alert ("RunCH2 Changes Made")
};
if(myResult == 1 && (RunCH3.value==true) ){
Replace_TXT("and", "TEST");
alert ("RunCH3 Changes Made")
};
w.close(true);       

function Replace_TXT(input, output)
{
app.findChangeTextOptions.caseSensitive = true;
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.findWhat = input;
app.changeTextPreferences.changeTo = output;
app.activeDocument.changeText();
}

Tags: InDesign

Similar Questions

  • Test database search script

    Hello

    I have a real problem to find the database search Scripts, documentation around this seems terribly poor, is anyone able to help me?

    I created my search for data based on customer information.

    When I go to database search Options > data search Scripts I use the "display Script example" for purposes of test

    Its my understanding this should contact data of research based on the email address I enter and print the results.  If its unable to find the contact it will print 'Functions of customization not found'

    I stick my 'form Autopopulation Script' in an empty html file.  First question, I have to pull the < div > out of the JS (I put it in front of the JS)

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

    < div id = "contactinfo" > < / div >

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    function CreateRow (label, value) {}

    var p = document.createElement ('p');

    var b = document.createElement ('b');

    p.appendChild (b);

    b.appendChild (document.createTextNode (label));

    p.appendChild (document.createTextNode (value));

    document.getElementById('contactinfo').appendChild (p);

    }

    function SetElqContent() {}

    If (this. GetElqContentPersonalizationValue) {}

    CreateRow (': ', GetElqContentPersonalizationValue ('C_FirstName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_LastName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_EmailAddress'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_BusPhone'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Company'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Job_Title1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Department1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address2'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_City'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Zip_Postal'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Country'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_Mail_Flag1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_SFDC_Contact_ID1'));

    } else {}

    CreateRow ("customization not found '," ");

    }

    }

    --> < /script >

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Secondly, I paste my "Script for integration" below it:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    _elqQ.push (['elqDataLookup', escape ('66c01e80420c4bc88c0cab5f149ed81a'),' < C_EmailAddress > Enter_Email Address_here < / C_EmailAddress > ']);

    --> < /script >

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I run this page and I get an error uncaught exception in my JS Console "_elqQ is not defined.

    After a lot of research and found some final or current, I decide that I must add the following above the previous scripts (still not entirely sure on that?).  Not mentioned at all in the page that provides the scripts...

    " < script src =" http://img.EN25.com/i/elqCfg.min.js "type =" text/javascript"> < / script > "

    This seems a step in the right direction (no error console) but I do not print anything either!


    My final code


    <! DOCTYPE html >

    < html >

    < head > < / head >

    < body >

    < div id = "contactinfo" > < / div >

    " < script src =" http://img.EN25.com/i/elqCfg.min.js "type =" text/javascript"> < / script > "

    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    function CreateRow (label, value) {}

    var p = document.createElement ('p');

    var b = document.createElement ('b');

    p.appendChild (b);

    b.appendChild (document.createTextNode (label));

    p.appendChild (document.createTextNode (value));

    document.getElementById('contactinfo').appendChild (p);

    }

    function SetElqContent() {}

    If (this. GetElqContentPersonalizationValue) {}

    CreateRow (': ', GetElqContentPersonalizationValue ('C_FirstName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_LastName'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_EmailAddress'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_BusPhone'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Company'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Job_Title1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Department1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Address2'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_City'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Zip_Postal'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_Country'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_Mail_Flag1'));

    CreateRow (': ', GetElqContentPersonalizationValue ('C_ANZ_SFDC_Contact_ID1'));

    } else {}

    CreateRow ("customization not found '," ");

    }

    }

    --> < /script >


    < SCRIPT TYPE = "text/javascript" LANGUAGE = "JavaScript" > <!--/ /.

    _elqQ.push (['elqDataLookup', escape ('66c01e80420c4bc88c0cab5f149ed81a'),' < C_EmailAddress >Enter_Email Address_here< / C_EmailAddress > ']);

    --> < /script >

    < / body >

    < / html >

    Okay, so I found where the complete code 'Test '.

    Settings > Setup > site > monitoring > visitor tracking > visitor tracking package.

    In these files that I found rather than the

    If (window.addEventListener) window.addEventListener ('DOMContentLoaded', async_load, false);

    Else if (window.attachEvent) window.attachEvent ("onload", async_load);

    })();

       

    Just a little more tweaking and playing, and I'm finally here Yay!

  • Search script, orders and shopping carts.

    I have a page that I want to sell boxes. I want the consumer to be able to enter and search using the criteria they want: length, width, height or any combination of those or or price.

    I have to be able to list my products in an orderly way, which means making sure that the right picture with the good article, which corresponds with the details of the right, which is the appropriate price/size.

    I started to learn web design so I really don't know yet what languages I need to learn. I get just the hang of html and CSS, but now I need some scripting languages to back it up.

    So what I need to know is:

    • How to create a database that will store all my products and keep their photos are associated with them?
    • How can I do for my forms are able to search and pull items from the database?
    • How can I register the results of research of orderly with all associations right?
    • Do I have to use a table to list the results or is there a better way, as a spry widget?
    • How to set up a shopping cart for my page?
    • What language is better to help me with these questions?

    Of course, I do not expect a full explanation of exactly how to do these things, but I'm sure you can point me in the right direction.

    Thank you.

    This sort of thing with a site based on the database is relatively simple, but do not expect to be able to do it from one day to the next. You have a relatively long learning to come.

    Dreamweaver supports three technologies server side: ASP, ColdFusion and PHP. Forget the ASP Microsoft stopped he development 10 years ago. Although it is still widely used, it will eventually die, in front of you with the problem of switching to other server-side technology. ColdFusion and PHP are both powerful, but PHP is by far the most widely used. Note: I'm biased because I write books on Dreamweaver and PHP (for more details, see http://foundationphp.com/dwcs4/).

    To develop with CF, or PHP, you will need to create a development environment. There are instructions for both languages in the Adobe Developer Connection:

    There is also a tutorial on creating your first website focused on the database at http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html. In theory, you should be able to follow the tutorial using ColdFusion or PHP, but all of the code in the examples is only PHP.

    Once you have gained experience working with technology on server side of your choice, you might want to watch Cartweaver, a commercial extension that generates carts in Dreamweaver. There are also free shopping cart solutions. OSCommerce is one that many people recommend. It only runs on PHP.

    Assistance based on the database of Web sites, please ask questions in the forum on the development of Application Dreamweaver.

  • Embedded search Google on our site shows no results. Windows 8, 64-bit, Firefox 30

    We integrated into our Google search site. It has been brought to my attention by one of our employees that Firefox does not show the search results after a click on the search button. The question seems to be limited only to Firefox. Tested the problem on Internet Explore 10 and Google Chrome and both work as expected, showing the results on our results page.

    I use Windows 8, 64-bit, Firefox 30. The user whose question is on Windows 7, 64 bit.

    I used the Web console and there was an error message
    "TypeError: google.search.Search.apiary5337 is not a function". "

    I'm not sure that it is the root of the problem or not, but why would that work in Chrome and Internet Explorer and not Firefox?

    If you need to check it out, the website is http://www.dmns.org/ . The search box at the top right of the page. You will see that the page redirects to our ' / results? q = searchterm "." We are a scientific institution so if you type 'science' in the search box, you will be redirected to the page ' / results "with the query string of 'science' for the search term. But in my case, the search results below are white. If you search even if Chrome or IE results show very well.

    Oh, I don't have any add on installed on Firefox.

    Any suggestions or a fix would be great.

    Thank you.

    Carlos Mosqueda

    Problem SOLVED.
    It is probably still a bug in Firefox. Our Google search < script > that call the function Javascript to Google has been within the Body tag. I moved the Script tag in the head and now it seems to work as expected. In the new Firefox, are not allowed within the Body element < script > tags?

  • Script to remove paragraph space before/after

    Hello! Search scripts using experts. I format a lot of long documents with many heading styles and am looking for a way to apply local formatting to the Cap according to the following. (Heading styles have space after that so they are separated from the body copy, however, if another position following, it seems better if this space is reduced - this is where some conditional formatting javascript might help).

    I need a script that can search all the title 1 followed by the heading 2, and then remove the spacing after the paragraph under the heading 1. And so on, with a heading 3 following the title 2, etc. I have enough knowledge to write all the variations, but I'm unable to find a starting point for this script, if there is a way to do it at all. I don't know it y a. basically, he needs to get all the X of paragraph Style and If that is followed by Y of paragraph Style, and then set the spacing after the paragraph 0. Can anyone here help?

    Thank you!!

    This should help you get started:

    Note stories.item(-1) will give you the first story if there is only one in addition to the main story. Otherwise loop through your stories of tests to ensure that every story has more than 1 point.

    var thisStyle, testStyle;

    docRef var = app.documents.item (0);

    var storyRef = docRef.stories.item(-1);

    var paraList = storyRef.paragraphs;

    var lastTest = paraList.length - 1;

    Repeat to dot matrix

    for (var i = 0; i)< lasttest;="" i++)="">

    thisStyle =. appliedParagraphStyle.name paraList [i];

    paraList [i + 1].appliedParagraphStyle.name = testStyle;

    If (thisStyle == 'Title 1' & testStyle == "Title2") {}

    .spaceAfter paraList [i] = 0;

    } ElseIf (thisStyle == "Title2" & testStyle == 'Titre3') {}

    .spaceAfter paraList [i] = 0;

    }

    }

  • Need help with script to find the virtual computer by IP

    Looking for a script that will correspond to the vm to IP, but should be able to find several IPS at the same time.

    I put this together from scripts on the net, which works well to search for a single IP address at a time:

    $match_address = Read-Host "enter the IP address to find."

    Get - VM | %{

    $vmips = $_. Guest.IPAddress

    {foreach ($ip in $vmips)

    If ($ip - as $match_address) {}

    "VM found correspondence address: {0}" f $_. Name

    }

    }

    }

    But would need to be able to enter several IP addresses of different subnets in the $match_address and search script for a match for every ip address.

    Could you please try this?

    function search-VMAssociatedToIP {}

    (param

    $ArrayOfIPToCheck

    )

    {in process

    $VMsAndAssociatedIP = get-view - viewtype 'virtualmachine ' | {foreach-object

    $VM = $_

    $_.guest.net | {foreach-object

    $Net = $_

    $_. IpAddress | {foreach-object

    $IpAddress = $_

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "VM" = $VM. Name

    "NetworkName" = $Net.Network

    "IP address" = $IpAddress

    })

    Return $Output

    }

    }

    }

    $ArrayOfIPToCheck | {foreach-object

    $IPtoCheck = $_

    $VMsAndAssociatedIP | where {$_.} IpAddress - eq $IPtoCheck} | {foreach-object

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "IpToCheck" = $IPtoCheck

    'VM' = $_. VM

    "NetworkName" = $_.NetworkName

    'IpAddress' = $_. IpAddress

    })

    Return $Output

    }

    }

    }

    }

    $MyArray = "10.0.33.1","10.0.30.11","10.0.20.11","10.0.32.1".

    Search for VMAssociatedToIP - ArrayOfIPToCheck $MyArray | OGV

    Use a table entry.

    First get the IP addresses of all computers installed correctly (only for virtual machines with VMware tools) virtual based on get - view so the collection will be fast.

    Then compare with the PPE provided as input.

  • Script SQL Developer runs all the lines

    I have a group of scripts that I want to execute in the order since a main script.  I created a file referencing these scripts as follows below.  My problem is that when I run this script (via F5 or another script referencing it), it runs only the first line and stops.  I have excluded questions with my references to file by changing the order - always the first runs and stops.  I have tried such as displayed below and with a semicolon; to separate each command.  I have scoured the web and can not find any reason why it does not work.  Each of the scripts listed below contains multiple statements separated by a; that wraps a file to a NAS where he is picked up by our external file transfer program.  It all works properly - the only thing that I have problems with using 1 script to call several files and run them in order.

    Any help is greatly appreciated!

    @EMSTATUS.sql

    @EMPLOYEE.sql

    @HREMPUSF.sql

    @HRHISTORY.sql

    @HRSUPER.sql

    @JOBCLASS.sql

    @JOBCODE.sql

    @PAACTREAS.sql

    @PAEMPLOYEE.sql

    @PAEMPPOS.sql

    @PCODES.sql

    @PCODESDTL.sql

    @PERSACTHST.sql

    @PRDISTRIB.sql

    @PRPAYCODE.sql

    @PSGRELATE.sql

    @REVIEW.sql

    Hello

    Note You can place in the path: Tools-> preferences-> database-> spreadsheet-> "path select default to search scripts"


    I tried the following:

    c:\tmp\calltwoscripts. SQL

    set echo on

    @zone.sql

    @ztwo.sql

    Select 'done' double.

    c:\tmp\zone. SQL:

    Select 'one' double;

    c:\tmp\ztwo. SQL:

    Select 'two' SQL;

    executed in a worksheet:

    @c:/tmp/calltwoscripts.sql

    Output:

    > @zone.sql

    > select "one" of the double

    'A '.

    -----

    one

    > @ztwo.sql

    > Select "both" of the double

    "TWO".

    -----

    two

    > select 'done' double

    'DONE '.

    ----------

    Finish

    The things that could go wrong:

    Your scripts could end with "quit".

    Paths can mingle: try (not @) and full of paths.

    You could hit a code issue, the spreadsheet does not recover-in which case you should get the output on the command line and or Page logging of messages in the view.

    Turloch

    SQLDeveloper - team

    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

    http://totierne.blogspot.co.UK/2013/07/user-check-on-sqldeveloper-worksheet.html

  • Adding a search bar for site

    eager to add a simple search box to my site. I have a certain products on my site, and it would be an interesting tool for my customers to find what they are looking for without having to search through everything.

    I noticed there are some messages on this a few years ago, but nothing really solid.  How does this work? How would I get the installer?

    Thank you all!

    Hello

    You can try this:

    DW: http://help.adobe.com/en_EN/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-78b0a.h tml or

    http://www.wrensoft.com/zoom/.

    http://www.DWfaq.com/resources/search-engines/default4.asp

    And here, I have a link to a German site, which is very easy to adapt and effective work:
    http://webdesign.weisshart.de/suchen-integrieren.php ('Das Suchscript in own facilitate Seiten' means something like 'search script to integrate into your own pages').

    Hans-Günter

  • Search only to hide resulted pdf pages when search results will require a readjustment

    Hi all

    I have a pdf of dynamic xml form, when open the pdf doc, only one page will be visible on this page I have search features. Once I do a search on this page according to research he reveals these pages (which are satisfied with the search conditions). In each page of search results I have a "Return to Homepage" button, when the user click of button on the search results needs to be reset (need to hide all no hidden page and update should come to the search page).

    Actually, I got this feature but here when the user clicks on the "Back to Home Page" button, I'm hidding all the pages in pdf doc. Here, I need to hide only the pages that are displayed not all pages in pdf format. My code snippet as follows (assume that doc pdf has 8 pages)

    topmostSubform.Page1.presence = 'hidden ';
    topmostSubform.Page2.presence = 'hidden ';
    topmostSubform.Page3.presence = 'hidden ';
    topmostSubform.Page4.presence = 'hidden ';
    topmostSubform.Page5.presence = 'hidden ';
    topmostSubform.Page6.presence = 'hidden ';
    topmostSubform.Page7.presence = 'hidden ';
    topmostSubform.Page8.presence = 'hidden ';

    How to hide only search pages has resulted. Because if I have 500 pages in pdf doc, I need to write to hide for each page. I need to avoid this.

    Thanks in advance

    Prasad Salvan

    Hi Prasad,

    Since you had the search criteria to make the required pages visible, I would put in place a global variable (in the file / form properties / Variables tab) and then the search script put the search criteria in the global variable (when accessing the global variable, you must only .value, instead of .rawValue).

    When you set the global variable you must give a name and an initial value of "0".

    Then the button "go to the search page" would include script to hide the page references in the global variable.

    Good luck

    Niall

  • Invalid PEAK loading to HFM

    Hi guys,.

    I was wondering if one of you knows a script or a way to prevent the FDM to load details ICP for HFM of target accounts that are marked "n" to transport peak.

    The source file of the SAP is to have accounts which carry the PKI details while his target in HFM cannot. What would be a maintenance free way to prevent this?

    Crush the details of PKI for accounts of the source is not an option from the maintenance perspective because they can be changed, etc. extended. I'd rather have a search script before posting that crushes the details of PKI [ICP None] in the case where the varvalues (14) is not allowed to carry the PKI.

    If someone knows this script, I would be very happy!

    I rather disagree.

    You CAN get this information from FDM out HFM; However, it would not be out of the box functionality AND you may or may not want to go to the trouble to set up / maintain in the future.

    From your script FDM, you can link directly with the HFM tables by using ADO, and you can extract the information you need in the appropriate tables.

    The following code should get you a list of the accounts that are NOT marked for PIC by retrieving a recordset containing all the names of account where the isICPis value. You can then put it in a table and check the FDM account against your table.

    Other options would be to modify the SQL code so that you call and check the current count of FDM against the HFM database directly. Can be a little more easy coding; However, you will have to do database calls much more that I advise...

    i.e. strSQL = "Select IsICP from _ACCOUNT_ITEM where label = '" & & "'."

    (NOTE: I assume you are using SQL Server, if your using Oracle, you must update the connection string according to.) If you are unsure how to proceed, I recommend: http://connectionstrings.com/ for more information)

    -----------------------------------

    ' Connection string.
    strCon = "Provider = sqloledb; Data Source =; Initial Catalog =; UserID =; Password ="
              
    'Create the required objects in ADO.
    Set conn = Server.CreateObject ("ADODB. Connection")
    Set rs = Server.CreateObject ("ADODB.recordset")
              
    'Open the connection.
    Conn. StrCon open
         
    "Recover files.
    strSQL = "" select the tag _ACCOUNT_ITEM where IsICP = 1 ".
    RS. Open strSQL, conn

    "Disconnect the Recordset.
    Set rs. ActiveConnection = Nothing
              
    'Release the connection.
    Conn. Close

    Set conn = Nothing

    ' Use the Recordset cut here.
    RS. MoveFirst
    Do While Not rs. BOF and not on the place. EXPRESSIONS OF FOLKLORE
    "Do something with the current account.

    ' Then save
    RS. MoveNext
    Loop

    'Release the recordset object.
    RS. Close
    Set rs = Nothing

  • Contact ID from a landing page to another

    I am trying to build a variant on a several page form and has difficulties in addition to the elqcontactid of a landing page to another.  Here's the context:

    I want to send an email to the contacts in an education campaign that encourages users to visit one of a number of "cost calculators" written in Javascript and positioned on the Eloqua landing pages hosted.

    The link in my outgoing email takes the contact to landing page 1 that does two things.  The visitor is presented with a progressive form of profiling (or contact search where the elqcontactid is not found) to the door to keep the calculator tools that are on pages 2, 3, or 4 landing. Secondly, the form contains a field lookup that is used to control the page landing (2,3 or 4) to which the user is redirected in a conditional processing time.  Data from the tool of savings on the second page visited needs to write to a CDO linked to the contact record.


    So the question is how I pass the elqcontactid (or possibly recipient id) on pages 2, 3 or 4 so that the shape on this second page data be correctly matched? Or is there a better way?

    Your help would be very appreciated!

    Hi Allan,

    Several ways to do so.

    1 contact ID / recipient ID and add it to the URL of the page on page 1 of destination as cid = based on database search scripts, the same do the same on page 2, 3 and 4 to get the same data up on the last page... or

    2. create a hidden field, fill in the value of the cid with the look of data script, make this hidden, it will get submitted on page 1, also do the same on page 2, 3 and 4. You can search the value in each stage of processing for each page before running it (making it conditional)

    I hope this helps. (I choose option 2)

    Thank you

    Amit

  • Simple JavaScript to set the date

    Hello

    My simple JavaScript to fix the date runs in Acrobat Pro, but when I open the same document the reader he sets the date, but it fails with a pop off getField error dialog box... Here's the error tracking script...

    function populate_date()

    {

    var f = this.getField ("ToDay_Date");

    If (! f.value) f.value = util.printd ("d/m/yyyy", new Date());

    }

    populate_date(); call my function

    Above scripts executed when the document is opened. As a Pro, it is stored under Tools/JavaScripts/Document JavaScript...

    When I open it in the drive then I get the following while he dates the date presented too!

    The built-in functions of EScript Acrobat Version 11.0
    Acrobat SOAP 11.0

    TypeError: this.getField is not a function
    2:folder - level: App:Search Script.js

    I have not put right that I get this error...

    Kind regards

    Jeff P.

    I don't understand what you're talking about... The error message made clear reference to a script of level of the folder called 'search Script.js'.

    You must look for the source of the problem here.

  • value of ajax in the text [in jquery modal box] box

    Hello
    In my page, I have an interactive report with 2 button Add and edit, I used box modal j-query for the add and edit button. Add the data through the modal box works very well.
    When trying to change the existing data I can not set the data in the corresponding text box in the apex.

    Please find my modal box script:

    < link rel = "stylesheet" href = "" #APP_IMAGES #modal-jquery - ui.css "type =" text/css">"
    < script src = #APP_IMAGES #modal - jquery.js type = "text/javascript" > < / script >
    < script src = #APP_IMAGES #modal-jquery - ui.js type = "text/javascript" > < / script >
    < script type = "text/javascript" >
    $(function() {})
    $('#ModalForm').dialog ({}
    modal: true,
    Width: 550,
    height: 300,.
    autoOpen: false,
    Resizable: false,
    buttons: {}
    Cancel: function() {}
    closeForm();
    } ,
    Add: function() {}
    addPerson();
    }
    }
    });
    $('#ModalForm1').dialog ({}
    modal: true,
    Width: 550,
    height: 300,.
    autoOpen: false,
    Resizable: false,
    buttons: {}
    Cancel: function() {}
    closeForm1();
    } ,
    Update: function() {}
    UpdatePerson();
    }
    }
    });
    });
    function openForm() {}
    $('#ModalForm').dialog ('open');
    }
    function openFormclose() {}
    $('#ModalForm1').dialog ('open');
    Alert ('opened');
    var updateval = document.getElementById('P37_UPDATEID').value;
    get var = new htmldb_Get (null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS is updateperson', 0);
    Get.Add ('P37_UPDATEID', updateval);
    var gReturn = get.get ();
    Alert (gReturn);
    document.getElementById('P37_UPADATEPRONAME').value = gReturn;
    }
    function closeForm1() {}
    $('#ModalForm1_input[type="text"]').val (»);
    $('#ModalForm1').dialog ('close');
    }
    function closeForm() {}
    $('#ModalForm_input[type="text"]').val (»);
    $('#ModalForm').dialog ('close');
    }
    function addPerson() {}
    If (document.getElementById('P37_ADDSOFTDETAILS').value == "") {}
    Alert ('Please enter Software Details.');
    Returns false;
    }
    If (document.getElementById('P37_ADDSOFTVERSION').value == "") {}
    Alert ("' Please enter software Version.");
    Returns false;
    }
    If (document.getElementById('P37_STANDARD').value == "") {}
    Alert ("' Please enter software Standard.");
    Returns false;
    }
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is addPerson', 0);
    ajaxRequest.add ('P37_ADDSOFTDETAILS', $v ('P37_ADDSOFTDETAILS'));
    ajaxRequest.add ('P37_ADDSOFTVERSION', $v ('P37_ADDSOFTVERSION'));
    ajaxRequest.add ('P37_STANDARD', $v ('P37_STANDARD'));
    ajaxRequest.get ();
    ajaxRequest = null;
    closeForm();
    gReport.search ('SEARCH');
    }
    < /script >


    and find the correspondent on the below application process:
    addPerson:
    DECLARE
    BEGIN
    INSERT INTO xxxxxx.yyyyyyyyyy)
    INT_PRODUCT_SEQ,
    INT_PRODUCT_NAME,
    INT_PRODUCT_VERSION,
    INT_PRODUCT_VERSION_DEFINE,
    CREATED_BY,
    CREATED_DATE
    )
    VALUES (xxxxxx.INT_ADD_SOFTDETAILS_SEQ. NEXTVAL,
    : P37_ADDSOFTDETAILS,.
    : P37_ADDSOFTVERSION,.
    : P37_STANDARD,.
    V ("APP_USER'),
    SYSDATE);

    COMMIT;

    apex_application.g_print_success_message: = 'Record inserted with succΦs.';
    EXCEPTION
    WHILE OTHERS
    THEN
    apex_application.g_print_success_message: = "Falied to insert data.";
    END;


    and updateperson: is
    DECLARE
    v_product_name varchar2 (240);
    v_product_version varchar2 (240);
    v_product_version_standard varchar2 (240);
    v_update varchar2 (240);
    BEGIN
    BEGIN
    SELECT INT_PRODUCT_NAME,
    INT_PRODUCT_VERSION,
    INT_PRODUCT_VERSION_DEFINE
    IN v_product_name, v_product_version, v_product_version_standard
    OF xxxxxxx.yyyyyyyyy
    WHERE INT_PRODUCT_SEQ =: P37_UPDATEID;

    HTP.prn (v_product_name);
    EXCEPTION
    WHILE OTHERS
    THEN
    HTP.prn ("an error has occurred -"
    || SQLCODE
    || "- ERROR -"
    || SQLERRM);
    END;
    END;

    Hello

    First of all:
    I can't find any definition of the function updateperson(); called by $('#ModalForm1').dialog - Update button.
    It has alert ('opened'); only. There should be the updateperson() function declaration.

    There is no adjustment of any matches at the opening of the modal form updated.

    I use it this way.

    function openForm(v_add_details, v_add_softv, v_stand)
    {
        $('#ModalForm').dialog('open');
        $s('P37_ADDSOFTDETAILS', v_add_details);
        $s('P37_ADDSOFTVERSION',  v_add_softv);
        $s('P37_STANDAR', v_stand));
    }
    

    where the P12_X are... modal form elements. and the v_... parameters are the parameters of the corresponding columns of the report. (you got something like: redirect URL: javascript: openFormclose();)
    It should be replaced by something like openFormclose (' #P37_ADDSOFTDETAILS # "," #P37_ADDSOFTVERSION #',' #P37_STANDARD #');

    Maybe this example will guide to you a little :D
    Otherwise try to reproduce your solution on apex.oracle.com. there I can modify your code to make it work.

    EDIT: I use the PLUGIN post by Dene. It works well too. I used above solution until the plugin has been released.

    concerning
    J :D

    Published by: jozef_SVK on 10.5.2013 04:07

  • How to take measures accordingly

    Can you please tell me how to make an action of skip steps that are not available at specific times? I mean if a step is not possible at some point in the process, how can I set up for action continues working/running to skip this step and the application following steps...? Thank you

    In the latest versions of Photoshop, there is a rudimentary ability to make decisions, but what you do are traditionally Records actions that are so widespread that they are working on a wide variety of images and/or record slightly different actions for different cases (e.g., 'smooth skin color' vs "Smooth skin in grayscale") and let the user choose one that suits.

    See the following for how to do conditional actions:

    http://helpx.Adobe.com/Photoshop/using/conditional-actions-creative-cloud.html

    For more sophisticated decision making capacity, search Scripting.

    https://helpx.Adobe.com/Photoshop/using/scripting.html

    -Christmas

  • NDATA does not return all possible results

    I created an index with userdatastore, basic and basic wordlist preference lexer. Also, a group of sections with section ndata. Basic letter, index of the substring all are true.
    "but when I search"script", I don't get ' of * script * Pétion" in the results. pls help.

    So, you want to be able to search periods and commas and spaces? By default, these things are considered to be punctuation and separators, not as searchable characters. However, you can set the period and the comma as printjoins, as follows:

    ctx_ddl.set_attribute ('mystery_lex', 'printjoins', ',.');
    

    Which will allow you to search for them, as follows:

    SCOTT@orcl_11gR2> select column1, score(1) from table1
      2  where  contains (indexed_column, '%\,%', 1) > 0
      3  order  by score(1) desc
      4  /
    
    COLUMN1                                                        SCORE(1)
    ------------------------------------------------------------ ----------
    this,that                                                             6
    
    1 row selected.
    
    SCOTT@orcl_11gR2> select column1, score(1) from table1
      2  where  contains (indexed_column, '%\.%', 1) > 0
      3  order  by score(1) desc
      4  /
    
    COLUMN1                                                        SCORE(1)
    ------------------------------------------------------------ ----------
    this.that                                                             6
    
    1 row selected.
    
    SCOTT@orcl_11gR2>
    

    I can't imagine why you would need to look for space and not what Oracle Text is designed for. You really need to explain your business needs and provide a test case so that we can help you. It is a standard expectation and many forums do not provide any help until a test case is provided. You can convert the spaces in a few other available characters in your procedure using the user_datastore.

Maybe you are looking for