Storing comment in a text field

Hello everyone. Hope you are all well.
Have a bit or of a problem.
I have imported and XML file and using the code below i am
able to store comments against a particular node.
//istener object for tree
var lo:Object = new Object();//a custom object called "lo" is
created.
lo.change = function(evtObj:Object):Void{
var itm:Object = mytree.getSelectedItem();
if(itm.savedComment != undefined)
newcomment.text = itm.savedComment;
else
newcomment.text = "";
mytree.addEventListener("change",lo);//everytime the tree
component generates a change event
//from the user selecting a different node the listener code
runs.
//listener object for submit button
var lo2:Object = new Object();
lo2.click = function(evtObj:Object):Void{
var itm:Object = mytree.getSelectedItem();
itm.savedComment = newcomment.text;
addCommentbtn.addEventListener("click",lo2);
All i need now is that whenever the user clicks on a button
("viewComment") ALL the comments already submitted are presented in
a dynamic text field.
ANy help is much appreciated. Thanks.

This method works for a Text Field but can you text wrap and expand to fit the height of a cell that is a Drop-down List. The Expand to fit check box on the Layout palette is greyed out for all my Drop-down boxes. I have also tried using the following JavaScript:
var newHeight = xfa.layout.h(DropDownList, "in");
Textbox.h = newHeight + "in";
but it doesn't work. Any suggestions?

Similar Messages

  • Can't access a value stored in a form text field

    I created a small test page to try and understand how a piece of javascript works, well actually it's not working. All I'm trying to do is display the value entered in a text field in a form and it's failing with 
    SCRIPT5007: Unable to get value of the property 'value': object is null or undefined 
    temp.php, line 39 character 1
    The line it's failing on is this
    x = document.getElementById("otherChoice").value;
    The page can be seen here www.hollisterairshow.com/temp.php
    I just don't understand why it thinks the text field is undefined when it clearly is. I'm using DW CS4 and IE9.
    Thanks for any pointers you might have.
    Tony

    Thank you so much, I've been struggling with this for almost a week now.
    Just to complete the answer, I had to assign an ID to the text field and also to the "Other" button so that the JS could access both when it moved the value from the text field to the Button which was the original problem I was trying to solve.
    Thanks again for the assistance, much appreciated.
    Tony

  • Storing Cost Centres as Text Fields

    I have a problem at a client with cost centres. They have cost centres that are numeric some of which are prefixed with leading zeroes, some not-for example 12345 and 0012345. These are two distinct cost centres, but due to the formatting on the KOSTL field SAP tries to store both as 0000012345. This means that one of the cost centre creates will reject. Is there any way of storing these cost centres as text within KOSTL, so that both can be stored.
    Thanks

    >
    ARINSO International wrote:
    > Thanks Rob,
    >
    > This is something that we have considered already however there are other elements that are effected by this so we are still looking for other options.
    >
    > Thanks
    I don't think that there are any other options.  Unless you want to try modding the SAP standard to remove the KOSTL conversion exit (only kidding - don't do this).

  • Search and Replace values in the text field before values are stored to DB

    Hi,
    In my application there is a question - text area and answer - text field. Problem is, some answers are stored with the single quotes to the DB and I have a problem while retrieving it from the DB. I need to replace the 1 single quotes with 2 single quotes. The values are stored to the DB when the submit button is clicked.
    So I am using the following javascript code:
    italics
    <script type="text/javascript">
    function test()
    var str="&P2_S1.";
    document.write(escape(str));
    </script>
    italics
    I need to call this javascript function, when the submit button is clicked but BEFORE the values are stored to the DB. How can i get this done?
    Please let me know.

    Hi,
    Thanks for the reply.
    Yeah I planned to drop the Javascript idea.
    Now, I am using the PL/SQL code. This is what I am planning to do.
    When the user enters any word like this, Test's, this single quote should be replaced by some special character, #@@#, - what is the PL/SQL code for this?
    Right now my PL/SQL code is:
    begin
    update test set S1=:P2_S1 where name=:APP_USER;
    end;
    so the replacing part should come somewhere before the update statement.... how can I do it?
    from the DB when the values are retrieved, I use the following code:
    select REPLACE(s1,'''','') from test where NAME=:APP_USER; // this works fine.
    Please help me with the replace of the single quote before the update process...

  • WHy is the cursor jumping to wrong position (mainly back to position 1 in the text field) as I try to post comments to peoples posts on Facebook?

    I love FIrefox browser and prefer to use it on all my devices, PC, Smart Tv, Phone, Tablet etc. In recent times Iv'e had problems though, everytime I try to comment on a facebook post with each key stroke the cursor jumps back to the beginning of the text field and by the time I finish typing I look up and find jibberish, yesterday I upgraded this RKM Mk902 Android device that I am typing on now unfortunately using Chrome from Anroid 4.2.2 to android 4.4.2 Kit-Kat and thought I would no longer have that problem but the issue is still there. I also have discovered I'm having similar problems with FireFox on my Cube U39GT tablet. As I spend more time on Facebook than any other website I have to find a solution. I thought it may of been one of the addons that i use causing the problems such as Phony but I still get the issue without the addons and after a clean install. Please help me sort out this problem so I can once more use FireFox on my Android devices.

    I found this, it seems that there are a few issues in Android as well with the wrong placement for the cursor when you type: [https://github.com/RobinHerbots/jquery.inputmask/issues/465] but since it is only happening in facebook, this is odd.
    What this means is that they are working on fixing specific issues like this and I am not sure when this will be fixed.
    Does this happen with both keyboards that are offered in the Android Settings?

  • Process order- Need a free text field to make comments

    Hi Gurus, when ever the production scheduler or the user opens the process order, he wants to make some notes/comments on the order itself (cor2 screen- header level). please advise is there any free text field in cor2 so that we can use for this purpose or can we make some settings to get that type of free fields. Please advise.

    Dear Raju,
    In T.Code COR2,after enterting into the change mode of process order - header - general data,next to the order no,you can find
    the long text entering option where in you can record the information in long text and save the data.
    Check and revert back.
    Regards
    Mangalraj.S

  • Have a form trying to edit.  Has a bunch of check boxes but also text fields.  I can move the fields and make them larger but I can't edit or move the text above the fields.  Like it says "Enter comments Below" and then there is a text field for them to e

    It looks like this:
    A. What can be done to improve performance?
    B.  What can be done by assessor to help performance?
    C. Comments?
    Issue is the text field below these items is not big enough.  When I make it bigger, like in "A" it gets bigger but then overlaps the text in "B" and I can't move the text.  Someone else created this form and I have no idea what A, B and C are but they are not Text Fields.  They are just static text of some sort and I can't do anything with it.

    Hi,
    Try making the subform that contains your fields flowed, this will allow them to not overlap, but you will probably have to add some margins (or some 'spacer' subforms) to get the appearance you had.
    Regards
    Bruce

  • Text Field and Checkboxes

    Ok... i wish i can show my form without  letting everyone have axx to it.
    But anyway, ive searched and i think i found part of the answer but i am still confused.  http://forums.adobe.com/message/2033382#2033382
    I have a form created completely. It has radio fields, text fields and checkboxes.  I have two problems
    One when ppl are typing in the text field area, it seems to lend in with the question, so if not paying attn, u wont know that they answered a question.
    Currently i have the stuff set at Myriad Pro  size 10.. Thats what i used to type comments and what not.
    But when the end user flls out the form, i want it to at least be in bold or something.. Or maybe Times new roman Or something different from the question font itself.
    Two.. in checkboxes, the default is X. Thats very light.  I need that to be noticeable... So either make em a bod X or  a way to increase the size of the tick without increasing the size of the box itself.. I just tried to use the STAR..And its bold enuf, but its small. It would be better if the star was a lil bigger.
    Currently i think i have 150 checkboxes and about 50 text area and fields.
    I thought about making the text thing rich format, but they cant do that for every field...  id rather tdo that by default in the back end of the form itself.
    I hope im not sounding confusinf

    i know the square and circle are a bit ugly - but there is no chance you'll miss them
    alternatively try adjusting the size a bit under -size you can take a standard checkboxes size from 10 to 12 without increasing its area for example - select the checkbox-objects-field-size - change to 12 eg - adds a bit of weight
    i use squares when i need visual weigh -
    for the text - might be worth having a test at setting input field values with a baseline shift -- thats basically make text bigger or smaller than, you guessed it, baseline -- this from the livecycle scripting reference
    TextField1.font.baselineShift = "+5pt"; should do it for example --
    scripting reference follows --- good luck
    ""baselineShift
    Specifies a positive measurement that shifts a font up from the baseline or a negative measurement that
    shifts a font down from the baseline.
    Syntax
    Reference_Syntax.baselineShift = "0in | measurement"
    Type Values
    String ● fit (default)
    The application scales the image proportionally to the maximum size of the container’s
    content region.
    ● none
    The application scales the image to the size of entire container’s content region. This may
    result in different scale values being applied to the image's X and Y coordinates.
    ● actual
    The image is rendered using the dimensions stored in the image content. The extent of the
    container’s region does not affect the sizing of the image.
    ● width
    The application scales the image proportionally to the width of the container’s content
    region. The image might be taller or shorter than the content region.
    ● height
    The application scales the image proportionally to the height of the container’s content
    region. The image might be wider or narrower than the content region.
    Model Object
    Form Model image
    Adobe LiveCycle Designer ES Scripting Properties
    LiveCycle Designer ES Scripting Reference before 156
    Values
    Applies to
    Version
    XFA 2.1
    Examples
    JavaScript
    TextField1.font.baselineShift = "-5pt";
    FormCalc
    TextField1.font.baselineShift = "-5pt"

  • How to provide text formatting options to user from a text field

    Hi,
    My requirement is - in the interactive form, a comments field needs to be provided where user should be able to enter text with formatting options like
    Headers
    indentations
    bold/italic
    bullet points and numbers
    Once user enters the formatted texts in a text field, data needs to be displayed/printed in the same format. Could you help me on how to provide these formatting options to the user for a particular text field?
    I understand that once I define the text field with format XHTML (with RTF), user formatting can be captured and displayed in the same way. But I am not sure on how to provide the formatting options for the text field.
    Thank you,
    Madhu

    Hi,
    if you select a text field for Rich Text and the press Ctrl + E you'll get a bar for all available text formatting options in Acrobat/Reader.

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • Text field not showing record set options

    I entered the following php code to a text field in a form:
    <p>
          <label for="date">Select Available Date</label>
          <select name="date" class="text" id="date">
            <option value="0" selected="selected">select your preferred travel date</option>
                <?php while ($row_rsDep = mysql_fetch_assoc($rsDep)) {
                      echo '<option>' . date('d.m.Y',strtotime($row_rsDep['Start_Date_Eur'])) . ' - ' . date('d.m.Y',strtotime($row_rsDep['End_Date_Del'])) . '-' . $row_rsDep['Itinerary_Code'] . '</option>';
              ?>       
          </select>
        </p>
    In the text field it shows only the option=0 "select your preferred travel date" and does not show the rest of the options as available from the database.
    Any idea what is wrong with my code?
    Thanks,
    zabberwan

    I do have it showing in the sidebar showing as a repeating region. I commented it out and entered your code, but this time it shows nothing at all, not even an error!
    The problem may have to do with "VIEWS" as I am working partly with Views on the external server. The server guys are having problems allowing Views. They did allow it for my account, but somehow this is not working. So I update my database leaving out the 3 tables created as views out of a total of 8. On the contrary on the local server the database is working fine, so that may not be the problem after all.
    I had got it work a fortnight back, but lost it as I had to redo a few things with the forms it is in. On the sidebar it is working fine otherwise as a repeating region and showing all the dates of all itineraries. Only it's not working in the form, where it shows the preselected string (select your preferred travel date), but not the rest of the options.
    About changing the email, one has to change the whole ID  and profile etc. and then you can't log into your own account with the same user name, you have to have a different one, so that your own thread is no longer your own. What a pile of goons at the wheels! And what a disappointment with otherwise such a great bunch of forums.. I'll now have to contact the staff and would like them wipe out all my ID's and Profiles at Adobe and make a new one. It's such a rotten mess. This thing even ruined my ID at Adobe Browser Lab.
    I suppose we'll leave it for Mr. Nobody to fix it, like so many other things especially around Christmas!
    zabberwan

  • Text Fields Not Showing in Design or Live View

    Hello Everyone,
    I have run into a problem trying to create a simple contact form through Dreamweaver CS6.  I have two text fields for Name & Email, and 1 text area for Comments.  The issue I am running into is that the text fields are not showing in Design or Live view.  I have set-up all variables required for the server for the form to work... but that should not have any effect on the text field showing...  I tried uploading my contact page with the same result of no text fields showing...
    What is really laughable is that the "text area" I placed in my form for Comments shows up in Design & Live view just fine.  I am thinking that I am missing something, but just do not know what exactly.  The form is styled through CSS.
    Here is the form code:
         <div id="CRDForm">
           <form action="http://www.sweetformimi.com/formmail/formmail.php" method="post" enctype="application/x-www-form-urlencoded" name="contact" target="_self" id="contact">
        <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
        <input type="hidden" name="recipients" value="[email protected]" />
        <input type="hidden" name="subject" value="Contact Form" />
             <label><p>Your Full Name
               <input name="Name" type="text" id="Name" size="40" /></p>
             </label>
             <label><p>Email
             <input name="email" type="text" accesskey="2" tabindex="2" title="Email" value="Email"></p>
             </label>
             <label>Comments<br />
             <textarea name="comments" cols="40" rows="10" accesskey="3" tabindex="3" title="Comments"></textarea>
             </label>
             <input name="submit" type="submit" accesskey="4" tabindex="4" title="submit" value="submit">
           </form>
        </div>
    Are there other variables I should be thinking about in the rest of my site?  I am using a fluid grid layout.  I have CSS for desktop, tablet, and phone devices.  I also have a primary CSS file that imports all three.  The sites structure was done by using <header>, <article>, <footer>, and of course <div> tags. 
    Has anyone ever experienced the "text fields" not showing up before? Is it a simple fix as reinstalling Dreamweaver CS6?  Finally, another thing I should mention is that I did have a previous version of Dreamweaver on my comp, which was CS3.  I did not uninstall that before installing the newer version.  I assumed (and I could be wrong here) that it would automatically replace the older version.
    I apoligize for it being long winded, but I am looking for some help on this issue...
    Thank You

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • Interactive Report - comparing user entered text field against a table field - the comparison is not finding a hit when it should.

    Example
    User enters 12345 in a pre filter ----- item_number field and this value exist in the table but its defined as VARCHAR2(2000).
    No match is found.  Do I need to define this text field in a certain way so that a match occurs - say in the element or source for P1_ITEM_NUMBER.
    How does a user entered value of 12345 match a value in the table of 12345 - defined as a varchar2(2000).
    Thanks  

    Why are you storing numbers in a varchar2?
    This is bad designing.  (storing date information in a varchar2 field is even worst.)
    99% of the time, when the number 12345 does not match the string '12345', it is because the value in the table is actually '                         12345'
    Run the following SQL command in the SQL workshop.  (you'll need to adjust to match schema,table,column names)
    select item_number, length( item_number) as string_length
    from schema_name.table_name
    If '12345' does not have a string_length of 5, then you have bad data in your database.

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • How can I expand text fields in my PDF file which I built in Forms Central?

    I'm working in Windows 7 and just created my first form in Forms Central. I have many text fields that I intended for the end user to be able to type as much information in them as necessary. I selected the "multiple lines of text" setting for each of these fields. I was told by someone at Adobe a while back when I was trying to decide on learning LiveCycle Designer or using the much more user-friendly Forms Central that the form fields would not automatically expand in the PDF form, but that I would be able to click or drag on the fields manually to expand them so that, ultimately, they could be printed with all the comments, for however many pages it would take. I've exported my Forms Central form to a PDF file. However, when I type multiple lines of text in the form fields I set up to be "unlimited," I cannot get the form fields to expand. What have I done wrong? Help, please!

    We are dealing with a similar situation.  We have downloaded LiveCycle and created the form, but as we knew would happen, the changes that come for the content of the form are causing us to max our trial version, and as soon as the form needs a change outside of the trial time period, we are faced with the next dilemma, as Adobe doesn't offer to purchase a single license at a reasonable rate.  The only reason we wanted LiveCycle was for the dynamic field feature.  I plead with you to consider offering that feature in Forms Central.  The other issue that we are having is that our users sometimes need to paste a table into the expandable text field.  Is that even possible in Live Cycle?  We don't at this point need the web-based functioning that Live Cycle offers. Thank you.

Maybe you are looking for

  • Need exit/badi to carry out new pricing(b) for SO coming from CRM...

    Hello Experts, We are transferring internet sales orders from CRM to R/3. Now, what I need to do is to trigger the 'carry out new pricing' for all the line items. Just like when we click the update button in the conditions tab and click on the 'carry

  • Active X and script

    This may sound like the rookie that I am but is there any way to set up a flash insert in Dreamweaver that eliminates the viewer from accepting active x in their browser. Great that one can use Flash inserts but not so good that the viewer may not ac

  • Set value between 2 regions

    I have a page with 2 regions in one region i have a normal html and one item of type select list displaying deptname return deptno in another region tabular form with addrow/delete etc buttons when i change the selectlist and click on addrow i want t

  • MDX to return last month of a quarter

    I have an MDX query where I need to return the last month of a quarter going back 2 years or 8 quarters.  I want the results to be like: Q1 2012   March 2012    ##### Q2 2012   June 2012      ##### Q4 2013   Dec 2013     ##### I"ve tried this:  TAIL(

  • To add new language

    Hi all, i am doing a jsp project.Its having i18n concept. already its having spanish and portugal languages. now my question is,if i want to add german language thru my application what should be done? (ie, i mean the UI and template for the newly ad