Using bean value in NLS text entry

Hi all,
Is there a way I can use the JHeadstart NLS function like
title="#{nls['HOME_PAGE_TITLE']}"
and include a bean value in the title
eg " Welcome #{jhsUser.userId} to my wonderful application".
I use JHS_TRANSLATIONS to store my text - if I enter the value as above, the jhsUser expression does not get rendered
Cheers,
Brent

Just after posting this message I saw that the exact same thing had been done in the page I had just generated !
So, the answer is to use this
text="#{nls['HOME_WELCOME_MSG: #{jhsUser.displayName}']}"Is there a way to inject this in through the JHeadstart application definition ? If I place the value in the Display Title property it further wraps the text with extra nls and {}.
Is my only option to create a custom template for grouTemplate.vm ?
Cheers,
Brent

Similar Messages

  • Using Value in a Text Entry Box for Calculation in a Variable

    I have a project where I ask the user to fill in their name in one entry box and their two-digit age in another text entry box.  Later in the project, I want to ask them to think back to when they were 6 years old and how they would describe themselves at that time.  (the project is on self-awareness).  To make this as personable as possible, I thought it would be neat to say. "(Name Variable), think back to about (Years Since 6)years ago, when you were just about 6 years old".  I am having trouble getting the "Years Since 6" variable to work, and would like to know if it is possible.
    I have set up the text entry box variable as "v_age"
    I have set up a variable as "v_age6" with a value of "6"
    I have set up the result variable as "v_result_age6"
    I have set up a standard action with a mathematical expression that reads "v_result_age6 = v_age - v_age6"
    The variable output does not show on the stage in project preview mode, and I think it's because there is only one variable with an assigned value in the equation.  The "v_age" variable does not have an assigned value because that is a text entry box.
    Is it possible to use a value typed in from a user as a variable to do math with?
    Thanks.

    Welcome to the forum,
    Each TEB has an associated variable, its generic name is the same as the TEB. But you'd better link your variable with the more significant name to the TEB. Have a look at this real old blog post, still valid (although maybe the screenshots are bit out of date):
    http://blog.lilybiri.com/timesaving-tip-create-associated-variable-for
    BTW: you didn't need to create an extra variable for the number 6. This action would have done as well:
        Expression  v_resultage6 = v_age - 6
    How do you trigger the action, by which event?
    http://blog.lilybiri.com/events-and-advanced-actions
    Lilybiri

  • How to use the value in a text cell?

    Hi everyone i am new to this forum. My family and i have been macusers for more than 10 years and for our business we own many macs. I am trying to build a stock list calculator and want to ask something.
    My B3 cell contains the text "50*70cm" and i want to see the value of 50*70 which is "3500" in the D3 cell. And when i change the B3 cell for example to "70*100cm" i want to see "7000" in the D3. Is there any function for this? Thank you.

    merthlm wrote:
    My B3 cell contains the text "50*70cm" and i want to see the value of 50*70 which is "3500" in the D3 cell. And when i change the B3 cell for example to "70*100cm" i want to see "7000" in the D3. Is there any function for this?
    IF: the operator used is ALWAYS x
    AND the unit used in ALWAYS cm
    AND there are NO spaces in the entry,
    THEN the following expression will work:
    =LEFT(B3,FIND("x",B3,)-1)*MID(B3,FIND("x",B3)+1,FIND("c",B3)-FIND("x",B3)-1)
    </PRE>
    If the unit is separated from the rest of the expression, change the single "c" to " " and the formula becomes independent of the unit.
    =LEFT(B3,FIND("x",B3,)-1)*MID(B3,FIND("x",B3)+1,FIND(" ",B3)-FIND("x",B3)-1)
    If you wish to use an asterisk as the multiplication sign, rather than an x, that seems to also work. Replace the three x characters with asterisks.
    While this formula works, my own preference would be to use separate columns for width and length, indicate the units only at the top of the columns, express all lengths in the same units, and enter only the numbers into the two columns. Your formula in D3 (or E3, when a new column was added before or after B) then would be
    =B*C
    and would be somewhat more forgiving of finger errors.
    Regards,
    Barry

  • Using null values to change text boxes

    Very simple question I believe.
    I have a form with rows of data.  All I want to do is say that if a given field in a row "description1" is not Null, then populate another field with a specified value.
    jA

    if (descriptionFieldName.rawValue != null){
      otherFieldName.rawValue = "value you want to give it";
    If there are multiple rows of this information you will have to add the row subform to the expression as well as an occurance number so it wil know which one you want . I will use i to indicate the occurance:
    if (Row(i).descriptionFieldName.rawValue != null){
       Row(i).otherFieldName.rawValue = "value you want tto give it";
    Paul

  • How to Populate a drop down list using the values of a text field?

    Hi,
    I wanted to Populate the items of my drop down list according to the value entered in the textfield above it?
    also the value of list remains consistent in other rows also where i am using the drop down list field.
    Please Try to help me in this query.
    Thanks in Advance!!!
    I am using Javascript in adobe version ES 8.2.

    Part II:
    If you have other items for your droplist(s) that are to appear in addition to the "variable language" entered by a user you can add that to the script.  For example in addition to the Party1 and Party2 name appearing in my droplist I also want the list to have an option for a user to select: The parties jointly.  I add this to the script:
    this.addItem(Party1.rawValue);
    this.addItem(Party2.rawValue);
    this.addItem ("The parties jointly");
    If you have trouble making it work, post a bit of your actual form requirements.

  • Applescript wont use a value from a text file as a number

    I want to perform math operations on a value (0.0092926025390625) that is stored in a text file, i have no problem getting it into the applescript but it says "applescript error cant make "0.0092926025390625" into a number" i know that i am inputting the correct value but it still wont work.
    This is just an example code but it does the same thing.
    set csv to choose file with prompt "select a file"
    read csv
    set csv to result
    set var1 to word 1 of paragraph 2 of csv
    set var1 to var1+1
    I get the error on the last line

    Sure...
    set var1 to word 1 of paragraph 2 of csv
    by definition, 'words' are string/text objects.
    set var1 to var1+1
    You can't add integers to strings. Sure, you see the string as being a series of digits, but they could just as easily be letters, symbols, or any other characters. How would you add 1 to "hello", for example?
    All is not lost, though. You just need to give AppleScript a hint:
    set var1 to (word 1 of paragraph 2 of csv) as number
    Now it will read the text and attempt to coerce it to a number. Once it's a number you can add 1 to it.

  • Text Entry Box - On losing focus?

    Hello fellow Captivators.  I'm being thick-headed, I guess, but I'm trying to figure out how I might use the new feature of Text Entry Boxes on the Advanced tab:
    I tried the setting as in the graphic, then when I preview, I click in the text entry box to give it focus, then I tab out of it (focus shifted to the playbar), but nothing happens.
    Is this how it's supposed to work?  And I'd love some suggestions about how to use this new feature.
    Thanks very much.
    Mister C.

    Thanks for your insight, Rick.  It is as you say.  If I type a character in the TEB first, then the on focus lost action on the Advanced tab takes place.
    But it doesn't quite make sense to me.  I'm doing a little testing.  The more I test, the more confused I get!!!
    I configured a TEB with a Submit button.  On success, I set it to go to the next slide.  On the Advanced tab, I configured the on focus lost action to go to the previous slide.  Then I tried it ---
    If I type the correct text and click the Submit button, I'd expect the go to next slide action to take place.  Instead, since the focus was lost when I clicked the Submit button, it went to the previous slide.  If I type the incorrect text and click the Submit button, I'd expect to get incorrect feedback.  Instead, again, since the focus was lost when I clicked the Submit button, it went to the previous slide.  If I type correct text and use my shortcut key of Enter, the first Enter does nothing, then a second Enter executes the on success action and goes to the next slide.  But, if I type incorrect text and use my shortcut key of Enter, it shows incorrect feedback --- I assume because focus is not lost just by pressing Enter.  But --- this doesn't make sense either, because the help file says "On Focus Lost Select the action that should be performed when the user presses Enter or Tab, or moves the pointer away from the object."   If I configure the shortcut key to be Tab instead of Enter, regardless of whether I type correct or incorrect text, the on focus lost action happens and I go to the previous slide.
    So it looks like the Advanced tab on focus lost is taking precedence over the submit button validation process.  That is, except for the Enter key shortcut.
    Does this behavior match with your experience?   Or does it even make any sense?

  • Bean value to amx:verbatim to make HTML dynamic ADF Mobile

    Hi guys,
    As using <amx:verbatim> to insert HTML directly in AMX page for ADF Mobile.
    <amx:verbatim id="v1">
          #{PolicySummaryBean.currentSVG1}
        <![CDATA[
    #{PolicySummaryBean.currentSVG2}
    ]]>
        </amx:verbatim>
    Btw I tried to using bean value as EL to produces HTML from bean and seems didn't work
    How to make it possible ?
    Thanks

    Hi,
    don't think it will execute EL this way. However,you should be able to execute JavaScript (what you should keep in mind though is that any DOM manipulation on AMX page rendering is a risk and can put you into trouble). What is the HTML you want to insert (and to what extend do you control the metadata tags added to the AMX page this way? Wouldn't it be possible to add the content using AMX components?
    Frank

  • Text Entry Box--Advanced Actions--Conditional Statement--Double quotes in literal input value

    Hello forums,
    I'm new to the forums (and Captivate in general), but I'm having a real problem carrying out a tutorial design and I think you may be my only hope.  Let me explain what I want to do and the difficulty that I'm having:
    I'm an instruction librarian at a university, and I'm designing an interactive tutorial for English 100 students to complete in order to become familiar with how to search the library catalog.  What I've done is taken a screenshot of the catalog search page, made it the background of a slide in Captivate (vers. 6), and placed a text entry box over the search bar in the screenshot.  The idea is for the students to conduct a simulated search by choosing one of three suggested search string formulations, and depending on the search string they enter, the tutorial will jump to a slide featuring a screenshot of what the actual search results would look like.  The idea is to emphasize the use of keywords over full-sentence phrases, and the use of double quotation marks to enclose multi-word search terms.
    So I've set the action for the TEB to "Execute Advanced Actions" and then created some IF/THEN statements in the "Advanced Actions" pop-up window (with action type set to 'conditional'). The script is such that if the student enters the first search option (how does sleep affect college students) in the TEB, the tutorial jumps to 1 slide, if they enter the second option (college students AND sleep), featuring a Boolean operator (AND), the tutorial jumps to a 2nd slide, and if they enter the third option ("college students" AND sleep) with the double quotes around "college students" and the Boolean operator, the tutorial should jump to a 3rd slide.  This action script works fine for the first two input options, but I can't make it work for the third search option.
    I think that it has something to do with the fact that the third input option features double quote marks, and this seems to throw off the script (I tried a quote-less input value for the third IF/THEN just to make sure that it would work jumping to the 3rd slide and it did), and I'm wondering if anyone has any suggestions as to how I can get around this issue.  Again, I need it to work so that if the student enters "college students" AND sleep, with the quote marks and the Boolean operator, the tutorial will jump to a slide showing the search results if those search terms were used in a real search of the catalog.
    I'd be extremely grateful for any help that anyone here can give me, we've been trying to make our online tutorials more engaging and interactive (and therefore more interesting), and I think this would be a great way to teach students about using quotes in their catalog searches.
    Thank you for your time and consideration.
    Andrew Wilk
    College Library
    UW-Madison

    The tutorial is for a "how to use catalog searching" instruction in an undergraduate library session.  We use boolean operators (AND, OR, NOT) to combine search terms, ex. to search for books about the sleeping habits of college students, I would enter "college students AND sleep."  Because "college students" is a multi-word phrase to describe one concept, I need to put quotation marks around the phrase to prevent the catalog from searching for the individual words separately, so the most correct search becomes ["college students" AND sleep] with quotation marks around only "college students," a user-typed "AND," and the word "sleep" (no q-marks).
    A colleague of mine worked out a pretty cool (if complicated) solution that I'll share if anyone is interested.  Since the q-marks where the problem, we've set it up so that the TEB validates the response for the search string with q-marks around "college students." If they enter it correctly, the tutorial jumps to the corresponding slide. The attempt # is set to 1, and if the user fails to enter the validated phrase (they misspell or use one of the other response options) then the TEB is set to run an Advanced Actions Script in which the other two options are scripted in IF/THEN statements that cause, when the term is entered correctly, the tutorial to jump to their corresponding slides. We've created another tab of IF/THEN statements that say that if the response is NOT equal to one of these response options, then the slide restarts (technically the slide "jumps" back to itself and starts over) and the user gets another chance to start the cycle over again.
    I know this is confusing (I had a really hard time explaining it in words), so if anyone is interested I could make a Jing video when I have some time.
    Thank you for all your suggestions

  • Tab key used as the shortcut key when using a text entry box

    When I use the Tab key as my shortcut key for a text entry box, it works fine in preview mode but does not work in the web browser preview mode.  I have tried to understand how I can take an existing project that is built for web browser application and make the tab key work.  The only thing I have been able to make my text feild entry take me to the next slide is to have the user click Enter instead of Tab and that is not the typical way we move between fields in the real application.  So....simulations is not accurate.  Can you give me step-by-step instructions on how to correct this problem in an already existing project?

    I think that you need to disable "Seamless Tabbing" in your file for it to work when published.
    You need to edit the HTML file that launches your course manually.
    Open your HTML file in notepad or equivalent
    Between the <object> </object> tags add:
    <param name="SeamlessTabbing" value="false">
    Save the HTML file again
    /Michael
    Click here to visit the www.captivate4.com blog

  • Text entry box actions based on value

    Hi there..
    I am currently working on a software simulator where users search for orders by typing an order number in a search field... In Captivate I have created a Text Entry box with "submit" button, what I am trying to achieve in is if the user type specific value (numbers) and click "submit" button it will take them to a specific slide in the project BUT if they type difference value (in the same text entry box) and click "submit" button it will take them to different slide in the project ?
    hope I have explained the question clearly.. btw I am using Captivate v5
    thanks

    OK, you know how to add the correct entries. Set attempts to infinite, and create this conditional action to trigger by Success for the TEB:
    I created a user variable to associate with the TEB instead of the generic one, it is labeled v_order.  I labeled the slides to jump to as well, makes it easier to use in an advanced action. Screenshots are from CP8, so will look bit different for you, but what you hneed is the same.

  • How to use bean write in  struts html:text tag

    hi,
    i'm new to struts concepts.here i'm trying to write a value in html struts tag using <bean:write>
    my current tag is
    <html:text property="empname" value='<bean:write name="employee" property="empid">' />
    but it gives same tag in the text box.how i can solve this.

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • Using text entry Box or Text are button

    Hi,
    How do I do these?
    using text entry box or text area widget.
    to describe:
    in my first slide I have text entry boxes for
        1. User name
         2. name of superior
         3. email of the superior
    let say: 1. refer to varialbe V_UserN
                 2. refer to V_sup
                 3. refer to V_emailS
    next slide would be a video
    next slide would be a text entry or a text area..this is where the user writes anything
         Text entry box with submit button
    What I want from this text entry box is..if the user doesnt write anything, upone clicking the submit button, the interaction wouldbe "please write a review on the text area"..if the user write something the something, the submit button will execute continue.
    how do I do this?
    next slide would be a text entry box or a text area..wherein the user write something based on question (this is not a quiz slide). The message would be sent to the superiors email. how do I do this?
    hope you can help me.
    Thanks

    To check if the user didn't write anything you'll have to compare the value of the associated variable of that TEB or Text Area with a user variable v_null. You have to create that user variable and just leave it empty.
    Have a look at my blog post:
    Where is Null?
    You'll have to create the custom question slide with standard objects. There is an mail widget included with Captivate, but didn't try out if you can insert the value of a variable as an email address.
    Lilybiri

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • Can I use the value returned from a Text Function in another Formula?

    I'm writing a report in Hyperion System 9 BI + Financial Reporting Studio version 9.2. I have 2 grids in my report.
    Grid1 Column A is set up as a text function using the function type - <<GetCell("Grid2", 1, a, 1)>>. I would like to use the values returned from this text function in Column A (Grid 1) in a formula in Column B (Grid 1).
    Is it possible to use the values returned in Column A of the text function in another formula? My report does not seem to recognize Column A as numerical values, even though the values to be returned are numerical.
    If so, how do I recognize the values in Column A Grid 1 as numerical values and not text?
    Thanks for any help you can offer!

    Hi Edson,
    Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
    You can use a macro similar to the following:
    IF
      CALC_ERROR( )
      = 'X'
          DO SOMETHING HERE
    ENDIF
    Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
    data: g_flg_calc_error type /SAPAPO/FLAG.
    * SAP will pass g_flg_calc_error variable to all macro
    * functions. When SAP calls a macro function, it does
    * something like this.
    call function '/SAPAPO/MACRO_FUNCTION_HERE'
            exporting
              plob_values      = i_s_adv_plob_values
              sdp_book         = g_c_advf_sdp_book
              sdp_view         = g_c_advf_sdp_view
            tables
              cols_index       = i_t_cols
              value_tab        = l_t_value_tab
            changing
              f_calc_error     = g_flg_calc_error
    As you can see, the g_flg_calc_error variable
    is passed in the "changing" part of the call. The macro  function being called can then use the f_calc_error
    variable to change the value of the global
    g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error.  The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
    Hope this helps in clearing things out

Maybe you are looking for

  • How to deploy the skins in ADF ?

    Hi All, I am using JDeveloper 11.1.1.4 My Scenario is I have Project A with some CSS(skins) and bounded task flows.I deploy as ADF Library JAR  . Now I attach the Project A Jar to Project B.I can access the bounded task flows but the CSS(skins) style

  • Where is the TouchUp Reading Order Tool in Adobe Acrobat X

    Hi, Our company just switched to Adobe Acrobat X and I'm having issues with some of the tools. In the old adobe acrobat I was able to use the TouchUp Reading Order Tool; does that tool still exist in X? I've tried the Edit Object tool but it's not wo

  • WM - LX04 Capacity used per Storage Type

    Hi, When I run LX04, for one Storage type I don't receive number and % of bins occupied. If you can help me on it. Thanks Pascal. Message was edited by: Pascal FRECINAUX

  • Network settings not sticking?

    Noob (Win convert) question, I think. Leopard 10.5 with DHCP enabled on my home and work networks. All settings from the DHCP servers come across and are correct in the Network prefernces. But, when I open the Network preferences panel and select Adv

  • Help! WHAT is wrong with my iPod?

    When I try and turn on my iPod you see the Apple logo and then it jumps to a gray folder with an exclamation mark...under it, it says www.apple.com/support/ipod. I installed the disc it came with and did all the troubleshooting but nothing. Any ideas