Inserting variables

I found out how to do this in RH HTML but it's RH for Word
that I need to insert variables. Is there a way to add variables in
RH for Word?
=================================
Is there a quick way to insert variables to be able to
dynamically change text while authoring in Word for RH HTML? I'm
used to FrameMaker and it is a simple process. When I read MS Word
Help I couldn't get a quick answer on how to insert variables. For
example, we want to use variables for company names, product
versions, etc. Any help is appreciated.
- Azi

Like this:
$workbook.worksheets.item("YourWorkSheet").cells.item($lastrow,1) = $name
$workbook.worksheets.item("YourWorkSheet").cells.item($lastrow,2) = $address
$workbook.worksheets.item("YourWorkSheet").cells.item($lastrow,3) = $phone
As I described in my initial response, $lastrow is the row, followed by the column number, separated by a comma.  Instead of incrementing the $lastrow variable, increment the column number to insert the data across a single row.
I hope this post has helped!

Similar Messages

  • Inserting variables into other variables

    I have several objects that have similar names, like slot1, slot2, slot3, etc. I also have a function that is supposed to do something to the first object, then the next, then the next, etc each time a button is pressed. Is it possible to insert variables into other variables? So say I have a variable called n that is increased each time the button is pressed. The function is then applied to slot"n" each time the button is pressed. How would I do this?

    use:
    var n:Number=1;
    function f(){
    // do something to parentmovieclip["slot"+n]
    n++
    p.s.  please mark this thread as answered, if you still can.

  • Inserting variables in RH for Word

    Is there a quick way to insert variables to be able to
    dynamically change text while authoring in Word for RH for Word?
    I'm used to FrameMaker and it is a simple process. When I read MS
    Word Help I couldn't get a quick answer on how to insert variables.
    For example, we want to use variables for company names, product
    versions, etc. Any help is appreciated.
    - Azi

    quote:
    Originally posted by:
    azi_us
    Is there a quick way to insert variables to be able to
    dynamically change text while authoring in Word for RH for Word?
    I'm used to FrameMaker and it is a simple process. When I read MS
    Word Help I couldn't get a quick answer on how to insert variables.
    For example, we want to use variables for company names, product
    versions, etc. Any help is appreciated.
    - Azi
    The way I do it is to use document properties. Assuming that
    it's Word 2003 or lower (not sure where it is in 2007) go to File
    -> Properties. There are a bunch of built-in properties, or you
    can create your own on the Custom tab.
    You can then use Insert -> Field. One of the fields that
    you can insert is Doc Property, which allows you to add the values
    that you've put in as document properties. When you select the
    document and hit [F9], the whole thing will update with the new
    field values.

  • Inserting variable text - partial filename

    Our filenames are in this format:
    12345_Something_Something.indd
    InDesign can insert the entire filename as a text variable.
    What we want is for it to only insert the first 5 numbers – everything before the underscore — as a text variable. It would need to change every time the template is saved with a new filename. I’m thinking it’s possible to write a Javascript extension to do this in InDesign. I just don’t know Javascript at all.
    1) Is this even possible?
    2) What resources are available to help me get this accomplished?
    3) What is considered reasonable compensation for this project?
    Thanks for your help!

    Sychronization works by redefining same-named styles, variables, etc. to all use the same definition as the source document, so for example you might have a variable named <header> which in one file was a running header (character style) type, in another a running header (character style), but based on a different character style, and in yet another document is would be based on last on page instead of first on page, or a similar situation. Synching would cause the variable to look for the same information across all docs.
    That said, it sounds like this might be useful for adding a book file name, but there is a subtle difference. In the case of a normal variable, the information it picks up must be in the document where the variable is located. A running header variable ont he first page of a file in a book, for example, cannot pick up the information from the last page of the previous file in the book. Variables are self-contained within the files.
    You COULD define a custom text variable, perhaps with the book filename, and add it to all the documents, but it will not automatically update if you change the name of the book file.

  • How to insert variable value using select statement - Oracle function

    Hi,
    I have a function which inserts record on basis of some condition
    INSERT INTO Case
    Case_ID,
    Case_Status,
    Closure_Code,
    Closure_Date
    SELECT newCaseID,
    caseStatus,
    Closure_Code,
    Closure_Date,
    FROM Case
    WHERE Case_ID = caseID
    Now i want new casestatus value in place of select statement caseStatus value. I have a variable m_caseStatus and i want to use the value of this variable in above select statement.
    how can i use this.
    thanks

    Hi,
    I have a function which inserts record on basis of some condition
    INSERT INTO Case
    Case_ID,
    Case_Status,
    Closure_Code,
    Closure_Date
    SELECT newCaseID,
    caseStatus,
    Closure_Code,
    Closure_Date,
    FROM Case
    WHERE Case_ID = caseID
    Now i want new casestatus value in place of select statement caseStatus value. I have a variable m_caseStatus and i want to use the value of this variable in above select statement.
    how can i use this. Do not select Case_Status from inner select, so null will be inserted then after inserting it update the case status with m_caseStatus.
    Regards.

  • Inserting variables into oracle

    how do you creat insert statements in oracle using variables? it won't accept this statement
    stmt.executeUpdate("INSERT into T_LINKMANAGER(LMID,LMNAME,LMURL,LMFLAG,LMHITS,LMCATEG) VALUES(ct,aname,aurl,'false',0,acat)");
    giving a column not allowed here error

    If you're new to this, you should ESPECIALLY learn to use bind variables.
    There are times when experts know not to use bind variables, but for 90-99% of all SQL, and 99.9% of all inserts, bind variables should be used.
    Bind variables are what grownup developers use. They:
    1) usually make your code run much faster in the long run, most definitely so on Oracle
    2) make your code more secure; search the web for "SQL injection" to see why
    3) often make your code easier to code; you don't have to worry about embedded single-quotes in your data breaking your SQL
    Where I work, when we interview for new Java developers, if they claim any JDBC knowledge at all, we ask them to write a sample. If they don't use bind variables, they drastically reduce their chances of getting the job.
    Back to your original query:
    1) when asking help in a forum it's ALWAYS better to cut and paste the full original error message than to paraphrase it; there are often clues that get omitted in a paraphase
    2) In your SQL:"INSERT into T_LINKMANAGER(LMID,LMNAME,LMURL,LMFLAG,LMHITS,LMCATEG) VALUES(ct,aname,aurl,'false',0,acat)"ct, aname, aurl, and acat are being interpreted as Oracle column names.
    If those are supposed to be literal values, you must write them as 'ct', etc.
    If those are Java String variables that you want to embed in your SQL, you need to do: "INSERT into T_LINKMANAGER(LMID,LMNAME,LMURL,LMFLAG,LMHITS,LMCATEG) VALUES('" +ct+"','" + aname + "','"  ...If there's ever ANY chance that your Java variables will ever have a ' (single-quote) character in them, then before the SQL statement is built, you have to escape the embedded ' (convert ' to '' (single-quote single-quote) ). To avoid this common headache, use bind variables.
    Actually, for heavily used code, building up a String with "+" is also bad; it generates excessive amounts of intermediate values that have to be garbage collected, thereby slowing your throughput. If you just have to use dynamically built SQL (you should use bind variables instead), then you should build the string in a StringBuffer and convert it to a String at execution.

  • Inserting variable data markers in tables on master pages

    I have a two-cell table on a verso master page that is styled and set to hold my <ChapterNumber> and <ChapterTitle>. A one-cell table is set on the recto master page to hold my <A_Head>.<br /><br />The problem is that I can't seem to insert the variables into the table cells. They work fine when inserted into standard text frames, but I can't see the markers on the master pages, nor does the data associated with the appropriate paragraph styles show up on the regular pages, as it does when I simply insert the variables into standard text frames.<br /><br />I tested the default variables that are installed with InDesign CS3, and they can be inserted into the table cells on the master pages and display on the regular pages. The variables that I defined work properly in a text frame, but not in a table.<br /><br />Is there an explanation for this? The cells have styles associated with them, but there's plenty of room in the cells for the variables. Any advice will be appreciated. Thanks!

    This is so weird. In my original file, I did everything that you did, and even when I flipped back through the pages, the information wasn't appearing in the appropriate cells
    (BTW, the chapter number actually goes next to the word "Chapter" in the green cell on the verso, and the A head actually goes in the white cell on the recto; chapter title will be in the white cell on the verso). The markers were showing up--thinly, as you pointed out--when I had originally inserted the markers, but the difference was that I did not see the results on the actual pages. Go figure. Everything looks fine now, and there were no problems with my variables.
    I have avoided using the default Chapter Number variable because it doesn't reflect the chapter number based on what the chapter number is in the text provided by the client. For example, I changed the chapter number on the chapter opener just now to 12, and the variable you inserted for the chapter number did not update; it stayed at 10, because that variable is based on the Document Chapter Numbering feature, not on text. When I use a running header variable based on the CN paragraph style I define, my chapter number variables are correct, and if the text changes, the change is picked up without having to go to the Pages panel. It's just a different way of doing things.
    Thanks for checking the file!

  • WAD / Insert Variable Screen into WAD

    Hi All,
    How can i insert the variable screen into my WAD?
    For example:
    First, when i executed the WAD i need to show (all together in the same page) the variable screen and below the table.
    Regards

    Hi Nicola
    I dont know of a way to display the variable screen in the wad however, an alternative is to use the Information Field web item and tick the variable visible check box in the web item parameters, untick the other 4 items if you only want the variables to display, this will display the current variable selections for the query, you can then have a link item or button that calls the OPEN_VARIABLE_DIALOG command, this will link back to the variable screen but also maintatin the current filters and layout of the query.
    Hope this helps
    Josh

  • Insert variable with keyboard shortcut

    The only keyboard shortcut I can find to insert a variable is CTRL-0. This colors the left side
    of the status bar and gives you the entire list of user variables with -- with "Not Applicable" as the
    highlighted choice. It appears that you have to traverse the list with the mouse pointer and
    click on the desired variable.
    This is just as cumbersome as calling up the variables pod and double clicking on the
    variable you want.
    Is there a way to define a keyboard shortcut to insert a particular variable?
    Cheers,
    JP

    I just updated to 10.0.2 and the behavior is the same.
    I can't tell you the version number I had been running because I couldn't find an "About" button.
    I thought that FM checked for updates when I installed it from a 10.0 CD. Applications typically check
    for available updates when you install and register and let you choose whether to update.
    So Adobe doesn't inform you of new FM updates either?
    I really appreciate the help I get from this forum. Even though the update installation didn't
    say I had to reboot, I'll try that and let you know whether that changes the behavior.
    I'd reboot and check right now except that I have a gazillion things open while I work on
    the client's document.
    But it's not a life-or-death situation. I may even retain my sanity while trying to figure this out...
    Thanks again,
    JP

  • How to insert variable for table name in Select statement ?

    I am creating a stored procedure which will take two table names as IN parameters. Within the procedures I would like to use the parameters in the following manner;
         SELECT count(*)
         INTO v_target_cnt
         FROM TargetTable;
    TargetTable is one of the parameters passed in. When I do this however it does not recognize the parameter. I have tried assigning the parameter to a local variable and using the variable, with not luck.
    Any help....thanks

    Null,
    What you are describing is called a LEXICAL parameter, which is allowed (preceded by an ampersand) in sql but not in pl/sql because it would not be possible to compile it. That is why you need to use Andrew's suggestion to make the sql dynamic. In older versions you would need to use DBMS_SQL which is horrible and now thankfully redundant.

  • Inserting variables to table by "execute immediate' statement

    EXECUTE IMMEDIATE 'INSERT INTO aTABLETKA_HISTORY
    (update_id,
    update_type,
    update_date,
    old_db_version,
    description,
    patch_number)
    values
    (' || m_id(v_rec) || ',
    '||m_package(v_rec)||',
    ''07-NOV-07'',
    ''snezi'',
    '||m_desc(v_rec)||',
    '||m_new(v_rec)||')';
    ORA-00917: missing comma
    ORA-06512: at line 142
    i cannot solve this,. can anybody help me?
    i have simillar insert:
    EXECUTE IMMEDIATE 'INSERT INTO ab_table_VERSION(property,version) values (''wiz_datalink'',' || my_version || ')';
    and this one statement work correctly

    Do NOT use "execute immediate". What is the reason for trying it this way?
    If the column update_date is of type date, then you have a bug in the code, as you are trying to insert a string. If it is not a date data type, then you have a bug, because it is not of type date.
    What is the outcome of:
    INSERT INTO aTABLETKA_HISTORY (update_id, update_type, update_date,
          old_db_version, description, patch_number)
       values (m_id(v_rec), m_package(v_rec), to_date('07-NOV-2007', 'dd-MON-yyyy'),
          snezi, m_desc(v_rec), m_new(v_rec) )
    /

  • Insert variables from script into HTTPService url

    I'm trying to insert values from script into a HTTPService
    url. How do I go about doing this? I tried the code below, but it
    gives an error. Can anybody help?
    <mx:HTTPService
    id="httpCall"
    url="
    http://api.service.com/user/{userName}/list?count={apiCount}&offset={(apiOffset)}&sort={ap iSort}&appkey=1234"
    resultFormat="e4x"
    result="callHandler(event);"
    fault="httpFaultHandler(event);"
    showBusyCursor="true"
    />
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var userName:String = "myName";
    private var apiCount:uint = 10;
    private var apiOffset:uint = 0;
    private var apiSort:String = "desc";

    Set the HTTPService properties in an AS function.
    <mx:HTTPService id="httpCall" resultFormat="e4x" ...
    result="callHandler(event);" ...../>
    private function getUserData():void
    var sURL:String = "
    http://api.service.com/user/"
    _ userName + "/list:;
    var oRequest:Object = {count:apiCount,offset:apiOffset,
    sort:apiSort, appkey:"1234" }
    httpCall.url = sURL;
    httpCall.send(oRequest);
    Tracy

  • FM9: Any way to auto-close the insert-variable window?

    Is there any way to have the FM9 variable window automatically close after one selects a variable using the Enter key? I'm finding it cumbersome after calling it up via key commands to have to pick up the mouse and click somewhere just to close the window, or "fly" back into the side panel.

    after youve called the contact and it opens with their name again just tap cancel on top right of screen and it puts you back to the first person in your contacts list.
    its the only way ive found out how to close the cotacts name.

  • I'm not seeing "Chapter Name" under "Type", "Text Variable", "Insert Variable". Is it gone?

    Running Header isn't the same as Chapter Name. I'm designing a book in CS6 - Has Chapter Name been deleted in CS6? Have I set up my doc wrong? Help! Thanks,
    Lisa

    Attachments don't work here. You have to embed images using the camera icon onthe web page like this:
    In all probability, the presenter in your tutorial is using a Running Header typ variable and is slecting a style named Chapter Name. Running Header variables pick up text based on styles, either a character style or a paragraph style, so if the chapter name has a unique paragraph style assigned, you would pick that style from the list inthe define variable dialog and the variable will pick up text with that style assigned -- your chapter names.

  • Table title text not wrapping on 2nd page after inserting variable

    When I add the variable (continued) to a table title, it increased the length of the sentence on the second page.  The text doesn't wrap, it just gets cut off.  Any suggestions?

    Unless someone else has found some magic trick... You are kind of stuck here: Either keep your table heading short enough to have room for the continuation variable, or make sure the text flows into the second line all the time.
    It is apparently so that a repeated table heading has the same geometry as the original, first heading. [I don’t like it, but I kind of understand that limitation.]
    - Michael

Maybe you are looking for

  • Multiple reason code in payment advice

    We have requirement to put multiple reason code at the time of cash application which we can do manually via f-28 and via payment advice F-28 is working fine but payment advice is not Steps Booked AR invoice of $1000 Create payment advice of $1000 wi

  • Matlab.. something to be with X11???  help!!!! this is frustrating

    Hi, I just installed a new software called Matalab (I don't know if you are familiar with it, is a math solver using user-friendly programming software). The installation was completed successfully, but then when the software tried to connect to the

  • Dreamweaver8 help using layers and Flash8

    I have placed a "layer" on my site and then placed a Flash element iside of it. I saved the project as a .dwt and when I open the page everything works and look great. Next I made a new page "from template" and when I view the new page the flash elem

  • Intelligent duplication removal

    I've imported thousands of duplicate songs/files, and can sort them by conventional methods. However, determining the highest-quality file seems to be a manual process.  I can't determine if or how to sort by Bit Rate, Sample Rate or File Size. Is th

  • I can't locate iPhoto file storage

    I have iPhoto from that iLive '11 series. It fails to open. I can't find the folders for originals and modified files on my hard drive. I am so scared that I've lost them! TimeMachine isn't helping restore the application. I have the Lion OS.