Presentation Variable in Text field

Hi, I am trying to pass the text field parameter to Analysis from Dashboard Prompt.
I can pass the selected value of check box, list item but value that I put into the text field.
any idea how to do it?..
Thanks.~

Ok. here is what I found.
if It's Column Value when I set up at the Dashboard prompt, I can use Analyze. But when you use in Convert this to SQL to set the filter, IT WON"T WORK.
if you use Variable Value , it won't work at all.
What I was trying to do was using Variable Value to use less Textfield to search on different Columns.. it looks not working at all~..

Similar Messages

  • Displaying a presentation variable in a certain format

    Hi Experts
    I have got presentation variable called WeekBetween, which is set by a slider (that is a dashboard prompt)
    When output the value of this variable (in a textbox @{WeekBetween}) it says *'1,53'*
    While the values are right, i would want this value to be formatted in the following way
    *1- 53*
    Please can someone help or suggest an accurate answer
    Kind Regards
    Hiten

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    <div id=custDiv>@{WeekBetween}{Default Value}</div>
    <script>
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    </script>
    Let me know if this works for you.

  • Trying to retrieve content from a text field & use it in a conditional statement

    Hi Everyone,
    I have a form with a text field and a button. The  text field is called "orderNo", and the button is called "genOrder".
    Initially  the text field is empty, and clicking on the button fills the text  field with an appropriate order number.
    I need to check the text  field for data (content) before writing the order number to it, this  way if an order number is already present in the text field it will not  be over written.
    My intention is to use an if / else structure to  perform the testing, however I don't know how to retrieve the content  of the text field (if content is present!).
    If anybody can  suggest how I can go about retrieving the content of the text field and  then use it in an if / else statement it will be greatly appreciated.
    Kind  Regards,
    Davo

    Hi try67,
    Thanks for your assistance. I have posted in this http://www.acrobatusers.com/forums/aucbb/viewtopic.php?pid=70276#p70276 forum asking for further assistance if your able to help more.
    Once again thanks for your time.
    Cheers
    Davo

  • Displaying a presentation variable in a title view

    Hello,
    I've created a title view with the title:
    Category Sales Last 12 Months for @{CountryRegion}
    I also have a dashboard prompt that sets the presentation variable. However, the first time you run the dashboard page the title displays:
    Category Sales Last 12 Months for @{CountryRegion}
    instead of:
    Category Sales Last 12 Months for
    yet when the prompt is set within the dashboard to a value (e.g. Europe), the title correctly shows:
    Category Sales Last 12 Months for Europe
    I thought the title was supposed to not display the presentation variable definition at all if it is not set.
    Please can someone provide some pointers on how to get the title to correctly show the value of the presentation variable in the title whether the value is set or not.
    Cheers,
    John

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    <div id=custDiv>@{WeekBetween}{Default Value}</div>
    <script>
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    </script>
    Let me know if this works for you.

  • Using presentation variables in report columns

    Hi.
    I need to create a report column evaluating the difference in days between a field containing a date and a presentation variable.
    My field is defined as:
    TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", @{DataAnalisiScaduto})
    Where DataAnalisiScaduto is a presentation variable passed to the report and it's generated on a date field.
    Executing the report I get an error and looking at the session manager in the generated query I can see:
    TRUNC( (31 / nullif( 12, 0)) / nullif( 2010, 0) ) - TRUNC( T4292.DATA )
    Why ? How can I do ?
    Thanks,
    Andrea

    Erro again ...
    the value passed is 03/02/2011 (picked from the calendar) and the default suggested is 2010-01-10
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value 03/02/2011 from 03/02/2011 does not match the specified format. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Data Incasso"."Data Incasso", "Data Scadenza"."Data Scadenza Fattura", "Dettagli Pagamento"."Cd Fattura", "Dettagli Pagamento"."Cd Tipo Riga Pag", CASE WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 0 THEN ''Fino 0 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 0 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 30 THEN ''Fino 30 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 30 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 60 THEN ''Fino 60 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 60 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 90 THEN ''Fino 90 gg'' ELSE ''Oltre 90 gg'' END, Misure.Dovuto, Misure.Pagato, Misure.Scoperto FROM "Vendita - Pagamenti"')}
    SQL Issued: SELECT "Data Incasso"."Data Incasso", "Data Scadenza"."Data Scadenza Fattura", "Dettagli Pagamento"."Cd Fattura", "Dettagli Pagamento"."Cd Tipo Riga Pag", CASE WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 0 THEN 'Fino 0 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 0 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 30 THEN 'Fino 30 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 30 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 60 THEN 'Fino 60 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 60 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 90 THEN 'Fino 90 gg' ELSE 'Oltre 90 gg' END, Misure.Dovuto, Misure.Pagato, Misure.Scoperto FROM "Vendita - Pagamenti"

  • Caml query to retrive keyword from rich text field

    hi friends
    i am using below caml query to retrieve data from title field and Rich text field(Definition) 
    <View>
    <Query>
    <Where>
    <And>
    <Or>
    <Eq>
    <FieldRef Name=\'Title\'/>
    <Value Type=\'Text\'>'+letter+'</Value>
    </Eq>
    <Contains>
    <FieldRef Name=\'Definition\' />
    <Value Type=\'Note\'>'+letter+'</Value>
    </Contains>
    </Or>
    <Neq>
    <FieldRef Name=\'status\' />
    <Value Type=\'Text\'>Not approved</Value>
    </Neq>
    </And>
    </Where>
    <OrderBy><FieldRef Name=\'Title\' /></OrderBy>
    </Query>
    </View>
    this query is working fine. But it is retrieving some extra fields also which doesn't have the queried string. and even it is retrieving keyword from image urls which are present in rich text field. 
    Please help me to retrieve key word from plain text of rich text field.

    Hi,
    According to your post, my understanding is that you want to use caml query to retrive keyword from rich text field
    By design, when specifying a ViewFields clause, values for these fields are returned, together with a few system columns like ID, Created and Modified.
    If you query rich text field, it will return the field with HTML tags.
    To retrieve key word from plain text of rich text field, you need to use regular expression to remove the HTML tags.
    You can use the code below:
    using (SPSite site = new SPSite("http://sitename"))
    using (SPWeb spWeb = site.OpenWeb())
    SPList spList = spWeb.Lists.TryGetList("ListName");
    SPQuery qry = new SPQuery();
    if (spList != null)
    qry.Query =
    @" <Where>
    <Contains>
    <FieldRef Name='Rich_x0020_Text' />
    <Value Type='Note'>caml</Value>
    </Contains>
    </Where>";
    qry.ViewFields = @"<FieldRef Name='Title' /><FieldRef Name='Rich_x0020_Text' />";
    SPListItemCollection listItems = spList.GetItems(qry);
    foreach (SPListItem item in listItems)
    string src = item["Rich_x0020_Text"].ToString();
    Regex htmlReg = new Regex(@"<[^>]+>", RegexOptions.Compiled | RegexOptions.IgnoreCase);
    src = htmlReg.Replace(src, string.Empty);
    Console.WriteLine(src);
    Console.ReadKey();
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How can I change the content of a text field in a PDF form with a defined variable?

    Hello all!
    First time poster, and getting pretty frustrated with trying to figure out this one issue. Here is the scenario: I am using Acrobat 10 Pro to design what is essentially a giant order form. I designed the document in InDesign, defined the various buttons and whatnot and then exported it to Acrobat to continue building the form.
    I have a Radio Button group called "conference_opportunities" which contains different options at different price points, so they are all named the same, but have different values (so that they belong to the same group and only one can be selected at a time).
    What I have done is created a "MouseDown" event on the radio button that sets a variable called "ConferenceOpportunity" which is equal to the title of the option they are picking. I then want to take that variable and display it in a text box called "Conference_Option". I am using a variable because the values of my radio buttons are all the actual prices of the option they are picking, so I can't define the value as the title of the option.
    So its an array of radio buttons, and at the bottom of the page there is the Option They Selected, the quantity (which can change) and the value (in dollars)
    I also then want to display this variable at the end of the document as a sort of summary of everything they chose to purchase as well but I imagine its the same code.
    I am not an expert Javascript person at all, so any code snippets would help greatly. I have looked over the Adobe Document on the SDK and API and have not been able to find a solution. I have also turned to the almighty google and still no luck.
    Any help would be greatly appreciated!
    Thanks Everyone

    All you now have to do is use that variable to the value property of your text field... So add this at the end of your code:
    this.getField("Conference_Option").value = ConferenceOpportunity;
    Also, I would use MouseUp, not MouseDown.

  • How to create a group/list of check box variables for display in text field, in appended format

    I need to identify a series of single-response checkbox variables and display the ones selected (as a group) in a text field in an appended (comma, space) format. Last week, you provided a great little script for a similar need using List Box (multiple response) variables. This time I need to know how to formally identify the checkbox variables and, I presume, use a similar script to display the results in a comma, space format.
    You've been of great help.
    Thanks

    Here's the script adapted to this situation. It assumes there are ten check boxes named cb1, cb1, cb2, ...cb10.
    // Custom Calculate script for text field
    (function () {
        // Initialize the string
        var v, s = "";
        // Loop through the check boxes to build up a string
        for (var i = 1; i < 11; i++) {
            // Get the value of the current check box
            v = getField("cb" + i).value;
            if (v !== "Off") {
                if (s) s += ", ";  // Add a comma and a space if needed
                s += v;  // Add the selected value
        // Set this field value to the string
        event.value = s;
    You'll have to change the field name and starting/ending numbers to match your form.

  • Button Setting Variable - Text Field Not Updating

    Hi,
    I am working with Acrobat 9 Pro on Windows.
    I am unable to make the following work: When the user clicks a Button, a Text Field appears with the text associated with the Button clicked. I have tried accomplishing this with a variable declared in the Document JavaScripts, buttons setting the value of the variable, and a Text Field containing a Custom Calculation Script that returns the text associated with the value of the variable.
    Everything works - except the Text Field doesn't return the text associated with the value of the variable. I have an app.alert (for now) in the button scripts so I can see if the variable has the correct value - and it does - but when the Text Field appears - the text never changes.
    What I have observed: if I go back into the Custom Calculation Script of the Text Field and do nothing, go back out, go to Preview, and click on a Button, the text updates to the previous variable value (not the Button variable value I just clicked).
    So - I think - the Custom Calculation Script isn't seeing the new variable "on the fly". Even though the app.alerts are. I don't think this is a Field Calculation Order problem. But maybe it is. And this is where my brain power ends. Any suggestions would be greatly appreciated. Thank you.
    I have this in the Document JavaScripts:
    var ITrig = 1;
    I have three Buttons (want to have more) that will set the ITrig variable.
    Here is what I have in one Button:
    var Inpopup = this.getField("PartASectionIIInstructions")
    ITrig = 2;
    app.alert(ITrig);
    if (Inpopup.display == display.hidden) {
    Inpopup.display = display.visible
    Inpopup.setFocus();
    } else {
    Inpopup.display = display.hidden;
    I have this in the PartASectionIIInstructions Text Field in the Custom Calculation Script:
    if (ITrig == 2) {
    event.value = "#2";
    else if (ITrig == 3) {
    event.value = "#3";
    else if (ITrig == 4) {
    event.value = "#4";

    Thank you. I had tried something like that earlier - without success. That is why I went to the calculation script. So - I went back to the "Acrobat Forms - JavaScript Object Specification" looking for an answer. It finally sunk in I was guilty of this:
    var Inpopup = this.getField("PartASectionIIInstructions").value
    Inpopup = "#3"
    When I should have been doing this:
    var Inpopup = this.getField("PartASectionIIInstructions")
    Inpopup.value = "#3"

  • Presentation Variable in Legend or Static Text

    Hi Experts,
    Is it possible to call the Presentation variable in Legend or Static Text View.
    Please let me know how can I achive this.
    Thanks,
    Balaa...

    Take a look at this. It shows you where you can use session, repository and presentation variables and their syntax:
    http://shivabizint.files.wordpress.com/2008/10/obiee-variables-overview.jpg

  • Using variables in input text fields nested in a movieclip

    Hi all,
    I am designing a roulette wheel type game. I am using a variable, "_global.myMoney = 0; " to keep track of the total money the player has. When I built the prototype, I used a dynamic text field on the stage with an instance name of "myMoney_text" and a variable of "_root.myMoney"
    Now, I need to move this text box into a movie clip with an instance name of "winnings_mc"
    When I test the movie, it looks like it showing the style sheet (font size, font, etc...) inside the dynamic text box. If I change the variable of the box to "_root.winnings_mc.myMoney" it seems to track initially, but now my updateMoney function in my main script does not work.
    The function is called like this:
    trace("updated money equals " + updateMoney(myMoney));
    This always traces zero now, the initial value.
    Any ideas?
    Thanks!

    if you want to use a global variable, when initializing and everytime you assign a new value, prefix the variable with _global:
    _global.myMoney.
    whenever you want to retrieve its value, use myMoney.
    you should not be using _root.myMoney.
    and as ned mentioned, you should stop using the variable associated with textfields and use the text property of your textfield to assign its text.

  • Using variables in a text field

    I am very rusty using lingo, and I cannot find how to do this
    in any of my old projects (using director 7 if that helps you date
    this)
    I am trying to generate a random number, which becomes
    visible in a text field on the stage after the user presses a
    button.
    The text field is called "hotseat"
    on the button, I have a script which so far reads
    on mouseUp
    set grandom = random (50)
    end
    As you can see, I did not make it far. 8-)
    In an earlier part of the project, I got around this issue by
    evaluating the variable in an enormous if..then...else if
    statement. I am trying to find a less tedious way to do it
    Any help would be appreciated.
    BobR
    ps I am still using Director 7

    on mouseUp me
    set gRandom = random 50
    member("fieldMemberName").text=string(gRandom)
    end

  • Inserting in-line variable into a text field

    Hello,
    I want to add a variable within a text field (dymanic value within a sentence). Basically, I want the form to display something like the following:
    "The person named <person name> is an employee of the company"
    The only way I could do this so far is by creating three elements on the form: the first is a text element that contains "The person named", the seond is a text field element with no label that contains the "<person name>" variable, and the third is another text element that contains "is an employee of the company."
    I don't really like this approach as if the name of the employee is too long, it might get cut off. If it was too short, there will be a lot of extra space between the name and the rest of the sentence.
    Another solution is to pass a string variable with the complete text (I'll have to build the string before calling the form). Similarly, I can pass an internal table with the text. I don't think either of these two solutions is ideal as LifeCycle designer should provide an easier way to do so (just like in SmartForms).

    Hi Abdullah Azzouni ,
    This is possible to add a dynamic text between the static text in Adobe form.
    For that suppose you have a Static Text field TEXT1 on your layout. Just right click over the text inside this field and on the pop-up choose "Floating Text". It will create a textfield in your subform. Now bind this newly created textfield to the field in the datasource say PERNR in your case.
    It will appear like: "The person named is an employee of the company"
    In this way you can add a dynamic text in between your static text in a text field.
    Regards,
    Vaibhav

  • How to populate text fields with data present in a table

    Hi,
    The page i'm building has got a select list for the primary key column and text fields corresponding to rest of the columns in the table.
    upon selecting some value from the list, the data corresponding to that row should get populated in the respective items. I don't want to add source in each item. can't i create a process or something else where this is done for each item.
    for eg there's a table with columns A(primary key) and B.
    there is a text fields on this page.
    this textfield should populate the data from the table whenever i submit the page such that teh value in B is select B from tablename where A = the selected value.
    Thanks
    Dhirendra

    So I assume page was not built using a wizard. Why on earth you would want to I dont know, but you could create an "After Header" pl/sql process to populate the relevant fields, assuming the id was know on entry to the page. If you want to select the id on the page and then populate the fields, guess you will need to use a "Text Field (always submits page when Enter pressed)" and then use an "On Submit" process to populate the items.
    If you are using an Automated Row Fetch, remember to select "Set memory Cache on Fetch" in that process.
    Hope this helps.

  • ADOBE PDF Variable text field

    Does any one know if there is a way to change the size of a text field on the layout depending the amount of data coming into the form?
    Thanks!

    Hi Otto,
    In the initialization tabb  I'm adding code to check hrp1001 PRIOX and if the priox is GE 90, I want to display 70-80 char string but if not I want to display nothing and I want the space in the form to skrink so the user does not see the empty gap in form.
    Does that help?
    JeffG

Maybe you are looking for