IDCS2 Observing Change of Focus in a page item

I have a plugin a little like BasicPersistence but with a much more involved UI.
At the moment I am updating the persistent data in the same way as BP (i.e. Menu option on the Panel) but this is quite cumbersome for the user and they regularly forget to do this before selecting another item.
Because of the large number of widgets on my panel, it does not make sense to update the persistent info after each one is changed.
I was going to add an "Update" button to the Panel, but wondered if there was a more elegant solution that would update the current selection automatically before it lost focus.
Is there an observer that would inform me that a page item is about to lose focus?
If so, would this be an appropriate time to update the persistent info for the current selection?
Will this observer also take care of Change-of-Front-document and Close-Document?
Are there any other events I should watch out for?
Should I just add the button to the panel and avoid a potential headache?
Thanks in advance,
Jackeen

Hi,
I think you should provide a little more detailed information about u r problem. This will help to provide solutions.
Regards,
Hemanth

Similar Messages

  • CS3 / Win: Observe copy/paste action of a page item

    Hi
    I like to observe the manual copy and paste of a page item.
    How can I do that?
    What do I have to attach to the observer?
    I get the action kAddToHierarchyCmdBoss and kNewPageItemCmdBoss when I copy and paste a page item. this works.
    Now the problem:
    In the text story of my page item there is a table. I can get the number of tables and the ITableModel of the text story in my application, thats not a problem. But I can't get the ITableModel in my observer (kAddToHierarchyCmdBoss ) if I paste the page item. The interface is always nil. I don't know why and I am looking for a solution.
    Maybe the text story is not finished when I get the kAddToHierarchyCmdBoss.
    Is it possible to observe if a text story is finished? I mean the copy of a text story is finished.
    Thanks a lot.
    Kind regard
    Hans

    I am checking in myDocObserver cmd->GetCommandState() == ICommand::kDone?

  • Dynamically changing the name of a page item

    Hello,
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.
    On my home page, there's a navigation region with some list entries in it. Currently its title is "Configuration".
    If a specific user signs on, I'd like to change that title to "Reporting". How can I manage to implement such a behaviour.
    I tried to get some results by using dynamic actions, but I couldn't get it working.
    Thanks for your help in advance!

    >
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.Create a hidden item called PXX_LABEL (where XX is your page number).
    Set the value of the hidden item via a PL/SQL process (when page loads, or when user logs in, or whatever).
    In the "Label" field of the actual item, enter &PXX_LABEL. (notice the dot at the end).
    When running the page, the label will dynamically be set to the value of the hidden item.
    - Morten
    http://ora-00001.blogspot.com

  • How do you change the color of a page item that is a static source

    I have a page item that does not have a label but the source of the item is always static. It will always show INCOMING in this source. INCOMING is hard coded under Source in the Source value or expression. The customer wants the word INCOMING to be bolded. I added the ccss code to bold the value but it matter where I put it the value will not be bolded.
    Thank you,
    Patti Spycher

    Put the following in the HTML Form Element Attributes of your
    style="font-weight:bold;color:darkblue;font-family:Courier"See this example:
    http://apex.oracle.com/pls/otn/f?p=31517:68
    by picking any of the employees from the select list and running "Search"
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • What is the best way to get the UID of any selected page item (frames, rectangle etc)?

    I need UID of any selected item on page and also array of UID's in case multiple selection happens. How can I achieve it?
    One way I know is to write an observer and attach it on every new page Item created, but that way the system might become slow and also
    the behavior will be unpredictable in case of multiple selections.
    Can some one suggest a better way to do it?

    The selection subsystem hides most ideas of direct adressing (e.g. UID of page item(s) or story) into the concrete selection, while from the outside you only work on the suite interfaces of the abstract selection. So you don't ask whether the selection is some kind of page item and you don't peek at the actual items. Instead you ask about their capabilities and applied values.
    Attaching observers to page items has nothing to do with the selection, because they only notify about changes on those page items - which could also be caused by scripts or anything else. Even then, the most relevant changes go thru the kDocBoss as single point to attach an observer, rather than thru all those page items.
    Regarding speed - the selection has many optimizations, for example "lazy" notifications can be deferred until they become appropriate for an UI update, they might even become aggregated / optimized away.
    One starting point into the selection when you come from nowhere would be ISelectionUtils. Your selection observer might also pass interesting parameters.
    Dirk

  • Page item not changing

    I have a page item (Actor) this is either billing system, user CSR or all. When I run the report in viewer with actor as a page item I can't change it from ALL. Any ideas?

    Andy,
    This is a great suggestion! After I posted, I started looking at a Javascript solution and figured it's probably what I had to do.
    However, now the cascading select list no longer working for some reason after I added the function to concatenate the item values. When I remove the showReport() function the select list works again.
    Here is what I have in the HTML Header portion of the page:
    <script language="JavaScript" type="text/javascript">
    function popupURL (url) {
      w = open(url,"winLov","resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
    function showReport()
      var l_param = '&REPORTS_URL.&report=' + $v('P26_RPT_VIEW') + '.rdf&desformat=' + $v('P26_DESFORMAT') + '&destype=cache';
      if ($v('P26_OLO_CODE' != '')
       l_param += '&p_olo_code=' + $v('P26_OLO_CODE');
      if ($v('P26_ORG_CODE_3' != '')
       l_param += '&p_org_code=' + $v('P26_ORG_CODE_3');
      popupURL(l_param);
      function get_AJAX_SELECT_XML(pThis,pSelect){  
         var l_Return = null; 
         var l_Select = $x(pSelect); 
         var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORG_SELECT_LIST',0); 
         get.add('TEMPORARY_ITEM',pThis.value); 
         gReturn = get.get('XML'); 
         if(gReturn && l_Select){ 
             var l_Count = gReturn.getElementsByTagName("option").length; 
             l_Select.length = 0;
             for(var i=0;i<l_Count;i++){ 
                 var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) { 
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{ 
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>

  • [CS3][JS][ScriptUI] Observing changes to user selection (advanced)

    I have a simple ScruitUI palette working in InDesign which displays the area of a selected page item.
    When the user selects a page item and launches the palette the area is calculated and the palette displays the result correctly.
    I cannot work out, however, how to update the calculated area when the user changes the selection. I can use the onMove and onResize events on the palette window to trigger the recalculation, but I would like another way that did not involve the user moving or re-sizing the palette. Something like onActive so that all the user had to do was click on the palette to trigger a recalculation.
    The simple way out is to create a button on the palette which the user clicks to update the area information, and this may be the best I can do at the moment. I was just wondering if any of the experts had some insight into other techniques for observing changes to selection from a palette. It would be amazing to have a scripted observer that could change the palette without the user doing anything special, in the same way that InDesign panels (like Info) work, but I realize I'm asking a lot from a scripting DOM that is already amazingly comprehensive.

    Hi Kasyan,
    Below roughly what I sent to Simon - it is not a full solution, but demonstrates the techniques you need.
    With APIDToolAssistant installed and a document open, create a page item on the pasteboard; this page item will be used as a 'controller' for this demo. Select it and bring up the APID ToolAssistant palette.
    Set the list of subjects to "*"
    Set the event filter to "subjectSelected#myLittlePaletteEngine, subjectDeselected#myLittlePaletteEngine".
    This captures the selection and deselection events for all page items, and routes them into a persistent engine (myLittlePaletteEngine) for handling.
    Because the engine is persistent, it will 'remember' gPalette and gField on subsequent events after they have been created the first time around.
    Set the script to:
    var gPalette;
    var gField;
    var gController = theItem;
    function CreatePalette()
    gPalette =
    new Window(
    "palette",
    "What is it");
    gField = gPalette.add("statictext",[0,0,200,20],"testfield");
    if (gPalette == undefined)
    gController.setDataStore("$GROUP_EVENTS$",true);
    CreatePalette();
    gPalette.show();
    gField.text = app.selection.toString();
    This does work for 'page item' selections - it won't work for text selections. To make that work too, you need to change the event filter to "*#myLittlePaletteEngine" (* is a wildcard and matches all events, including idle - which is used to update the text selection info).
    This last method (relying on idle) is not terribly good or efficient; I am currently looking how I could avoid the need for capturing 'idle' in version 1.0.46 (which will support CS4).

  • Changing tab focus with the keyboard

    I've read about changing the tab focus from one page to another programmatically; however, I would like to have shortcut keys to change tabs (like many programs that use CTRL+Tab to change windows within the program).
    I could use an event structure to capture keyboard button presses and then change the value of the tab control, but is there a more straightforward approach?
    Thanks!
    mlloyd

    You can set all other controls not to be tabbed through and the tab control to have its pages tabbed through. That way, when you use tab, only the tab control's pages will be on the tabbing list. This, however, is probably less straightforward.
    I'm not sure what's the problem with the method you outlined. In most cases, if you want something to happen, you will have to code it. This appeares to be one of those cases. You can make a subVI to do the tabbing for you, if you don't want to have to code all of it in your VI. Pass the reference of the tab control into the VI after you detect the event and use that to decide whether to increase or decrease the tab value. Be sure to cycle the number back to the first page when it reaches the end.
    Try to take over the world!

  • ADF-InputText, ValueChangeListener not called w/o change of focus

    Hi,
    im using BarCode Reader which reads the value into the ADFInputText field.
    Now, i need its value in the backing bean just wen it reads a value. but actually, the page waits for causes change of focus in order to call the valueChangeListener.
    Is there any property which sets the form is auto submit mode in such a way that whenever a value is read into a field the value change listener is called.
    the other way is to instantiate a thread with a timer and call it after every certain while and read the value explicitly.
    pointers appreciated.
    Regards,
    Rabs

    Hi,
    there is no other way then stepping put of it. Duncan Mills wrote an article about using Ajax in JSF, which is the only alternative I can imagine
    http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html
    Frank

  • Problem with dynamic change a page item value

    Hi,
    I'm trying to dynamically calculated the value of an item based on a simple formula that involves the multiplication of two elements from the same page.
    To do this, create dynamic action as follows:
    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: SQL Statement
    SQL Statement: SELECT :P19_DURATION * :P19_RATE FROM DUAL
    Page items to submit: P19_DURATION
    Selection Type: Item(s)
    Item(s): P19_AMOUNT
    When altering the P19_DURATION get no change in P19_AMOUNT
    Since my knowledge of javascript is almost zero, I'm trying to do this with pl / sql or sql. Try the dynamic action with a function or a PL / SQL statement and nothing works.
    Have to use javascript for this?
    Searching the forum I think it's something simple, but I did not find an example similar to what I need.
    Regards

    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: javascript
    javascript Code:
    amount = $v('P19_DURATION') *  $v('P19_RATE');
    $s('P19_AMOUNT',amount);

  • All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default s

    I don't know what happened. All of a sudden, my settings have been changed, my homepage, and EVERYTHING. No matter how many times I go in and change them again, the SAME pages open up when I start FireFox and I am constantly being asked if I want Yahoo as my start page and default search engine. I click the box 'do not ask me again' and it comes up EVERY TIME. I change things like I don't want history remembered, and when I reload FireFox again, it's back to the way it was BEFORE. EVERY SINGLE TIME. I don't know why this is happening, or how to fix it. What do I do??

    I do not want to download another virus program.. I do not believe it is a virus. I am running the full version of Norton 360 and it is doing a daily scan. I have Windows 7, 64 bit OS.
    This is very irritating !! If I wanted Yahoo I would ask for it !

  • Can I change the background on each page of the iPad?

    I know how to set home screen and lock screen, but was wondering if there is a way to change the background to each page on the iPad. I am a teacher and would like each page to have a background set to a specific picture or word so my students know which page they use on a particular day. Is this possible? If so, can someone walk me through it?

    No - you can only have one background picture which applies to all homescreens

  • How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English

    How do I set the zoom at a particular level as the default to ensure pages are not too small and that i don't have to change the zoom for each page? in English
    == This happened ==
    Every time Firefox opened
    == From the beginning

    Some add-ons:
    Default FullZoom: https://addons.mozilla.org/en-US/firefox/addon/6965 (I use this one)
    No Squint: http://urandom.ca/nosquint/
    Also:
    http://support.mozilla.com/en-US/kb/Page+Zoom
    http://support.mozilla.com/en-US/kb/Text+Zoom
    http://kb.mozillazine.org/Browser.zoom.siteSpecific

  • Is it possible to change the colour of the Pages' skin, since it is grey, is there any way to change it and make it less tedious?

    Is it possible to change the colour of the Pages' skin, since it is grey, is there any way to change it and make it less tedious?

    fruhulda wrote:
    If you see any grey"background" if is on the left and that is the comment field.
    Hi fruhulda
    It's not the comment field which is a restrictive description.
    In fact it's the window's background.
    Yvan KOENIG (VALLAURIS, France) lundi 26 septembre 2011 12:08:45
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • I cant change the old icloud mail to a new one because i have lost my password , and when i changed it in ap-id page it still remains the same, nothing changes .

    cant change the old icloud mail to a new one because i have lost my password , and when i changed it in ap-id page it still remains the same, nothing changes .
    What do do ????

    You do not have to call US, but you need to call. Or else.
    Contact Apple for support and service - Apple Support

Maybe you are looking for