ADF 11g: Change Text Value within af:dialog

Any guidance much appreciated: I'm new to ADF 11g and java scripting...
I have a popup containing a dialog inside my af:document. I want to be able to dynamically change the text message being displayed inside the dialog at runtime prior to showing the popup. I have added an af:panelGroupLayout inside the dialog component, with an af:outputText component inside that.
<af:popup id="nexusAlertPopup">
<af:dialog id="nexusAlert"
inlineStyle="vertical-align:top; text-align:left; font-size:small;"
type="ok" closeIconVisible="false" title="Change Me"
affirmativeTextAndAccessKey="Continue">
<af:panelGroupLayout id="nexusAlertPanelGroup">
<af:outputText id="nexusAlertText"/>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
When I look at the ADF javascript API, I cannot find a set method to change the value of the outputText in my JS Function. Can you use a normal setAttribute method on any ADF object?
Regards,
Mario

Branislav Nemec wrote:
Is there a particular reason you need to change the title in JS function?Thanks for your reply Branislav.
To make a short story long: I am trying to create a dynamic popup dialog on an ADF page template. We have Oracle Form Modules which are being clipped inside this center panel of the pages using this template and the communication between the ADF application and our Forms application happens through JS on the client. What I need to do is on the Forms side, override all forms alerts with a call to a JS Function which would popup a synchronous ADF dialog and return the result back to Forms in a Global variable. So the text of the alert needs to be dynamically passed through and this needs to preferably happen on the client side without a roundtrip to the ADF server. If it is possible. Also, it is not the TITLE I am concerned about as there is a setTitle() method in the AdfRichDialog class.
Hope this sheds some light on the issue...

Similar Messages

  • How do I change text attributes within one text box in Motion 3?

    I am trying to change text attributes within one text box in Motion 3, but am only able to change the font/size for the entire box. Is there a way to change the attributes to individual lines of text within a text box without creating an entirely new one or using the "Lower Third" text effect?
    How do I create (two different) multiple colors, fonts, bold, italic, underline in one text box within Final Cut Studio Motion (FCP, FCS)

    Thank you! You saved me hours of tinkering around with multiple text boxes. It seemed like it should be something pretty elementary. It didn't help that I am not familiar with proper terminology, so thank you for defining glyph.
    Cheers,
    Owfownugi

  • FR Change text value based on another member

    Hi,
    I using FR 11.1.1.3
    I'm trying to change the value of a data cell based on the value of the time dimension, so below is what I'm trying to do
    Change value to Quarter1 - 2012 if current point of view for time2 is Quarter1 and Current Year is 2012
    Change value to Quarter2 - Current Year if current point of view for time is Quarter2
    and so on
    Quarter1 and Current Year are coming from different dimensions.
    Please let me know if this is possible to do in FR
    I can easily do this in IR.
    Thanks

    Hi VS
    No problem it is always a bit open to interpretation when someone posts in these forums :-)
    So it sounds like you want to use Text based headings rather than data. Have you looked at the text functions rather than tring to do this with formulas. i think you might have more success using text rows and referencing the rows containing the member names, e.g. if you have two dimensions Period and Year (both in rows) then make use of the following function:
    Generic syntax:
    <<MemberName("GridName", Row/Col/Page, "DimName")>>
    Example:
    <<MemberName("Grid1)", 2, "Period")>> - <<MemberName("Grid1)", 2, "Year")>>
    should return the name of the member from the Period dimension from row 2 and the member of the Year dimension from row 2, e.g. Qtr1 - FY12
    There is a practically identical function MemberAlias too if it is the alias you want rather than the member name. Have a look in FR studio by inserting a text row / column and then trying to insert function. There are also 2 that you can use that are no longer show in FR studio or the studio user guide but do work (or at least did up until v11.1.1.x) and that is POVMember/POVName (can't remember now!) and POVAlias used to get the member/alias from the POV for a partcular dimension, syntax for that is:
    <<POVAlias("Grid1", "DimName")>>
    Hope this helps
    Stuart

  • Changing Text format within a Pop Up Menu

    I'm trying to apply the characters "1/1" in a Pop Up Menu, but it is coming up as the date January 1, 2009. Anyone know how to change the characters to "text" from the default "date"?

    Fractions just don't work correctly, they come up as dates or decimal equivalents. So using a lower case "L" won't solve the more general problem.
    However, I noticed that if you type "1/3" as "1 / 3" you'll get "0.33333333" instead of a date. And it gets more interesting. When you pick it from the pop up list, the list shows it as "0.3333333" but it will display in the cell as 1/3. If you had typed 0.333333333 in the list, it will display in the cell as 0.33333333. Strange.
    If it isn't too obtrusive and this is a text entry, not a number, you could type your fractions with a single quote on both sides: '1/3'

  • BUG: Changing text colours within a text block: Keyboard shortcuts problem (Photoshop CS5)

    In earlier versions of Photoshop, I could double click a Paragraph Text to edit it, then select individual words and change their colours using the Ctrl+Backspace and Alt-Backspace keyboard shortcuts (to change them to either Background or Foreground colours).
    In PhotoShop CS5, Alt+Backspace is OK, but Ctrl-Backspace deletes the highlighted word! Not good. I believe this is a bug, can it be fixed to revert to the old behaviour?
    (Photoshop CS5 Extended x64 on Windows 7 x64)

    I fully understand what you're saying, and while I'm all for compatibility, user interface change cannot be accomplished without, well, change.
    Imagine, for example, that thousands of people could have reported that they couldn't delete the prior word with Ctrl-Backspace while using the T tool in Photoshop, while they could with every other application on their systems.  Imagine that none of the users like you reported that they were happy with things the way they already are.
    Perhaps the best approach in a situation like this would have been for Adobe to add a configuration option somewhere to allow individual users to make the choice.  But EVEN THEN there's a push from the Marketing types to simplify the number of choices given to customers, probably because doing so reduces support costs (imagine, for example, someone brainlessly setting it to your flavor of Ctrl-Backspace, then calling support to complain that they can't delete the prior word as they have always been able to do).  There are a lot of requests on this forum that read like "I must have changed a setting somewhere, but I'll be darned if I can find it."
    Microsoft and Adobe have both moved lately in this direction (reducing choices and configurability), reportedly to "reduce the cognitive load" on presumably ever less intelligent users, with ill effects in many cases.  Unfortunately, "you can have it any way you like so long as it's our way" seems to be the way of the future.
    -Noel

  • ADF 11g- Selecting Maximum value of a field on Commit Button

    Hi
    I am trying to assign a value to a field on form by selecting max(id)+1 from database table on commit button.
    It assign the value to field but try to commit before assigning value.
    code is like this:-
    public String commandButton2_action() {                  ////////////////a commit button.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    commandButton3_action();////////////Retrieve the maximum value from database.
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    please do guide. what to do.
    Regards
    M Niaz

    Thanks,
    I know, that's why i am try to put this on save button instead on any other.
    But this is not an issue whether to use sequence or max()+1. I can use sequence instead but even then i have to get the nextvalue on form before commit.
    and i have to put that on commit button.
    Commit but try to commit the form before getting anything from DB.
    M Niaz

  • Dynamicly change SelectOneRadio value in java script function -- Please hel

    Hello, I need to change SelectOneRadio value within a javascript function. But it doesn't seem to work for me. Can someone tall me what I did wrong or how to get this?
    Thanks a lot!
    I have :
    <h:panelGrid Columns="3">
    <h:selectOneRadio id="myRadio", value="#{myBean.radioOption}" />
         <f:selectItems value="#{myBean.radioOptionList}" />
    </h:selectOneRadio>
    </h:panelGrid>
    <script >
    function needToChangeRadioValue(choice){
    if ( choice == something ) { 
         document.getElementById("myForm:myRadio").value="1"; //doesn't really work
         document.getElementById("myForm:myRadio").immediate="true";
    } else if ( choice == somethingelse ) {
         document.getElementById("myForm:myRadio").value="2"; //doesn't really work
         document.getElementById("myForm:myRadio").immediate="true";
    } else {
         document.getElementById("myForm:myRadio").value="3"; //doesn't really work
         document.getElementById("myForm:myRadio").immediate="true";
    </script>
    -- java --
    ArrayList radioOptionList;
    public ArrayList getRadioOptionList(){
         radioOptionList = new ArrayList();
         radioOptionList.put("1","Option1");
         radioOptionList.put("2","Option2");
         radioOptionList.put("3","Option3");
         return radioOptionList;
    }

    Thank you for the quick response!
    Does it work for you? I tryed getElementsByName("myform:myRadio")[1].value="1"; No errors but the screen doesn't show that radio button is "on". I also created another function to go through the form object and try to set the attribute but no luck. From screen, I still don't see the option is selected(or on). I have :
    <script .... >
    function checkRadioButton(){
    var allElem = document.forms['myform'].elements;
    for ( i=0 ; i< allElem.length; i++ ){
    alert("element name = " + allElem.name ); // I see myform:myRadio three times
    alert("element id = " + allElem[i].id ) // when name="myform:myRadio, id is null/empty
    alert("element value = "+ allElem[i].value ); // when name="myform:myRadio, value = 1, 2, 3 respectively
    if ( allElem[i].name == 'myform.myRadio' ) {
         var attributes = allElem[i].attributes;
    for ( j =0; j < attributes.length; j++) {
              if ( attributes[j].name == 'CHECKED' ) { // I found CHECKED is one of selectOneRadio's attributes
                   if ( i == 1) {
         attributes[j].value = true; // It still doesn't work. I didn't see that option1 get selected/on.
    What I am trying to do is common, I think !!?? Really appreciate your help.

  • Multiple Joins between 2 folders - when change condition value

    Hi
    I have created a report that joins 3 tables. The join between 2 of them gave me the option of two possible joins. I selected one and the report runs OK.
    There is a condition in the report that uses one of the fields from one of the tables that has multiple join paths.
    If I change the value of the condition from e.g. field = 04 to field = 05, then I get the error 'multiple join paths between folders'.
    If I disable the multiple join path detection it runs ok and the query matches the original one.
    However, do you know why I would get this error by just changing the value within an existing condition where the join path was already selected?
    Thanks
    GB

    Hi,
    Everytime when you change the value of the column, discoverer re-generates the query and hence asks for the Multiple joins.
    You can disable this option in Discoverer Desktop.
    Go to Tools > Options > Advanced > Uncheck "Multilpe Join Path Detection".
    Cheers!
    Yogini

  • Issue using JS to change the value of an output text component dynamically

    I am developing an application and I need to change the output text component value at run time when the mouse moves over a field. I am using javascript and then using UIComponent.setproperty to change the value.
    I am not able to do this and am getting nothing.
    Kindly let me know what am I doing wrong
    I am using ADF 11g (10th November release).
    Regards,
    Deepak

    Hi i'm doing the same thing with an input text
    here is my code
    jspx:
    <af:inputText value="#{bindings.MiddleName.inputValue}"
    label="#{bindings.MiddleName.hints.label}"
    required="#{bindings.MiddleName.hints.mandatory}"
    columns="#{bindings.MiddleName.hints.displayWidth}"
    maximumLength="#{bindings.MiddleName.hints.precision}"
    shortDesc="#{bindings.MiddleName.hints.tooltip}"
    id="it4" autoSubmit="true">
    <f:validator binding="#{bindings.MiddleName.validator}"/>
    <af:clientListener type="valueChange" method="mo_UpperCase"/>
    </af:inputText>
    js:
    function mo_UpperCase(event){
    var inputField = event.getSource();
    if (event.getNewValue().toUpperCase()!=event.getNewValue())
    inputField.setValue(event.getNewValue().toUpperCase());
    In my case i change the input text to upercase when the value is changing
    I hope it works with output text also,
    change my examples clientlistener type from valueChange to mouseOver
    If you have more than one component and you need to pass parameters check this thread also:
    bug at af:clientAttribute 11.1.1.2.0
    Tilemahos

  • Magic Mouse changes the values in dialog boxes

    When working in Photoshop and saving files, I noticed that a sideways swipe on the Magic Mouse will change the values in dialog boxes. Unfortunately, it's a little too sensitive. When saving as JPEG and reaching for the keyboard to hit Return for OK, my hand will sometimes lightly brush against the mouse. This invariably has the effect of lowering the JPEG compression amount to zero and ruining the image, so I must turn this feature off or abandon this mouse. Is there a way to do so?

    The horizontal scroll is a pain in the a$$ IMO and many others to. The way to disable it is to type (copy/paste) into a Termainal window the following command line (this is one line, it's shows wrapped due to the forum display layout):
    defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseHorizontalScroll -bool NO
    Turn your mouse off and back on and you will then have no more horizontal scrolling.
    To reenable the horizontal scroll change the No to YES in the command.
    There's a little GUI application that can do this for you if you feel uncomfortable using terminal.  It's called MagicMouse Scroll. You have to read the text there to dig out the download link so here's that download link for your convenience:
    http://WWW.atomicsalad.com/other_files/MagicMouse%20Scroll%20Utility.dmg
    You still have to turn your mouse off and back on to get the setting to take effect.

  • Using ADF Security user in role context to change field value

    Hi I was wondering if it was possible to change an input text field value depending on the ADF authentication login values.
    So if the user in role is manager value is dino2dy if it's Boss its Frank Nimphius.
    My idea is that I want the field user to be read only so no one could change it, but since it's a foreign key in the table I need to have values in it for committing to the database.
    Since different users will be accessing the application I want every user to have his user name automatically entered into a read only field. Then commit that value into the database.
    I have ran into some problems so far, as if I put in a straightforward value in a field, and make it read only, when committing I get an error User field needed. As if the field is empty even though I can see the value on the page.
    Hope you guys can help

    Yeah I have tried that but I can only use it for true or false values, I do not know how to use it to change a value. I ve used it to make something read only or disabled depending on the user in role.
    It still wont work if I change the value in the field. It has to be the database value thing in there. As soon as I change it it starts giving me the you need Korisnik error. But I cant put it as a default value in the database because it defeats the purpose.

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • How to show Append Changes previous value in text box during edit

    Hi,
    I am using multi text column with append mode, all feature of append mode is working fine,but when any other field has been changed on that time append text box take blank value.
    when using same list with ssrs ,report shows the current data,but after approved by manager current item change in blank and current data come in history.
    is any way to do ,if any body change the any item same data appear during edit time in same column.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hi  Hasan,
    According to your description, my understanding is that the multi text column with append mode is not working fine in your SharePoint 2010.
    For reproducing your scenario, I created a new custom list , turned on its version  feature and added a multi text column with append mode. But it was working fine when I change the values of both the
     multi text column and other columns.
    For your issue, could you create a new list to verify the multi text column with append mode  works correctly.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • MT940 - How to change the text value in AC doc created through EBS

    Dear All,
    I would like to know how can we manipulate the payee details sent by the Bank so that unncessary things are removed from the text of the accounting document created through EBS posting (FF_5)
    My bank statement has the below lines
    :61:1001200120CX50,00FBGCNONREF//
    :86:999/00BGCMDIR  5735826JAN185635826
    After running the program the I see the below values
    FEBRE-VWEZW :  999/00BGCMDIR  5735826JAN165635826
    FEBEP-CHECT : NONREF
    BSEG-SGTXT  : NONREF 999/00BGCMDIR 5735826JAN185635826
    I think, text value in the ac document is the concatenation of FEBEP-CHECT & FEBRE-VWEZW.
    However I dont want FEBEP-CHECT & few initial chacters of FEBRE-VWEZW in my accounting document text. I would like the text to be  MDIR 5735826JAN185635826
    Can anyone please suggest how this can be achieved?
    Thanks in advance.
    Krishna

    Hi.
    One of the solutions is (taken from another source):
    As of Release 4.70, there is a Business Add-In (BADI) with the definition name FEB_BADI that is called immediately before the standard posting in program RFEBBU00. In this case, you can change the procedure of the standard posting or make additional account assignments by changing the tables that are to be transferred to the posting interface (FTPOST, FTCLEAR). To do this, go to the SAP menu and follow the path Tools->ABAP-Workbench->Business Add-ins, create an enhancement that you assign to the FEB_BADI BAdI and then implement the CHANGE_POSTING_DATA method.
    When you activate the BAdI, you receive a message, telling you that the active implementation of this BAdI already exists. If you do not use the public sector industry solution, you can deactivate the active BAdI of the IBS_PS area and activate your own implementation.
    Best regards,
    Yuri.

  • How to change text in header of ADF Swing JTable?

    I need to change texts in ADF Swing JTable header.
    any clue?
    thanks
    Branislav

    Hi,
    how do you need to change it? Dynamically or static. If static then - assuming ADF BC is the underlying model - you can set the label hint to override the default column naming. If not using BC, you can set the label in the ADF binding as well.
    Frank

Maybe you are looking for

  • Inconsistent domain logon times

    I have logon times that vary from 5 to 90 seconds for a domain login. If the user logs on for the first time it takes about 90 seconds; this appears fair due to the work that is do with preparing the desktop and copying profiles... etc. The next time

  • Al my apps in my ipad is lost how to put back in my ipad

    al my apps in my ipad is lost how to put back in my ipad

  • What video files are supposed to work on an ipod classic?

    I just downloaded a youtube video which I wanted to play on my ipod classic.  The downloader gave me a number of file conversion options for it, and claimed that mp4 was the format for an ipod. (This is the first time I've tried to put a video on it,

  • Open in safari PLEASE

    Hi, My computer use to open everything in safari but I did something to my computer and now it opens everything in firefox. I want it to open everything in safari (I think). How do I change it back?

  • Xi File to jdbc

    Can any one tell me in file to jdbc scenario,i want to update data into two database tables with out Creating two jdbc receivers?That is by creating only one jdbc receiver i want to update/send data to two tables.