[ER] af:showPopupDialog / within af:selectOneChoice / editor complaints

Hi,
I'm using <af:showPopupDialog triggerType="valueChange" /> within <af:selectOneChoice /> to open up a popup when the user changes value in the drop down box.
This works great at runtime, however the JDeveloper (TP3) jspx editor complains that <af:selectOneChoice /> does not support having a child <af:showPopupDialog />. The editor also restrict us from dragging and dropping a <af:showPopupDialog /> component from the component palette to place it within <af:selectOneChoice />.
I've also created a custom component extending <f:selectItems /> and the editor also complains when I'm using it within <af:selectOneChoice />.
Is it possible to remove the restriction on the type of child components supported by <af:selectOneChoice />?
Thanx!
Olivier

Hi,
actually I am not sure this is possible because the select one choice is rendered as a HTML list box. However, did you try
<script>
function valueHasChanged(event ev){
// launch popup here
</script>
<af:clientListener method="valueHasChanged" type="valueChange"/>
This is the proper way of doing it because it registers a JavaScript event with the select item
Frank

Similar Messages

  • How do you create a popup in sharepoint within a content editor?

    I need to create a popup in sharepoint 2007 by clicking on a link within a content editor.
    thanks

    Hi,
    In SP 2010, Select Contents in CEWP, Format--> Html Source in the ribbon,
    Add the javacript code 
    <script type="text/javascript">
         function OpenDialog(URL) {
             var NewPopUp = SP.UI.$create_DialogOptions();
             NewPopUp.url = URL;
             NewPopUp.width = 700;
             NewPopUp.height = 350;
            SP.UI.ModalDialog.showModalDialog(NewPopUp);
     script>
    <a onlick=”javascript:OpenDialog(‘/sites/alr/SitePages/Reservation.aspx’)” >Show</a>-To
    Make it Server relative.
    So that Dialog box opens anywhere in site collection
    Regards, Sreekanth Reddy M

  • Obsticles moving within WCS MAP Editor

    I have an issue whereby I import a floor plan into WCS and then open the map editor and draw over the map the wall obsticles so as to have the heat maps and RF predictions reflect the attenuation characteristics of the walls.
    I save the map and at a later date reopen it only to find that the obsticle layer has moved or offset to the map. Considering that the floor layouts I have been editing are in some cases 40,000 sq meters in area, the number of walls to re draw constitutes major work.
    I picked this problem up originally when my heat maps would suddenly be cut off mid room where the was no obvious obsticle. On opeing up the map editor I find that the overlay is offset by the same amout of the error in the heat maps.
    The maps in question, beign floor layouts have nopt been moved in reference to their offset to their respective building plan.
    The versions of code I am runnign is as follows:-
    WCS: 7.0.164.0
    MSE: 7.0.105.0
    WLC: 7.0.98.0

    No mention of the number of obstacles. I too am very detailed on my map layouts. The only thing they came back to me was that I may have been inaccurately drawing the obstacles by not magnifying the floor plan enough. This was a bit of an insult.
    I have had situaltions whereby I can open a map one day and it is out of sync, and next it appears fine ( or almost).
    I also have problems whereby i cannot get to the lower right portions of the floor plans when magnified as it is off the screen. I currently have 9 major hospital campuses with numerous buildings in each, some with up to 12 floors. Each floor layour is as detailed as I can possibly make it, and the thought of re doing these maps is somethign i just do not want to go to!
    What the TAC finally got me to do was to tunr on logging and record when instances happened. The only problem here is that if you do not know or cannot repeat an instance of teh map going out of sync, how do you record the logging.
    As I stated, I have basically given up on finding a resolution as I think it goot all too hard for Cisco to identify the actual issue.

  • Problems with cut and paste within the code editor in JDeveloper 10.1.3 EA

    Copy and pasting doesn't work as expected. If I copy some code and paste it somewhere else, i get completely different code, (it seems to paste a piece of code from somewhere else in the source).
    I tried expanding + signs, this didn't help.
    I'am running JDeveloper on Windows XP Professional.
    Does anybody else have the same problem.
    Is this a bug?

    We've tracked down this issue thanks to Tullio's supplying us with a reproducible testcase. It's related to the "Automatically Copy Paste Imports" preference (which is on by default) in the Tools->Preferences->Code Editor category of IDE preferences. It seems to also be related to having renamed a source path directory to have a name that is only different by case from the name it originally had. Disabling this preference is a workaround for EA1.
    For example, if you started out by creating your workspace with a source directory named "Src", then later renamed it to "src", this seems related to the situation when this issue can occur. Renaming the directory back to match what it was before is another workaround for EA1.

  • ADF Faces & BC: Programmatic selection of row within a selectonechoice

    OK i did some printouts and it looks like its occuring on this line:
    diseaseDescriptionLOVVo.findByKey(new Key(keyValues), -1);
    Is there a better way to do this selection?

    findByKey only works when you are passing the exact primary Key of the row, you can also try using findByAltKey and try to specify an alternate key at the VO level.
    Juan C.

  • Creating Boolean Logic formulas within Cell Editor

    Good afternoon,
    Does anyone know if boolean logic works within the cell editor?  I want to create boolean logic to choose a different help cell based on a condition.

    Hi,
    Check these help.sap links
    http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/759b3c4d4d8d15e10000000a114084/content.htm
    Regards,
    DST

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • Tagging in Story Editor messing up Structure

    I have an XML file that looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <MailItem attribute1="value1" attribute2="and so on...">
         <Mail_ID>12345</Mail_ID>
         <CustomerName>Mr. Bray</CustomerName>
         <Sale_Date>2015-02-24</Sale_Date>
         <AndOtherElementsToo>Which are not important right now</AndOtherElementsToo>
    </MailItem>
    It's important to note that this document will only ever have ONE <MailItem> (gauranteed), which makes it a root element. I've tried wrapping this in ANOTHER root element called <MailJob> but that caused problems too. More on that in a minute.
    I have an InDesign Template that is very straightforward. No tables, nothing. I import my XML file into my TAGS panel and I go to town tagging various text placeholders with things like Mail_ID, and Sale_Date.  I perform a test IMPORT XML and things look great.  A minor annoyance is if the elements are not in the correct order in the STRUCTURE pane, they won't import correctly, but I can engineer around this by ensuring the elements are produced in a static order. So far so good.
    The problem comes when I go to the "letter" part of my template. It begins, "Dear So And So," (literally).  Since I want "So And So" to be the actual name from my data, I need to tag this. I open this up in the Story Editor (since I only want PART of the text replaced) and I select "So And So" and I select the CustomerName tag from my Tag panel.
    What happens next is where the wheels come off the wagon and I am in desperate need of help. As SOON as I tag it, three things happen:
    The tag appears in the Story Editor. Looks nice. No problem here
    A new TAG appear in my TAG pane called "Story"
    My Structure pane creates a new element called Story and nests a new element, CustomerName underneath it
    When I perform a test import now, the greeting on the letter doesn't get replaced (the data doesn't import) because, duh, the structure doesn't match the data coming in. It's looking for <MailJob><Story><CustomerName>Mr. Bray</CustomerName></Story></MailJob> which I do not have in my XML file.
    I learn that setting the Tag Preset Options allows me to change the "Story" default to any pre-existing tag. Great!  This solves problem #2 above (the "Story" tag no longer gets created in my TAGS panel).  But problem #3 still happens; My structure now looks like this:
    MailItem
    Mail_ID
    CustomerName
    Sale_Date
    MailItem "Dear So And So,"CustomerName
    Arg!  All manners of attempting to drag and drop the new, nested CustomerName element to higher in the Structure results in the text being UNTAGGED in the placeholder and the process begins again when I try to fix it.
    I thought for a moment that maybe tags embedded within the story editor need to live within a second-level element instead of right under the root element, so I wrapped the whole XML file in <MailJob> </MailJob> elements. This only proceeded to make it impossible to have normal one-to-one text placeholders import/replace correctly (even after I reloaded the tags in the TAGS panel from the newly wrapped file). I didn't even bother testing the within-Story-Editor tags since this is a deal breaker right off the bat.
    I can't simply reformat the XML to match what InDesign is expecting because we have ONE xml format (and exporter) for hundreds of document layouts. I *really* don't want to applying XSLT for every quirky change the design group wants to make (e.g. "We want to suddenly start using the state name in the text of the letter, can you update the XSLT file?"), and besides, we run GIANT jobs (thousands of individual documents) and XSLT processing EACH XML file will slow things down more than I want (I've already got a slow process upstream I'm dealing with, I don't want to make it any slower)
    I'm going crazy, the pressure is on, and I'm desperate for help.  Why can't I get existing XML elements to import INSIDE of a placeholder (along with static text or other elements) the same way they do when I tag an entire placeholder? What am I doing wrong?

    Have you tried underscoring your So_and_So text?
    In any case, here's what I get.
    Brining in the XML, I get:
    Importing a new XML, I get:
    Want the sample file?
    Mike

  • Notes History within WEBCLIENT IC

    All,
    Within the interaction history section of the WEBCLIENT IC, after confirmation of business partner and IBase,  a "Notes History" link is available. The "Notes History" seems to be collecting logs of notes which were entered within a transaction (order, complaint) for a specific business partner.
    I would like to disable to log mechanism of the "notes history" in the WEBCLIENT IC. Can you advise of the correct steps which need to be executed in order to disable this log mechanism?
    Regards, Sander

    Hello Sander,
    You can disable the log mechanism of your Note type in SPRO.
    Go to SPRO->CRM->Basic Functions->Text Management->Define Text Determination Procedure
    Select Text Object type which you're using.
    e.g CRM_ORDERH which is normally used for Business Transactions
    Select this and click on procedure on left.
    Choose the standard or (customized) text determination procedure which you are using for your process.
    Select this and click on definition of procedure on left. You'll see all note type on the screen.
    There is a column - Changes. If its value is p, it'll log all the historic data there. You can remove this P value and make it blank and save.
    From now onwards, it'll not save any notes into that Notes History note type.
    I hope this solves your problem.
    Please let me know if you have more questions.
    Thanks
    Vishal

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • XI3.0 BPM collect message using substring within correlation

    Hi,
    I have a requirement to collect a list of IDOCS using the first three characters of a field as a correlation.  I tried adding the XPATH expression
    substring(/ArticlePriceData/ArticlePrice/Site, 1, 3)
    within the correlation editor but this does not work - all IDOCS get added to a single process.  Has anybody been able to get this to work?  My integration process is based on the SAP example BpmPatternCollectMessage
    Many thanks
    Ian

    Hi,
    I have tried your suggestion and I still do not get the correlation value that I expect - now each message gets a new process ID with a correlation value of blank.
    Thanks for your help
    Ian

  • JTree Renderer/Editor

    I have a custom renderer for my JTree that uses a JPanel with multiple fields within it. I am using the same JPanel for editing as well within a custom editor that extends the DefaultCellEditor. When I select to edit, it edits okay. When I focus away (click elsewhere), the cancelCellEditing() method gets called. The display then shows the original values (before editing). If I select the cell for editing again, it shows the previously "edited" values.
    It looks like the editor values are not getting transferred back to the renderer. Any ideas?
    Gil

    Does it work when you press ENTER before clicking out of the text field?

  • JTable: RFC on good practice (SQL queries from cell editor)

    I usually add/remove/edit JTable data from an external panel. But in this scenario, my client would like to be able to click on the first column of an empty row and enter a product number. Within the cell editor, I must make an SQL query to the database in order to determine if the product number is valid and if so, use part of the SQL data to populate other cells of the current row (like product description).
    My problem is that this just doesn't seem right! Isn't the cell editor executed on the only Swing thread? Also, if the product number is not valid, I correctly implement the stopCellEditing() method but for some reason, you can still navigate the table (click on any other cell or press the TAB key, etc)... weird!!
    Does anyone have a good practice on how to perform the SQL query in a better place and force a cell to be selected until you enter a valid number or press the CANCEL key?
    I was looking at implementing the TableModelListener's tableChanged(...) method but I'm not sure if that would be a better place either.
    I personally would edit outside of the table, but good practice seems hard when the requirement is to edit from a cell editor!!
    Any suggestion would be greatly appreciated!
    Thanks!

    maybe you could write an input verifier for the column that does the query and rejects invalid entries.
    maybe you could send the query off in a worker thread.
    as far as making the table so you can't select any cells, hmm. not sure.
    you could disable
    .setEnabled(false);the table until the query comes back, something like that.

  • Icon Editor bug - random rotations

    While editing icons with the new icon editor in LV 2009, I keep finding that my icon (or selection, or layer) rotates when I type the letter "r" into a layer name.  Are others seeing this?  What tool do I need to have selected to avoid this?  I've installed the icon editor update and this bug is still there.
    Also, is there some way to define the default VI Icon layer to be something other than a white square with a black border?
    Solved!
    Go to Solution.

    I have noticed this, too.  In fact, it's pretty easy to reproduce.
    Open the icon editor and show the layers page.  Now select a layer.  At this point pressing "r" should rotate the layer, which makes sense.
    Now, click in the layer name, which un-highlights the layer, and any time you type an r it will rotate.
    There are some other issues with rotate: if a selection or layer goes outside the icon canvas, it will be trimmed permanently (not so great if you wanted to flip it 180 degrees).
     As for changing the default icon background, I'd suggest making some templates for general use. You can save templates from within the Icon Editor. The first thing I do when editing an icon is delete the default layer and select a relevant template I've made.  Or you can just use the filled rectangle too.  If there is a way to change the default icon, i'd be interested in finding out.
    -Barrett
    Message Edited by blawson on 11-12-2009 03:27 PM
    -Barrett
    CLD

  • Editor: Annoying pop-up for choosing main programs when searching for text

    Hi,
    We're upgrading to ECC60 and are getting frustrated when searching for text in a source code within the ABAP editor.
    For every include contained in the main program you are searching in there is a pop-up asking to choose the main program for that include.
    This can get crazy when searching in a standard SAP program such as SAPMV45A. You'll have to process through 30-40 of these pop-up windows before your search results appear. I each pop-up you have to scroll though dozens of main programs to find the one you are doing the search in.
    Can this be turned of somehow to have the search functionality work as it did in previous version, where the Editor knows that the program you are launching the search from is the main program you want the results from?
    Thanks,
    Peter

    HI Peter
    Please check if program: <b>RPR_ABAP_SOURCE_SCAN</b> can help you...
    Regards
    Eswar

Maybe you are looking for

  • Problems using iPhoto on an iBook G3

    I have an iBook G3 with OSX 10.4.2. Frequently (two times!) it start erasing all the icons of my library of photographs, then, if I recharge the pictures in the library, I can see the icons again but near of it there is an "empty" icon with the same

  • How to view data of a structure.

    Dear all I am a end user. I have access of tcode se16 which allow us to view data from table. But information like long text in PR is stored in a structre. How we can view data stored in a structure. for ex Long text data of PR is stored in a structu

  • The iTunes 10.1 download will not install

    If the lake weren't frozen, I'd be flinging my wife's new iPod Nano to the bottom of it. Theoretically, I have everything necessary to set my wife up on her Christmas gift, an iPod Nano. OSX 10.6.4 on a four month old iMac. The download worked. When

  • How to convert date format to MM/DD/YYYY

    Hi,    How to convert date format to MM/DD/YYYY. Thanks, Senthil

  • Restrict data to after Business hours only...

    hi all, I am trying to ascertain how many services calls are logged to a particular workgroup made after business hours i.e. after 6.00 pm(18:00hrs) and before 7am (07:00hrs), each day for past 2 months. so how do i restrict the data only between the