Inserting Text Variables into ID(CS2)

I have an old copy of Indesign CS2 that I use on an old Mac portable. (Waste not want not!)
I am trying to insert the 'modification date' into a document.
Unlike later versions there is no drop menu button to select this.
(many old software programs used to have key strokes without drop menu?)
It is possible to insert the 'modification date' or 'file name' into a ID CS2 document?
the ID CS2 Help menu is less than helpful.
Isvara78

Text variables was not a feature in CS2.
Bob

Similar Messages

  • [IDCS3 WIN Insert Text Variables into a document

    Hi all.
    Please, I need insert a Text Variable into a document.
    This document is not open in a window (I am importing it).
    Using ITextVariableSuite is not possible.
    Any idea, suggestion, way of work,...?
    Thanks in advance.
    Best regards,
    Juanma.

    When you are posting on both the mac and windows forum it would be nice to say so.
    When you are asking questions about the development of plugins, please do so on the appropriate forum: http://www.adobeforums.com/webx/.ee6b334/
    We are all end users here.

  • Hello,  I am trying to insert a variable into php statement.

    Hello, I am trying to insert a variable into this statement.
    Variable name is $stable
    <?php echo 'includes/   $stable  .php ';?>

    The above concatenation is my preferred method but the easiest to read is to use double quotes and curly braces:
    <?php echo "includes/{$stable}.php"; ?>
    There is a slight performance hit this way but on a small project it shouldn't make any difference.

  • Inserting user variables into MYSQL database using servlet

    I have a servlet that recieves user entered parameters from an html form and inserts them into a user table in MYSQL, or at least is supposed to. I can get it to update the table with specific values but not with the user variables. I know the single quote marks are for inserting specific values but without them it doesn't properly work.
    The parameters are parsed correctly into the variables, so I just can't figure out how to ge tthe variables into the database. Any help would be wonderful
    register.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
      <TITLE>Register</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <CENTER><IMG SRC="dvdti.jpg" ALIGN=middle >   </CENTER>
    <HR>
    <H1 ALIGN="CENTER">Please enter your registration details:</H1>
    <FORM ACTION="http://localhost:8080/examples/servlet/Assignment1.register">
      <BR>First Name: <input type="text" NAME="Ufirst_name"><BR>
      <BR>Last Name: <input TYPE="TEXT" NAME="Ulast_name"><BR>
      <BR>Address: <INPUT TYPE="text"  name="Uaddress"><BR>
      <BR>E-mail:     <INPUT TYPE="TEXT" NAME="Uemail"><BR
      <BR>Password: <INPUT TYPE="password" NAME="Upassword"><BR>
      <CENTER>
        <INPUT TYPE="SUBMIT" VALUE="Register">
      </CENTER>
    </FORM>
    </BODY>
    </HTML>
    register.java:
    package Assignment1;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    // Connects to a database to retrieve music data
    public class register extends HttpServlet {
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
          throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
    // Database connection code starts here
         Connection conn = null;
         // loading jdbc driver for mysql (help in mysql.jar file in classpath)
         try{
             Class.forName("com.mysql.jdbc.Driver").newInstance();
         } catch(Exception e) {
             System.out.println(e);
         // connecting to database
         try{
              // connection string for demos database, username demos, password demo-pass
             conn = DriverManager.getConnection
            ("jdbc:mysql://mudfoot.doc.stu.mmu.ac.uk:3306/roddiea?user=roddiea&password=");
              System.out.println("Connection to database successful.");
           catch(SQLException se) {
             System.out.println(se);
    // Create select statement and execute it
      try        { Statement stmt2 = conn.createStatement();
              // Get the regdetails from the reg form
               String Ufirst_name = request.getParameter("Ufirst_name");
               String Ulast_name = request.getParameter("Ulast_name");
               String Uaddress = request.getParameter("Uaddress");
               String Uemail = request.getParameter("Uemail");
                  String Upassword = request.getParameter("Upassword");
              stmt2.executeUpdate("INSERT INTO customer(first_name, last_name, address, email, password)" + "VALUES('Ufirst_name', 'Ulast_name', 'Uaddress', 'Uemail', 'Upassword')");
              System.out.println (stmt2);
              out.println(stmt2);
              out.println(Ufirst_name + Ulast_name + Uaddress + Uemail + Upassword);
        // close the html
        out.println("</BODY></HTML>");
              stmt2.close();
             conn.close();
         }catch(SQLException se) {
             System.out.println(se);
    }Message was edited by:
    Altered_Carbon
    Message was edited by:
    Altered_Carbon
    I also realise that this is a more MYSQL titled problem, but those forums look rubbish <_<

    Investigate PreparedStatement.
    Currently you're trying to insert a value "Ufirst_name" instead of the value of the variable called Ufirst_name.
    It's possible to do this (you could do something like this: "... '" + UfirstName + "' ...") but DEFINITELLY NOT RECOMMENDED. Instead use a prepared statement.
    D.

  • Insert Text Variable

    Hello,
    Need to set the content of a textFrame on a master page to "Current Page Number" a slash and then the missing item "Last Page Number" as found under Type -> Text Variables -> Insert Variable -> "Last Page Number";
    How do i add a text variable with scripting?
    ....parentTextFrames[0].contents = "^N/" + ?????;

    By coincidence, I just happen to be working on a script that inserts a text variable. The following also creates a text frame and a paragraph style, but you can see the relevant bit in the middle:
    var myDocument = app.documents.item(0);
    var myPage = app.activeWindow.activePage;
    myDocument.viewPreferences.horizontalMeasurementUnits =
    MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    var myTextFrame = myPage.textFrames.add({geometricBounds:[100, 100, 200, 400]});
    myTextFrame.insertionPoints.item(-1).contents = "Today's date:\r";
    myVariable = myDocument.textVariables.item("Modification Date");
    myTextFrame.insertionPoints.item(-1).textVariableInstances.add({associatedTextVariable:myV ariable});
    var myParagraphStyle = myDocument.paragraphStyles.item("Date");
    try {var myName = myParagraphStyle.name;}
    catch (myError){myParagraphStyle =
    myDocument.paragraphStyles.add({name:"Date"});}
    myParagraphStyle.appliedFont = "Arial";
    myParagraphStyle.pointSize = 24;
    myTextFrame.paragraphs.item(0).applyParagraphStyle(myParagraphStyle, true);
    myTextFrame.paragraphs.item(1).applyParagraphStyle(myParagraphStyle, true);
    You can be sure that the above is more clunky and verbose -- and less elegant -- than anything Peter writes, but it does work for me in CS3 and CS4.
    EDIT: 'associatedTextVariable' gets split by the word wrap of the forum software -- just make sure you remove any added breaks.

  • How to insert text data into temp tables....

    Dear All,
    I have one notepad with three columns, first column is segment1, second column is segment2 & third column is price list....
    and there is no delimiter and exact spaces..(i.e, zizak fomat)
    Ex:-
    xx yy 00009999
    kk mmmm 00009333
    Data is available like above example...So, I need to insert this data into one table.(2LAKSHS OF RECORDS AVAILABLE IN THAT NOTEPAD)
    So, Any can one help me, how to insert this kind of text data into temparory table...
    Regards
    Krishna
    Edited by: user12070109 on May 29, 2010 9:48 PM
    Edited by: user12070109 on May 29, 2010 9:49 PM

    Hello,
    What manu suggested this can be done through oracle forms.
    If as i read your last post you are using that in database it will not work in db. Try to use the same process in oracle forms will work by making some changes.
    And if you don't want to use forms then there is one way using SQL LOADER. It required control file to execute for uploading data.
    See the below link.
    http://www.orafaq.com/wiki/SQL*Loader_FAQ
    In this example its showing filename.csv you can use your file name like yourfilename.txt.
    So your control file will look like this...
    load data
    infile 'file_path\file_name.txt'
    into table table_name  -- use actual table name where you want to upload data
    fields terminated by " "  -- Here using spaces as you mentioned           
    (column1, column2, column3)  -- Here use the three column names of tableAnd after creating control file with the above code. You can call it in command prompt like this
    sqlldr username/password control=control_file_path\control_file_name.ctl log=log_file_path\log_file_name.log
    or
    sqlldr username/password@dbconnection control=control_file_path\control_file_name.ctl log=log_file_path\log_file_name.log
    Before doing this practice make sure SQLLDR.exe availabe in the machine where you have to execute. Otherwise you will have to install db client for using sqlldr.exe
    -Ammad

  • Why wont my buffered reader insert text files into my JTextPane?

    Hello,
    First off, I want to say that I am a java newbie. This is the first time I have ever worked with java, and only for about a month now. When I try running this, nothing gets inserted into my JTextPane, and I get a java.lang.NullPointerException error. Any idea of how to fix this?
    Thanks,
    Dave
    //Set up Browse Procedure Action
            else if (e.getActionCommand().equals("Browse Procedures")){ //On a pull down menu
                      fc = new JFileChooser();
                   int result=fc.showOpenDialog(this);
                   File file = null;
                        if(result==JFileChooser.APPROVE_OPTION){
                             file=fc.getSelectedFile();
                             statArea.append("Opening: " + file.getName() + "." + newline);
                        //statArea is a JTextArea
                        String record = null;
                        int recCount = 0;
                        try {
                             FileReader fr = new FileReader(file.getPath());
                             BufferedReader br = new BufferedReader(fr);
                             record = new String();
                   while ((record = br.readLine()) != null) {
                        recCount++;
                        textArea.replaceSelection(recCount + ": " + record);
                        textArea.replaceSelection(newline);
                   } //textArea is a JTextPane.  I know replaceSelection is not the right method, but
                   //I tried it anyways
                        } catch (IOException evt) {
                             System.out.println ("IOException error!");
                             evt.printStackTrace();
                        else {
                        statArea.append("Browse command cancelled by user." + newline);
                        statArea.setCaretPosition(statArea.getDocument().getLength());
                   }     

    Nevermind, problem solved

  • Cannot Get Text Variable to Read Metadata

    Hi,
    I am having an issue loading XMP Metadata into a text variable. I have tried the following procedure on two computers and no result (Windows 7, InDesign 5.0 and 5.5)
    Here is the basic procedure:
    1. Create a new InDesign Document.
    2. Navigate to FILE > FILE INFO
    3. When the XMP data appears, place the word "Test", “Test1”, “Test 2”, and “Test 3” in the Document Title, Author, Author Title, and Description fields and push OK. See Screenshot.
    4. Make a text box.
    5. Place the text insert cursor in the text box then go to the menu and open TYPE> TEXT VARIABLES > DEFINE.
    6. Once the dialog box opens, select NEW...
    7. Name the New Text Variable "Author" and select "METADATA CAPTION" for TYPE: and "AUTHOR" for METADATA: then push OK.
    8. Press the INSERT button to place the new "Author" text variable into the text box.
    Every time I get a <no intersecting link> indication. Can someone help me figure out what I’m doing wrong here?

    Thanks Steve, you are right on. Was hoping that the Metadata information could be absorbed into the file somehow like you can do in MS Word with the document properties for Title, Date, Revision ect. I now will change my plans and I will put the document information on the Title Page and cross-link it to my headers and footers.
    Thanks for the help.

  • How do I insert multiple values into different fields in a stored procedure

    I am writing a Stored Procedure where I select data from various queries, insert the results into a variable and then I insert the variables into final target table. This works fine when the queries return only one row. However I have some queries that return multiple rows and I am trying to insert them into different fields in the target table. My query is like
    SELECT DESCRIPTION, SUM(AMOUNT)
    INTO v_description, v_amount
    FROM SOURCE_TABLE
    GROUP BY DESCRIPTION;
    This returns values like
    Value A , 100
    Value B, 200
    Value C, 300
    The Target Table has fields for each of the above types e.g.
    VALUE_A, VALUE_B, VALUE_C
    I am inserting the data from a query like
    INSERT INTO TARGET_TABLE (VALUE_A, VALUE_B, VALUE_C)
    VALUES (...)
    How do I split out the values returned by the first query to insert into the Insert Statement? Or do I need to split the data in the statement that inserts into the variables?
    Thanks
    GB

    "Some of the amounts returned are negative so the MAX in the select statement returns 0 instead of the negative value. If I use MIN instead of MAX it returns the correct negative value. However I might not know when the amount is going to be positive or negative. Do you have any suggestions on how I can resolve this?"
    Perhaps something like this could be done in combination with the pivot queries above, although it seems cumbersome.
    SQL> with data as (
      2        select  0 a, 0 b,  0 c from dual   -- So column a has values {0, 1, 4},
      3  union select  1 a, 2 b, -3 c from dual   --    column b has values {0, 2, 5},
      4  union select  4 a, 5 b, -6 c from dual ) --    column c has values {0, -3, -6}.
      5  --
      6  select  ( case when max.a > 0 then max.a else min.a end) abs_max_a
      7  ,       ( case when max.b > 0 then max.b else min.b end) abs_max_b
      8  ,       ( case when max.c > 0 then max.c else min.c end) abs_max_c
      9  from    ( select  ( select max(a) from data ) a
    10            ,       ( select max(b) from data ) b
    11            ,       ( select max(c) from data ) c
    12            from      dual ) max
    13  ,       ( select  ( select min(a) from data ) a
    14            ,       ( select min(b) from data ) b
    15            ,       ( select min(c) from data ) c
    16            from      dual ) min
    17  /
    ABS_MAX_A  ABS_MAX_B  ABS_MAX_C
             4          5         -6
    SQL>

  • How can you add data from a variable into a column in a data flow?

    I need to populate a table with data from a variable. The data type of the variable is String. I'm running into issues doing it the way I am. I have variable
    User:VariableName = "Some moderately sized string of data"
    When I try to use a Derived Column Transformation Editor to insert the variable into the data flow as a new column, SSIS forces the Data Type to be Unicode String[DT_WSTR] and I can't change it. Additionally the length is 0 and I also can't change that.
    When I run the package it errors with a truncation error. If the length is 0 then that makes sense but then why can't I change it to something that makes more sense?
    What is the correct way to go about this?

    Use advanced editor to change data type and length.
    http://www.sureshjoshi.com/development/ssis-string-variables-in-derived-columns/

  • How to insert text in current Pdf?

    I try to insert text into current pdf i am getting unexepected error
        PDEContent pdeContent;
        AVDoc avDoc = AVAppGetActiveDoc();
        PDDoc pdDoc = AVDocGetPDDoc (avDoc);
        PDPage pdPage = PDDocAcquirePage(pdDoc,AVPageViewGetPageNum(AVDocGetPageView(AVAppGetActiveDoc())));
        pdeContent = PDPageAcquirePDEContent(pdPage, NULL);
        //Create a PDEText object
        PDEText pdeText = PDETextCreate();
      //  Create a DEGraphicState object and set its attributes
        ASFixedMatrix textMatrix;
        //Create an ASFixedMatrix object
        memset(&textMatrix, 0, sizeof(textMatrix)); /* Set the buffer size */
        textMatrix.a = Int16ToFixed(24); /* Set font width and height */
        textMatrix.d = Int16ToFixed(24); /* to 24 point size */
        textMatrix.h = Int16ToFixed(1*72); /* x,y coordinate on page */
        textMatrix.v = Int16ToFixed(2*72); /* in this case, 1" x 2" */
        PDEGraphicState gState;
        PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString(colour_space.c_str()));
        memset(&gState, 0, sizeof(PDEGraphicState));
        gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
        gState.miterLimit = fixedTen;
        gState.flatness = fixedOne;
        gState.lineWidth = fixedOne;
        PDSysFont sysFont;
        PDEFont pdeFont;
        PDEFontAttrs pdeFontAttrs;
        //Set the size of the PDSysFont and set its attributes
        memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
        pdeFontAttrs.name = ASAtomFromString("CourierStd");
        pdeFontAttrs.type = ASAtomFromString("Type1");
        //Get system font
        sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
        //Create a font that is used to draw text on a page
        pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
        char *chrNewFilePath = "Doc.pdf";
        ASText  asFilePath =  ASTextFromUnicode(reinterpret_cast <ASUTF16Val *> (chrNewFilePath), kUTF8);
        //Create a character pointer
        char *HelloWorldStr = "Hello There";
        //Create new text run
        PDETextAdd(pdeText, //Text container to add to
                   kPDETextRun, // kPDETextRun
                   0, // in
                   (unsigned char*)HelloWorldStr, // Text to add
                   strlen(HelloWorldStr),// Length of text
                   pdeFont, // Font to apply to text
                   &gState, //Address of PDEGraphicState object
                   sizeof(gState), //Size of graphic state to apply to text
                   NULL,
                   0,
                   &textMatrix, //Transformation matrix for text
                   NULL); //Stroke matrix
        ::free(chrNewFilePath);
        ASFileSys  asFileSys =  ASGetDefaultFileSysForPath(ASAtomFromString( "ASTextPath" ), asFilePath);
        ASPathName asNewPath =  ASFileSysCreatePathName(asFileSys,  ASAtomFromString( "ASTextPath" ), asFilePath, 0);
        PDDocSave(pdDoc, PDSaveFull , asNewPath , asFileSys, NULL, NULL);

    I changed that code to below mention code, when i was run the plugin and after close the acrobat it asking for save, but it doesn't show any text text
    ASFixedRect  cropBox;
        char  errorMsg[256];
        ASInt32  errorCode = 0;
        PDPageGetCropBox  (pdPage, &cropBox);
        // Initialize the font descriptor then create the font reference.
        // Because we're using one of the base 14 Type 1 fonts, we only
        // need to pass a small amount of information to PDEFontCreate().
        PDEFont  pdeFont =  NULL;
        PDEFontAttrs  pdeFontAttrs;
        memset(&pdeFontAttrs, 0,  sizeof (pdeFontAttrs));
        pdeFontAttrs.name  =  ASAtomFromString( "Courier" );
        pdeFontAttrs.type  =  ASAtomFromString( "Type1" );
        DURING
        // Create the font reference.
        pdeFont =  PDEFontCreate(&pdeFontAttrs, sizeof (pdeFontAttrs), 0, 255, 0, 0,  ASAtomNull, 0, 0, 0, 0);
        HANDLER
        ASGetErrorString  (ASGetExceptionErrorCode(), errorMsg, 256);
        AVAlertNote  (errorMsg);
        return   NULL;
        END_HANDLER
        PDEColorSpace  pdeColorSpace =  PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceGray" ));
        PDEGraphicState  gState;
        ASFixedMatrix  textMatrix;
        // The graphics state controls the various style properties of the text
        // including color, weight, and so forth.
        memset (&gState, 0,  sizeof (PDEGraphicState));
        gState.strokeColorSpec.space  = gState.fillColorSpec.space  = pdeColorSpace;
        gState.miterLimit  =  fixedTen;
        gState.flatness  =  fixedOne;
        gState.lineWidth  =  fixedOne;
        // Fill out the text matrix, which determines the point
        // size of the text and where it will is drawn on the page.
        memset (&textMatrix, 0,  sizeof (textMatrix));
        textMatrix.a  =  ASInt16ToFixed(12);
        textMatrix.d  =  ASInt16ToFixed(12);
        textMatrix.h  = cropBox.left  + (cropBox.right  - cropBox.left)/2 -  fixedSeventyTwo;
        textMatrix.v  = cropBox.top  - (cropBox.top  - cropBox.bottom)/2 -  fixedThirtyTwo;
        PDEText   volatile  pdeText =  NULL;
        DURING
        // Create a new PDEText element and add a kPDETextRun object to it.
        pdeText =  PDETextCreate();
        PDETextAdd  (pdeText,  kPDETextRun, 0, (Uns8  *) "This page intentionally blank" , 30,
                     pdeFont, &gState,  sizeof (gState),  NULL, 0, &textMatrix,  NULL);
        // Insert text element into page content.
        PDEContentAddElem  (pdeContent,  kPDEAfterLast, (PDEElement)pdeText);
        // Commit the changes to the PDEContent.
        PDPageSetPDEContent(pdPage, gExtensionID);
        // Advertise that we changed the contents so the viewer redraws the
        // page and other clients can re-acquire the page contents if needed.
        PDPageNotifyContentsDidChange  (pdPage);
        HANDLER
        // Store the error code.
        errorCode = ASGetExceptionErrorCode();
        END_HANDLER
        // Release any objects we may have created or acquired.
        // Note : PDERelease correctly handles NULL, so we don't
        // need to test for valid objects.
        PDERelease  ((PDEObject) pdeColorSpace);
        PDERelease  ((PDEObject) pdeFont);

  • How to read a whole text file into a pl/sql variable?

    Hi, I need to read an entire text file--which actually contains an email message extracted from a content management system-- into a variable in a pl/sql package, so I can insert some information from the database and then send the email. I want to read the whole text file in one shot, not just one line at a time. Shoud I use Utl_File.Get_Raw or is there another more appropriate way to do this?

    how to read a whole text file into a pl/sql variable?
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....

  • How do I insert a session variable into a record?

    I can’t figure out how to insert the value passed by a
    session variable into a record.
    I have a form I want to use to insert a record. I pass
    session variables to this page and want to insert one of them into
    the record. The session information is:
    session_start();
    $_SESSION['usename'] = $_POST['username'];
    $idvar = $_SESSION['id'];
    $_SESSION[‘id’] is the user_id that I want to
    insert into the record.
    I know $idvar is getting to the page with the form because I
    can echo it.
    The insert code looks like this:
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "register")) {
    $insertSQL = sprintf("INSERT INTO h_genres (user_id,
    username, contrib_to, Advertising, Annual_Reports, Leader_Content,
    Member_Content, Brochures) VALUES (%s, %s, %s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['user_id'], "int"),
    GetSQLValueString($_POST['username'], "text"),
    GetSQLValueString($_POST['contrib_to'], "text"),
    GetSQLValueString(isset($_POST['Advertising']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Annual_Reports']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Leader_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Member_Content']) ? "true" :
    "", "defined","'Y'","'N'"),
    GetSQLValueString(isset($_POST['Brochures']) ? "true" : "",
    "defined","'Y'","'N'"));
    mysql_select_db($database_hauw, $hauw);
    $Result1 = mysql_query($insertSQL, $hauw) or
    die(mysql_error());
    I have a hidden field for the user_id:
    <input name="user_id" type="hidden" id="user_id" />
    I think I need to get the value in $idvar into user_id but I
    don’t know how.
    Any help is appreciated.

    awsweb wrote:
    > I have a hidden field for the user_id:
    > <input name="user_id" type="hidden" id="user_id"
    />
    >
    > I think I need to get the value in $idvar into user_id
    but I don?t know how.
    <input name="user_id" type="hidden" id="user_id"
    value="<?php echo
    $idvar; ?>" />
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • 'Inserting' text into a Text Field on event trigger in a static form

    Sorry if this seems like a silly question, but I've been struggling with it for a bit and I'm new to Adobe/JavaScript.
    I am building a static form (it must be static), and I want to have text appear/disapear based on an event trigger (mouseclick). I tried creating a floating text object inside of a static text object, but I'm not sure how I can make the string value for this change based on the event trigger. The only advice in the Adobe help was purely regarding FormCalc, which I can't use as this must be a static form. I tried using this code in the <script>, but it obviously didn't work as it was written from FormCalc code versus JaveScript;
    TextField.rawvalue = variable.value;
    What do you suggest in terms of being able to script this, so my static form will work? Thanks a billion if you can help!
    PS: I'm using Adobe 9, LiveCycle ES 8.2
    PPS: Also tried inserting the following into my trigger script;
                        xfa.resolveNode("form1.subform.TestField").rawValue= "Please Work";
                        xfa.layout.relayout("form1.subform.TestField");
    It also did not work.

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

  • Problem inserting text with special Hungarian characters into MySQL database

    When I insert text into my MySQL db the special Hungarian
    characters (ő,ű) they change into "?".
    When I check the
    <cfoutput>#FORM.special_character#</cfoutput> it gives
    me the correct text, things go wrong just when writing it into the
    db. My hosting provider said the following: "please try to
    evidently specify "latin2" charset with "latin2_hungarian_ci"
    collation when performing any operations with tables. It is
    supported by the server but not used by default." At my former
    hosting provider I had no such problem. Anyway how could I do what
    my hosting provider has suggested. I read a PHP related article
    that said use "SET NAMES latin2". How could I do such thing in
    ColdFusion? Any suggestion? Besides I've tried to use UTF8 and
    Latin2 character encoding both on my pages and in the db but with
    not much success.
    I've also read a French language message here in this forum
    that suggested to use:
    <cfscript>
    setEncoding("form", "utf-8");
    setEncoding("url", "utf-8");
    </cfscript>
    <cfcontent type="text/html; charset=utf-8">
    I' ve changed the utf-8 to latin2 and even to iso-8859-2 but
    didn't help.
    Thanks, Aron

    I read that it would be the most straightforward way to do
    everything in UTF-8 because it handles well special characters so
    I've tried to set up a simple testing environment. Besides I use CF
    MX7 and my hosting provider creates the dsn for me so I think the
    db driver is JDBC but not sure.
    1.) In Dreamweaver I created a page with UTF-8 encoding set
    the Unicode Normalization Form to "C" and checked the include
    unicode signature (BOM) checkbox. This created a page with the meta
    tag: <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />. I've checked the HTTP header with an online
    utility at delorie.com and it gave me the following info:
    HTTP/1.1, Content-Type: text/html; charset=utf-8, Server:
    Microsoft-IIS/6.0
    2.) Then I put the following codes into the top of my page
    before everything:
    <cfprocessingdirective pageEncoding = "utf-8">
    <cfset setEncoding("URL", "utf-8")>
    <cfset setEncoding("FORM", "utf-8")>
    <cfcontent type="text/html; charset=utf-8">
    3.) I wrote some special Hungarian chars
    (<p>őű</p>) into the page and they displayed
    well all the time.
    4.) I've created a simple MySQL db (MySQL Community Edition
    5.0.27-community-nt) on my shared hosting server with phpMyAdmin
    with default charset of UTF-8 and choosing utf8_hungarian_ci as
    default collation. Then I creted a MyISAM table and the collation
    was automatically applied to my varchar field into wich I stored
    data with special chars. I've checked the properties of the MySQL
    server in MySQL-Front prog and found the following settings under
    the Variables tab: character_set_client: utf8,
    character_set_connection: utf8, character_set_database: latin1,
    character_set_results: utf8, character_set_server: latin1,
    character_set_system: utf8, collation_connection: utf8_general_ci,
    collation_database: latin1_swedish_ci, collation_server:
    latin1_swedish_ci.
    5.) I wrote a simple insert form into my page and tried it
    using both the content of the form field and a hardcoded string
    value and even tried to read back the value of the
    #FORM.special_char# variable. In each cases the special Hungarian
    chars changed to "q" or "p" letters.
    Can anybody see something wrong in the above mentioned or
    have an idea to test something else?
    I am thinking about to try this same page against a db on my
    other hosting providers MySQL server.
    Here is the to the form:
    http://209.85.117.174/pages/proba/chartest/utf8_1/form.cfm
    Thanks, Aron

Maybe you are looking for

  • How to delete the saved score in a game downloaded from app store for my macbook and restart the game from the beginning ? please help

    HOW to delete the saved score in a game downloaded from the app store to restart the game from the begining with fresh scores. i am unable to do so. please help

  • How do I reinstall Snow Leopard or???

    I have an old Mac Pro about 8 years old and want to set it up to watch Netflix only. We installed Yosemite and it's very slow and stalls a lot or when buffering on Netflix. I think we'd be better with the last version or one back. Can't remember all

  • No constructor in JFrame matches init (String)

    Hello, I am using Forte for Java 2.0 build 1160 to compile my Java code. Upon compilation I get the following error message: DemoShape.java [33:1] No constructor in JFrame matches <init>(String)         super("DemoShape Applet");         ^ 1 errorThe

  • Access database vs Tomcat 1.4.2.9

    Good afternoon I'm currently at my practical training and i'm trying te access a MS Access database with a Servlet. I've already done that in the past and there weren't any issues, so it should be a piece of cake. Unfortunately, i think there's an is

  • Aperture 3 -activate the software

    HELLO, I downloaded trial Aperture3 software, after that i bought through HK web shopAperture Trial - Upgrade Activation Key.After starting i wrote theAperture Trial - Upgrade Activation Key and the following screen asked for a serial number, i wrote