Display filename in text field

Hi, A simple question; how can I insert the pdf filename (without the file path) as a read only value in a text field. As this is not available as a Runtime property is there a script for this?
Thanks!
Sam

In the initialize event for the text field, add the following client-side JavaScript:
this.rawValue = event.target.documentFileName;
Note, when you preview the PDF in Designer you will see an odd file name like _13fs18f3v9eeb3qs.pdf. When the PDF is opened in Reader or Acrobat you will see the real file name.

Similar Messages

  • How to get data from list of values (LOV) to be displayed in a text field ?

    Hi guys,
    I am very new to Oracle APEX so please spare me if it is a silly question. How can I get the selected values from a set of list of values (LOV) displayed in a text field (or text area or so) ? Fox example, in my form I create 4 items: STATE, COUNTY, STREET, ZIPCODE and all of them are LOV (list of values). I also create 2 buttons (ADD & REMOVE). Then I create a test field (or text area name SELECTED RECORD). Now here is what I want to do with my form:
    When I set the values for all 4 fields, I will click on the ADD button then I want those values be displayed in the text field.
    For example, if the selected values are:
    STATE = Alabama
    COUNTY = Abbeville
    STREET= 1 Street
    ZIPCODE = 36310
    And the ADD button is pressed. Then in the text field I want it displays like this:
    Alabama,Abbeville,1 Street,36310
    If I choose other values and click ADD again, a new line will be added into the text fields (text area). If I click the REMOVE button, then it will clear those two line in the text field.
    Would it be possible to do it? Any help will be greatly appreciated. Thanks in advance.

    If you can live with the page being submitted and refreshed, make your ADD button do a submit with a request value of ADD and make your REMOVE button do a submit with a request value of REMOVE.
    Then create two computations (one firing with a condition of Request = ADD and the other firing with a condition of Request = REMOVE).
    In the ADD one, concatenate the values together into the text area (most likely a PL/SQL computation wiill be what you want). In the REMOVE one, set it to null with a PL/SQL computation.
    If you want it done without submitting the page, make the buttons each do a redirect to a URL but instead you will have to write two short javascript functions in the page HTML header to manipulate the field values. Each button would call each javascript function in an onclick event.

  • Single or multiple check box values displayed in a text field

    My apologies, this may be a duplicate discussion.
    I'm using the following script to display the values of check boxes in a text field.  I would like the word "and" to separate the values if two check boxes are selected. If more than two boxes are selected I want the values to be separated by a comma and then the last value be separated by "and".  Example of two check boxes selected:  A and B.  Example of two or more: A, B, C, and D.  Can this be done?
    form1.page1.page1SF.programs::calculate - (JavaScript, client)
    //displays the values of check boxes named programCB
    var aChkBx = [];
    var vChecks = programCB.all;
    for (var a=0; a<vChecks.length;a++){
    if(!vChecks.item(a).isNull) {
    aChkBx.push(vChecks.item(a).rawValue);
    this.rawValue = aChkBx.join(", ");

    My apologies, this may be a duplicate discussion.
    I'm using the following script to display the values of check boxes in a text field.  I would like the word "and" to separate the values if two check boxes are selected. If more than two boxes are selected I want the values to be separated by a comma and then the last value be separated by "and".  Example of two check boxes selected:  A and B.  Example of two or more: A, B, C, and D.  Can this be done?
    form1.page1.page1SF.programs::calculate - (JavaScript, client)
    //displays the values of check boxes named programCB
    var aChkBx = [];
    var vChecks = programCB.all;
    for (var a=0; a<vChecks.length;a++){
    if(!vChecks.item(a).isNull) {
    aChkBx.push(vChecks.item(a).rawValue);
    this.rawValue = aChkBx.join(", ");

  • Need help displaying data in text field... Help?

    i have this code:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import com.adobe.serialization.json.JSON;
    var loader:URLLoader = new URLLoader(new URLRequest("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=ScottMitchell"));
    loader.addEventListener(Event.COMPLETE, loadComplete);
    function loadComplete(e:Event):void {
        processData(e.target.data);
    function processData(data:String):void {
        var tweets:Array = JSON.decode(data) as Array;
        trace(tweets[0].text);
    It works, in the output it tells me the tweets.
    but i need it to be displyed on the app, i need to no how to do this, someone pointed me in the direction of using a item renderer extended from sprite?
    But really all i need to do is display it in a text field, all i want to do is display the data.
    Can anyone help???
    I know this is probably simple and i did try to figure this out on my own, but had no luck.
    All help is appreciated.
    Many thanks in advance.

    you can always use an array if there's no pattern to your positions:
    var positionA:Array=[ [100,20], [2,222], [55,2], [201,111], [78,23] ];
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import com.adobe.serialization.json.JSON;
    var loader:URLLoader = new URLLoader(new URLRequest("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=ScottMitchell"));
    loader.addEventListener(Event.COMPLETE, loadComplete);
    function loadComplete(e:Event):void {
        processData(e.target.data);
    function processData(data:String):void {
        var tweets:Array = JSON.decode(data) as Array;
    for(var i:int=0;i<5;i++){
    var tf:TextField=new TextField();
    addChild(tf);
    tf.multiline=true;
    tf.width=300;
    tf.text =   tweets[i].text;
    tf.autoSize="left";
    tf.x=positionA[i][0];
    tf.y=positionA[i][1];
    nextY+=tf.height;

  • Image not displaying with HTML text field

    I am trying to display am image within
    flash using CS3.
    I have a text field with the following code.
    feedback.htmlText = "<img src='Logo_small.png'</img>"
    nothing displays. The image and flash document are at the same level, so that is why I am using a relative link. Do I need to use a full (absolute) link to the image?

    That's not properly coded html...
    feedback.htmlText = "<img src='Logo_small.png' />";
    image tags do not have a closing tag and you didn't close the opening tag if they did, so it would still fail.

  • Getting System.out statements to be displayed in a text field

    Hi,
    I'm trying to direct the system.out.println stream to a text field in Swing so that when any system.out.println statemetns are executed the text field will display them as well. I would imagine there has to be some kind of event listener. Any ideas?

    look here

  • HTML links won't display in Dynamic Text Field

    I am loading external text files in dynamic text fields on my
    webage. These texts contain html links (<a href="page.html"
    target="_blank">Click Here</a> and I have "render as HTML"
    on and "selectable" off in my dynamic text field. Also, I am
    loading a CSS file. Not only do I not have a hand cursor, but I do
    not even have any of the text from that piece of html code down.
    What is going on with this? Please respond asap, as I have been
    struggling with this for a day now. Here is the Actionscript for
    loading the CSS:
    var flash_css = new TextField.StyleSheet();
    flash_css.load("styles.css");
    flash_css.onLoad = function(success:Boolean) {
    if (success) {
    zloc_txt.styleSheet = flash_css;
    } else {
    trace("Error loading CSS file.");
    var zloc_lv:LoadVars = new LoadVars();
    zloc_lv.load("zloc.txt");
    zloc_lv.onLoad = function(success:Boolean) {
    if (success) {
    zloc_txt.text = this.content;
    } else {
    trace("unable to load text file.");
    zloc_txt.html = true;
    zloc_txt.editable = false;
    _global.styles.TextArea.setStyle("backgroundColor" ,
    "transparent");
    _global.styles.TextArea.setStyle("border styles" , "solid");
    Here is a sample of the text file code:
    &content=<span class="headline">Northwest Arkansas
    Locations</span>
    121 Main St.
    Russellville, AK 77801
    (626) 111-1111<br />
    <html><a href="
    http://www.mapquest.com"
    target="_blank">Click Here for Driving
    Directions</a></html><br />
    Thanks for the help,
    Chuck

    The error is here:
    zloc_txt.text = this.content;
    Even if you rendered the textfield as HTML, you still need to
    tell flash that the variable you are inserting is HTML. Therefore
    you need to use the htmlText property.
    zloc_txt.htmlText = this.content;

  • How do you make the button to be displayed beside the text field?

    I need help on doing this for a company. As of above subject.

    In the intern's defense, that documentation isn't what I would call a "quick read." It's virtually >impossible to assimilate all the voodoo in one gulp. And the whole branches, buttons, items and >layout stuff is pretty frustrating. I'm just getting started, and I can sympathize with the tone of >voice. I couldn't disagree more......
    In my experience, a prerequisite of learning any computer language or system is reading the associated documentation. If you're the sort of person who likes to just dive into writing code without understanding the fundamental basics of how the language/system works then you're going to encounter lots of problems no matter whether you're using Apex, Java, Perl etc.
    Nobody is saying that you should spend days and days reading the documentation as though you were preparing for an exam, however if you don't take the time to learn some of the basic concepts then the only person who is going to suffer is you (and also perhaps the users of your system!).
    If you feel the documentation is too big for you to take in in one sitting, then break it into chunks. Set yourself a few little mini-projects to do, with each one using a different piece of functionality (for example reports, branches, collections etc).
    The more you put into learning (and using) Apex the more you will get out of it.

  • How to display date in a text field when a calendar is clicked

    hi
    I have a button i placed a calendar image in that button.when i click that button it displaying a calendar,when i click that calendar it is displaying the specific date .
    what i want is,when i click the calendar the specific date must display in a text field.
    please help me.
    thanks in advance

    Hi Arch,
    Go to the following link and check JCalendar API (needs to create a login for downloading JAR)
    [JCalendar API @ dev.java.net|https://jcalendar.dev.java.net/]
    it is a nice JCalendar with lot of options. Also it is working. You can download the JAR file and use it in ur program.
    From this component, you can read out the Date value and then set the text of JTextFiled using this value.
    or go for another implementation
    [Another JCalendar|http://www.gimlisys.com/articles-jdatechooser.html]
    Sunil

  • How to display a text field if yes selected in radio button

    Does anyone know how to hide/show a text field based upon a
    radio button selection? What I want to do is ask a question with
    yes or no as radio buttons. Then, if the user selects "YES" I want
    to display a required text field. If the user click no, there isn't
    a need for the text field.

    Try this...
    <html>
    <head>
    </head>
    <script>
    function ShowField(){document.MyForm.MyField.style.display =
    "inline";}
    </script>
    <body>
    <form name="MyForm">
    <input type="radio" name="MyCheckBox"
    onClick="ShowField()">
    <input type="text" style="display: none"
    name="MyField">
    </form>
    </body>
    </html>

  • To display text field with more than 1000 length in ALV

    Hi Friends,
           I need to display material long text field which is more than 1000 length in ALV or Object oriented ALV.
    Please help me to resolve the issue.
    Regards,
    Jaya.

    Hi,
    U mean to say in a single cell of ALV ??
    It is not possible in ALV .. As per OSS note 857823
    Below is the reason for same.. I think you should to split in number of columns.
    Summary
    Symptom
    Entries in cells of the type CHAR or string are truncated after 128 characters in the SAP GUI.
    Other terms
    ALV Grid Control (cl_gui_alv_grid), function module (Full-screen)
    Grid (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
    Reason and Prerequisites
    The data table that is sent to the front end only allows character values with the length 128.
    Solution
    This is the standard system behavior and cannot be changed.

  • How to display a record count in a text field?

    I am trying to return a record count of a query and place that count in a text field on my search page in APEX. I have that text field defined under Items on the search page. How do I get a query record count to display in my text field?
    Thanks,
    John
    Edited by: user7381760 on Jan 22, 2009 3:47 PM

    Hi Dan,
    Thank you for your reply and yes I was able to select "Source Type" and "SQL Query". The SQL expression I used was:
    SELECT COUNT(ID) FROM master_table;
    This worked great to count the total number of records from the master_table. However what I am trying to do is to get a record count each time I complete a search from my search page. I have input fields on this page and a GO button which executes the query. The SQL query is location in one place under Regions/Display Point. My display field on my search page is named P16_COUNT2 and I was trying to make this work inside the main query code. I tryed something like this, COUNT(ID) INTO :P16_COUNT2, to pass the record count each time I execute the GO botton to P16_COUNT2 field. This I could not get to work. Any ideas how to proceed?
    Regards,
    John

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • How to display multple line text in a single cell in ALV?

    Hi all,
    I have 'Material Detailed Description' field in my ALV report, and it's taken from a multiple line text table. Is there any way so I can get this whole text to fit in a single ALV cell (not in single, but multiple line, as in original text data)?
    Thank you.

    Hi
    If you want you can display this long text field in ALV but the allignment of the ALV not looks good. so generally we won't display them in the output,
    instead, in the interactive list write the code to call that MM03 transaction, and the user can see that text in the transaction when ever double clicked on that MATERIAL field.
    Reward points for useful Answers
    Regards
    Anji

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

Maybe you are looking for