Get the topmost canvas

Hi, can every body tell me how in form 6i can i get the name or the ID of the topmost canvas visible in my application ?
I tried with get_view_property('canvas_name',visible)
but I have some canvas under the topmost canvas that are visibled too.
Thank you.

This forum is meant for discussions about OTN content/site and services.
Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
Product forums:
http://forums.oracle.com/forums/index.jsp?cat=9
Technology forums:
http://forums.oracle.com/forums/index.jsp?cat=10
As a general guideline, please first search the forum to see if your question is already answered. You will find answers for the most frequently asked questions by simply searching the forum. This will help you to find the answer right away and will save time for all of us.

Similar Messages

  • How can I get the list of all canvas in the forms programatically?

    I want an exemple of how to do it. I really need it to put in a template.

    This is the code.
    You will see how to loop through every item of every blocks of the form:
    PROCEDURE Get_Canvas_Names IS
      lc$blockDeb     varchar2(60); -- start block
      lc$block          varchar2(60); -- current block name
      lc$item               varchar2(60); -- current item
      lc$Type               varchar2(20); -- item type
      lc$itemdeb     varchar2(60); -- first item
      lc$canvas          varchar2(60); -- current canvas name
      lc$tabcan          varchar2(60); -- current tab canvas name
      lc$Acanvas     varchar2(60):= ' '; -- old canvas name
      lc$Atabcan     varchar2(60):= ' '; -- old tab canvas name
      ln$NbRec          pls_integer := 0 ;  -- number of records (for know if the block is multi-records)
    BEGIN
      LC$BlockDeb := get_form_property( NAME_IN('System.Current_Form'), FIRST_BLOCK ) ;
      LC$Block := LC$BlockDeb ;
      Loop -- For each block of the form
      LN$NbRec   := get_block_property(LC$BLOCK, RECORDS_DISPLAYED) ;
      lc$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
      lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      while lc$itemdeb is not null loop -- For each item
        -- visible item ? --
        IF GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE' Then
             -- Get the canvas and tab canvas name --
             lc$canvas := GET_ITEM_PROPERTY(LC$Item , ITEM_CANVAS ) ;
             lc$tabcan := GET_ITEM_PROPERTY(LC$Item , ITEM_TAB_PAGE ) ;
        End if ; -- GET_ITEM_PROPERTY(LC$Item , VISIBLE) = 'TRUE'   
        lc$itemdeb := get_item_property(lc$item, NEXT_NAVIGATION_ITEM );
        lc$item := LC$BLOCK || '.' || lc$itemdeb ;
      end loop ;
      LC$Block := get_block_property( LC$Block, NEXTBLOCK ) ; -- next block
      exit when LC$Block is null ;
      End loop ;
    END Get_Canvas_Names;all you have to do is to save each different canvas names in a pl/sql table.
    Francois

  • I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    When clips won't play without rendering in the Timeline, it usually means that the clip's specs don't match the Sequence settings.
    A .mov file could be made from any number of codecs; the QuickTime Movie designation is merely a container for video files of all kinds.  Since FCE only works with the QuickTime DV codec and the Apple Intermediate Codec (AIC) natively, if your mov files aren't one of those two, you need to convert them PRIOR to importing into your FCE project.
    -DH

  • My Canvas went black.  Can't get the video back.

    I did something and my canvas went black and now I can't figure out how to get the video back.  Can someone help?
    I took some time off and now forgot a lot but working on remembering as I got work now.  ;-)

    Hi David
    Actually I had to call my friend in San Francisco for the answer and stupid me!  I should have known what I did ut I was away from FCP most of last year.
    I hit CMD-W and lost 2 windows.  I got them back but then the canvas was black.
    Answer was hit the W key again and it cycles through 3 windows. 
    I tried what you recommended to no avail.
    Thanks though
    Allen

  • In the topmost Firefox menu with File,Edit,View,History,Bookmarks, I can not get the list of bookmarks to display as they did before. The Bookmarks menu does not open up into the list of bookmarks.

    I am running Mac os 10.6.8 and Firefox 6.0.1 on a MacBook Pro and on a desktop Macintosh.
    The large computer displays a list of bookmarks when you click on the uppermost Bookmarks menu.
    The MacBook Pro displays the following when you click on the Bookmarks word in the top menu:
    "Show all Bookmarks, Bookmark this Page, Bookmark all Tabs and an icon with a blue dot next to Bookmarks Toolbar with an arrow to the right and below that it says Unsorted Bookmarks.
    There is no display of the list of bookmarks from which I can chose as I do on the larger desktop macintosh computer.
    How can I get the list of bookmarks to show as a list when I click the Bookmarks menu?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    You can also try to move (delete) the Firefox plist file.<br />
    See [http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results]
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).

  • Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.

    Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.
    The above is what the bar says. It's been a while and wondered, maybe Apple changed the format for forums. Then got this nice big blank canvas to air my concerns. Went to school for Computer Science, BSEE, even worked at Analog Devices in Newton Massachusetts, where they make something for apple. 
    The bottom line is fast CPU = more FPU = more headroom and still can't figure out why the more cores= the slower it gets unless it's to get us in to a 6 core then come out with faster cores down the road or a newer Mac that uses the GPU. Also. Few. I'm the guy who said a few years ago Mac has an FCP that looks like iMovie on Steroids. Having said that I called the campus one day to ask them something and while I used to work for Apple, I think she thought I still did as she asked me, "HOW ARE THE 32 CORES/1DYE COMING ALONG? Not wanting to embarrass her I said fine, fine and then hung up.  Makes the most sense as I never quite got the 2,6,12 cores when for years everything from memory to CPU's have been, in sets of 2 to the 2nd power.  2,4,8,16,32,64,120,256,512, 1024, 2048,4196,8192, 72,768.  Wow. W-O-W and will be using whatever I get with Apollo Quad. 
    Peace to all and hope someone can point us in THE RIGHT DIRECTION.  THANK YOU

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • How can I get the Fireworks pen tool to disengage from an open path shape (and stay disengaged)!

    I am so frustrated! I can't get the fireworks pen tool to disengage when I am finished creating an open path shape (double clicking the end-point isn't working).  The only way I can disengage the pen tool  is to click on a different tool, BUT ...if I do that (i.e., click on a different tool), and then go back to the pen tool (with the intent to create another open path shape), the pen tool automatically engages the last point of my prior open path shape ... and ... no matter what I do, I can't get the pen tool in Fireworks to stop doing this with my open path shapes.
    If anyone has any helpful advice, it would be much appreciated!
    Thank you!
    (note: I prefer not to have to go back and forth creating open path shapes in Illustrator then bring them into Fireworks, but if all else fails, I suppose I'll have to as a work-around.)

    Have you tried holding the Command key and clicking away from the last point? The Command (⌘) key will bring up the Subselection tool; clicking on the canvas with it will allow you to disengage from the path. Once you release the key, the Pen tool will return and you can begin another path.

  • A script to increase the minimum canvas size? (Like Fit Image, but with just my canvas)

    For starters to be clear, I'm looking to manipulate canvas size. Not image size.
    I want to create a script to automatically increase the width and height of my canvas in Photoshop to a specific size when necessary. I only want this to happen if my canvas is less than that specified size. For example: Let's say my canvas size is 300x250. I want the canvas to be at LEAST 600x600. If I run my action it will increase the canvas size to 600x600 for me. If I run this same script on an image where the canvas size is already 700x700, it won't do anything at all to it because both the width and height are equal to or greater than my target size.
    It would also need to work with the height and width on an individual basis. If my image is 400x800, the action would increase my width from 400 to 600, but it would leave the height of 800 alone. So the final canvas size will end up being 600x800.
    It's kind of like the "Fit Image" option in Photoshop, but I only want to manipulate my canvas size, NOT my image size.

    It is possible.
    But if you hope that the dialog remembers the last settings that would require storing those values (which could be done with a txt-file at some pre-defined location), but it would make the Script a bit more complicated.
    // resize canvas in either direction if it is below a defined minimum;
    // 2011; use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    // dialog;
    var dlg = new Window("dialog", "increase width and height if under", [500,300,750,380]);
    // filter for checking if entry is numeric, thanks to xbytor;
    numberKeystrokeFilter = function() {
              if (this.text.match(/[^\-\.\d]/)) {
                        this.text = this.text.replace(/[^\d]/g, "")
              if (Number(this.text <= 0)) {this.text = 5};
              this.text = Math.round(Number(this.text));
    // fields for entry;
    dlg.hor = dlg.add("edittext", [14,15,88,35], "600", {multiline:false});
    dlg.hor.onChange = numberKeystrokeFilter;
    dlg.horText = dlg.add("statictext", [93,15,118,35], "px", {multiline:false});
    dlg.ver = dlg.add("edittext", [129,15,210,35], "600", {multiline:false});
    dlg.ver.onChange = numberKeystrokeFilter;
    dlg.verText = dlg.add("statictext", [215,15,240,35], "px", {multiline:false});
    dlg.hor.active = true;
    // ok- and cancel-button;
    dlg.buildBtn = dlg.add("button", [13,45,118,68], "OK", {name:"ok"});
    dlg.cancelBtn = dlg.add("button", [128,45,240,68], "Cancel", {name:"cancel"});
    // show dialog;
    dlg.center();
    // show dialog;
    var myReturn = dlg.show ();
    // proceed if ok-ed;
    if (myReturn == 1) {
    var myDocument = app.activeDocument;
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    // set the minimum values;
    var minWidth = Number(dlg.hor.text);
    var minHeight = Number(dlg.ver.text);
    // get current ones;
    var theWidth = myDocument.width;
    var theHeight = myDocument.height;
    // resize canvas;
    myDocument.resizeCanvas(Math.max(minWidth, theWidth), Math.max(minHeight, theHeight), AnchorPosition.MIDDLECENTER);
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;

  • Multiple data blocks on the same canvas

    Forms newbie question:
    Is it possible to have 2 data blocks with two different sets of transactional triggers (ON-UPDATE, ON-LOCK, etc.) on the same canvas?
    I've got an example where i've got two data blocks (one sourced from a view, and one that is a CTL block) on the same canvas. The block sourced from the view is working fine. When I make updates, they are reflected, etc. But, i've got one field in the control block that I need to update from as well, and I can't seem to get it (or any of the CTL block items) to show up as "updateable", regardless of the set_item_property....theyre always grayed out.
    Do i need to take the user to a new canvas to be able to utilize the update of the ctl field?

    A second canvas is not needed. Normally, control-block items are always updateable, so there is something going on in your form to prevent it.
    > I can't seem to get it (or any of the CTL block items) to show up as "updateable",
    regardless of the set_item_property....theyre always grayed out.
    What... Is there code someplace in the form that sets them to Enabled, false? If that is the case, then to get them working again, besides setting Enabled to true, you also must set Updateable and Navigable to Property_True. (This is documented at the end of the on-line help on Set_Item_Property.)

  • How to dynamically get the SOM expression of a field?

    As a follow up to the note below, I would really appreciate any help as of how to get the SOM expression of a field dynamically, by this, I mean how to get the SOM expression of a field at running time using JavaScript.
    Thanks,
    Isis
    That does make things clearer.  You will have to save the change  information in the XML.  I realize that you don't want to save an xml  node for every field, but there is a better way.  You can use scripting  to add data nodes to the XML data in the form.  I'm thinking of the  following:
    Include an empty container node in your XML schema: <HighlightedFields></HighlightedFields>
    When  a field is changed, in the field's change event call a common script:  HighlightChangedField, passing in the object.  The script will highlight  the field (set the border a certain color or whatever).  It will also  add node underneath the HighlightedFields data node with the SOM  expression of the field.  The SOM expression is the "path" of the object  in the form heirarchy, sort of like an xpath.  So if you have a subform  named Subform1 and you change the Name and Address textfields, you  might end up with something like:
    <HighlightedFields>
        <HighlightedField>
            <SOMExpression>xfa[0].form[0].myform[0].Subform1[0].Name[0]</SOMExpre ssion>
         </HighlightedField>
        <HighlightedField>
            <SOMExpression>xfa[0].form[0].myform[0].Subform1[0].Address[0]</SOMEx pression>
         </HighlightedField>
    </HighlighedFields>
    The  upside of this is that you only store XML nodes for what is changed  instead of needing a specific XML node for each field.  The downside is  that you will need a call to the common script in every field's change  event: HighlightChangedField(this);
    Now, to make this work  when a form is loaded the next time, in the initialize event at the  topmost subform in the hierarchy you add a script that walks the  HighlightedFields data node, and for each HighlighedField entry you  highlight the contained object.  You can get a reference to an object  using its SOM expression, so just take the SOM expression from each  entry and do an xfa.resolveNode(SOMExpression) to get the object, then set whatever attributes you want to highlight the field.
    The  big issue I see with this would be if you have dynamically added  objects on your form.  In that case you would probably need to store the  instance index along with the SOM expression for each changed object,  then use that instance number when highlighting on form load.

    As a follow-up, I had said I would try to put together an example for you.  The setting of the change indications and the highlighting of the fields is not a problem, but I did have an issue that perhaps one of the experts on the forum can help with:
    The problem is how to detect a change in a text field without a lot of overhead.  You can't just place a call to the highlight method in the Exit event without checking for a change, since the user can just tab from field to field without changing anything. Unfortunately the properties that show the old text and new text of a field are not valid on the Exit event.  An alternative is to use the Change event, but with a text field the event fires for every character typed.  This seems like a lot of extra processing..
    Anyone know a better way?  I went as far as using the extras collection on fields to hold the last value, but that adds a lot of complexity since it needs to be set to the initial raw value when the form is first loaded. I'd like to find a solution that doesn't require a lot of code to be added to every field on the form.

  • ADF and JQuery: How can I get the data back to server listener.

    Jdeveloper 11g Version 11.1.1.2.0
    I use Jquery to draw the signature. How can I get the svgOutput back to my server listener.???
    e.getSource give me the error e.getSource is not function.
    Both of function saveSignatureCapture(which calling from ADF button) and $('#save-output').click(function (event) can not send the the data back to my server listener.
    Thanks.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="dSignature" title="Signature Capture">
          <af:resource type="javascript" source="../resources/lib/jquery/jquery-1.4.2.min.js"/>
          <af:resource type="javascript" source="../resources/js/jquery.drawbox.js"/>
          <af:resource type="javascript">
            var svgOutput = '';
            function saveSignatureCapture(e) {
                var signatureText = $('#drawbox-data').val();
                var source = e.getSource();
                var type = 'saveSignatureCapture_ServerListener';
                var immediate = true;
                var params = {
                    signatureText : signatureText
                AdfCustomEvent.queue(source, type, params, immediate);
            function beginSignatureCapture(e) {
                $('#drawbox').drawbox( {
                    caption : 'This is a caption', lineWidth : 3, lineCap : 'round', lineJoin : 'round', colorSelector : true
                $('#view-output').click(function () {
                    svgOutput = window.open('data:image/svg+xml,' + $('#drawbox-data').val());
                    svgOutput.document.close();
                    return false;
                $('#save-output').click(function (event) {
                    var signatureText = $('#drawbox-data').val();
                    var source = $(document);
                    var type = "saveSignatureCapture_ServerListener";
                    var immediate = true;
                    var params = {
                        signatureText : signatureText
                    AdfCustomEvent.queue(source, type, params, immediate);
                    return false;
            $(document).ready(beginSignatureCapture);
          </af:resource>
          <af:panelStretchLayout id="psSignature">
            <f:facet name="bottom"/>
            <f:facet name="center">
              <af:panelGroupLayout id="pgSignature" layout="vertical">
                <f:verbatim>
                  <div id="divSignature">
                    <canvas id="drawbox" width="600" height="200">
                      <p>Your browser does not support &lt;canvas&gt;</p>
                    </canvas>
                  </div>
                  <br/>
                  <br/>
                  <a href="#" id="view-output">View Rendered SVG Output</a>
                  <br/>
                  <br/>
                  <a href="#" id="save-output">Save Signature</a>
                </f:verbatim>
                <af:spacer width="10" height="10" id="s10"/>
                <af:panelGroupLayout id="pghl14" layout="horizontal" halign="center">
                  <af:commandButton text="Save Signature" id="cbSaveSignatureButtonId" partialSubmit="true">
                    <af:clientListener method="saveSignatureCapture" type="click"/>
                    <af:serverListener type="saveSignatureCapture_ServerListener"
                                       method="#{backingBeanScope.mainBackingBean.saveSignatureCapture_ServerListener}"/>
                  </af:commandButton>
                </af:panelGroupLayout>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="start"/>
            <f:facet name="end"/>
            <f:facet name="top"/>
          </af:panelStretchLayout>
        </af:document>
      </f:view>
    </jsp:root>Edited by: user553450 on Sep 17, 2010 4:02 PM
    Edited by: user553450 on Sep 17, 2010 4:13 PM

    Hi Frank,
    Thank you so much for your advice, I got lot of knowledge from your book and articles since I am in transition from forms to JDeveloper.
    By surrounding <af:panelStretchLayout id="psSignature"> with <af:form id="f1">
    Now the following code is work on Firefox, everything fine, I can get the data back and call my server listener as I expected.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="Signature Capture">
          <af:resource type="javaScript" source="../resources/js/excanvas.js"/>
          <af:resource type="javascript" source="../resources/lib/jquery/jquery-1.4.2.min.js"/>
          <af:resource type="javascript" source="../resources/js/jquery.drawbox.js"/>
          <af:resource type="javascript">
            function saveSignatureCapture(e) {
                var signatureText = $('#drawbox-data').val();
                alert(signatureText);
                var source = e.getSource();
                var type = 'saveSignatureCapture_ServerListener';
                var immediate = true;
                var params = {
                    signatureText : signatureText
                AdfCustomEvent.queue(source, type, params, immediate);
            function beginSignatureCapture(e) {
                var cmd = "$('#drawbox').drawbox({lineWidth:3,lineCap:'round',lineJoin:'round',colorSelector:true});";
                if (navigator.userAgent.indexOf('MSIE') !=  - 1) {
                    setTimeout(cmd, 1000);
                else {
                    $('#drawbox').drawbox( {
                        caption : 'This is a caption', lineWidth : 3, lineCap : 'round', lineJoin : 'round', colorSelector : true
          </af:resource>
          <af:form id="f1">
            <af:panelStretchLayout id="psSignature">
              <f:facet name="bottom"/>
              <f:facet name="center">
                <af:panelGroupLayout id="pgSignature" layout="vertical">
                  <f:verbatim>
                    <canvas id="drawbox" width="600" height="200">
                      <p>Your browser does not support &lt;canvas&gt;</p>
                    </canvas>
                  </f:verbatim>
                  <af:spacer width="10" height="10" id="s10"/>
                  <af:panelGroupLayout id="pghl14" layout="horizontal" halign="center">
                    <af:commandButton text="Save Signature" id="cbSaveSignatureButtonId" partialSubmit="true">
                      <af:clientListener method="saveSignatureCapture" type="click"/>
                      <af:serverListener type="saveSignatureCapture_ServerListener"
                                         method="#{backingBeanScope.mainBackingBean.saveSignatureCapture_ServerListener}"/>
                    </af:commandButton>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="start"/>
              <f:facet name="end"/>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
          <af:clientListener method="beginSignatureCapture" type="load"/>
        </af:document>
      </f:view>
    </jsp:root> However, I got the error following error when I run the page from IE8.
    Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichCommandButton[oracle.adf.RichCommandButton] id=cbSaveSignatureButtonId StackTrace:function(x217)[AdfRichCommandButton[oracle.adf.RichCommandButtonId]..........
    FYI, the following simple testing code has the similar error in IE8 too (not for Firefox).
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:resource type="javaScript" source="../resources/js/excanvas.js"/>
          <af:form id="f1">
            <f:verbatim>
              <canvas id="drawbox" width="600" height="200">
                <p>Your browser does not support &lt;canvas&gt;</p>
              </canvas>
            </f:verbatim>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>The error is: Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichDialog[oracle.adf.RichDialog] id:::msgDlg StackTrace function(x217).......
    Your advice is very much appreciated.

  • Stacked canvas view placed on the content canvas

    Hi to all,
    i am developed a one form ,i.e placed the stacked canvas view on the content convas.
    i create a two data block's with same table.
    one data block for content canvas and one for stacked canvas.
    in the content canvas i taken two fileds with scroll bar and remaining fields placed on the stacked canvas.
    these stacked canvas view put on the content canvas.it dispalying and
    executed succesfully.
    here i am getting one problem i am displying the 10 records at a time in both canvases.my requirment is placed on the
    cursor on the content canvas particular record scroll down then automatically show the same record details in stacked canvas and
    content canvas scroll bar is changed automatically stacked canvas scroll bar is changed.
    any one help me.........

    {quotei create a two data block's with same table.
    one data block for content canvas and one for stacked canvas.{quote}
    This is not necessary. Just create one data block and then assign the block items to your Content and Stacked canvases. You can display items in a data block on different canvases. By doing this, there is no need to write code to synchronize the records because they are part of the same data block so they will automatically scroll as you navigate through your records.
    Craig...

  • Outlook window getting the keyboard focus instead of user created Form Window during Outlook Startup

    This MAPILogonComplete method involves creating a Form Window to show "What's New" of a certain Addin version (DisplayWhatsNewDialog() in the code):
    private void _outlook_MAPILogonComplete() {
    _logger.Info("_outlook_MAPILogonComplete");
    try
    if (_timerForm != null)
    _timerForm.Timer.Stop();
    _timerForm.Timer.Dispose();
    catch (Exception ex2)
    _logger.Error(ex2.Message, ex2);
    try
    if (Globals.BJNSettings.showWhatsNew)
    Globals.BJNSettings.showWhatsNew = false;
    UIHelper.DisplayWhatsNewDialog(false);
    Ol.Inspector insp = null;
    if (_inspectors.Count > 0)
    for (int i = _inspectors.Count; i >= 1; i--)
    insp = _inspectors[i];
    WrapInspector(insp);
    insp = null;
    Ol.Explorer expl = null;
    if (_explorers.Count > 0)
    for (int i = _explorers.Count; i >= 1; i--)
    expl = _explorers[i];
    WrapExplorer(expl);
    expl = null;
    GetAddinsList();
    Thread logSystemInfoThread = new Thread(new ThreadStart(LogSystemInformation));
    logSystemInfoThread.TrySetApartmentState(ApartmentState.STA);
    logSystemInfoThread.IsBackground = true;
    logSystemInfoThread.Start();
    try
    Ol.NameSpace ns = _outlook.GetNamespace("MAPI");
    _calFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderCalendar) as Ol.Folder;
    _calFolder.BeforeItemMove += new Ol.MAPIFolderEvents_12_BeforeItemMoveEventHandler(_calFolder_BeforeItemMove);
    _delFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderDeletedItems) as Ol.Folder;
    Marshal.ReleaseComObject(ns);
    ns = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    UIHelper.WriteDoNotDisableKeyToRegistry();
    Globals.AppointmentsToProcess = new List<string>();
    _timerForm.ProcessTimer.Interval = 3000;
    _timerForm.ProcessTimer.Start();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    DisplayWhatsNewDialog() has this signature:
    public static void DisplayWhatsNewDialog(bool modal)
    try
    string defaultWhatsNewFile = Globals.BJN_APP_BASE_DIRECTORY + "WhatsNew.txt";
    string localISOLanguageName = Languages.GetTwoLetterISOLanguageName();
    string localizedWhatsNewFile = Languages.GetInstalledLocalizedFilePath(localISOLanguageName, "WhatsNew.txt");
    if (String.IsNullOrEmpty(localizedWhatsNewFile))
    localizedWhatsNewFile = defaultWhatsNewFile;
    if (File.Exists(localizedWhatsNewFile))
    BJNWhatsNew whatsNew = new BJNWhatsNew(localizedWhatsNewFile);
    if (modal)
    whatsNew.ShowDialog();
    whatsNew.Dispose();
    else
    whatsNew.TopMost = true;
    whatsNew.Show();
    whatsNew = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    The problem is if the Window is made modal, it blocks the Outlook to launch and also goes back of the Outlook loading window (Whats New window will not be having keyboard focus). And if the Window is made non-modal (passing false to DisplayWhatsNewDialog()),
    Outlook launches properly and What's New window comes at the top but will not be having keyboard focus; instead the launched Outlook window will be having the keyboard focus. May anyone please suggest a way to make the What's New window to be always having
    the keyboard focus? Structure of form window class BJNWhatsNew is given below:
    public partial class BJNWhatsNew : Form
    private static ILog _logger = LogManager.GetLogger(typeof(BJNWhatsNew));
    public BJNWhatsNew(string whatsNewTextFileName)
    InitializeComponent();
    InitLabels();
    InitEventHandlers();
    InitWhatsNew(whatsNewTextFileName);
    private void InitLabels()
    try
    this.Text = Properties.Resources.bjn_version_info_caption;
    this.buttonClose.Text = Properties.Resources.ok_hotkey;
    this.labelBJNAddin.Text = Properties.Resources.bjn_version_ol_addin;
    this.labelVersion.Text = String.Format(Properties.Resources.version_format, Assembly.GetExecutingAssembly().GetName().Version.ToString(3));
    Assembly assembly = Assembly.GetExecutingAssembly();
    FileInfo fileInfo = new FileInfo(assembly.Location);
    DateTime buildDate = fileInfo.LastWriteTime;
    string formatString = "d MMM, yyyy";
    this.labelReleaseDate.Text = String.Format(Properties.Resources.bjn_version_release_date, buildDate.ToString(formatString));
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    private void InitEventHandlers()
    this.buttonClose.Click += new EventHandler(buttonClose_Click);
    private void InitWhatsNew(string whatsNewTextFileName)
    try
    if (File.Exists(whatsNewTextFileName))
    StreamReader sr = new StreamReader(whatsNewTextFileName);
    string whatsNew = sr.ReadToEnd();
    sr.Close();
    this.richTextBox1.Text = whatsNew;
    this.richTextBox1.SelectionLength = 0;
    this.buttonClose.Select();
    this.buttonClose.Focus();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    void buttonClose_Click(object sender, EventArgs e)
    this.Close();

    Hello Prasad,
    The ShowDialog method will block the current thread. If you want to continue working with Outlook objects you need to use the Show method instead. The key fact is that both methods (Show and ShowDialog) accepts an instance of the IWin32Window interface
    which allows to specify the parent window handle. Specifying the parent window handle (Outlook Explorer window) to the Show method you can make your window shown on top of Outlook all the time.
    To get the HWND of an Outlook explorer  object (e.g. Application.ActiveExplorer), cast it to IOleWindow and call IOleWindow.GetWindow(). Also you may find the
    How to get the IWin32Window for Outlook
    article helpful.

  • How to get the location of the last click.

    What I can't seem to figure out how to do is get the location of the last click. I'm not setting anything by using the click im using the click to test boundaries. Basically if I click within this area this happens if i click within this other area something
    happens, etc. Thanks for your help! Also feel free to say an easier way to do this if you know one.

    Your description about your issue is very vague but you could for example handle the MouseLeftButtonDown event for the "area" and then use the MouseEventArgs.GetPosition method to determine the coordinates of the mouse click relative to some element,
    e.g.:
    private void Canvas_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Canvas canvas = sender as Canvas;
    Point p = e.GetPosition(canvas);
    double x = p.X;
    double y = p.Y;
    <Canvas Height="100" Width="100" Background="Red" MouseLeftButtonDown="Canvas_MouseLeftButtonDown">
    </Canvas>
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • Setting focus outside a control when no other control can get the focus

    Hello
    I'd like to know if there is a way to setfocus outside of a control even if there is no other control to receive the focus.
    I have an editbox that has the focus (active) and I want to set visible to false to this control., but I cannot since it has the focus and there is no other controls that can get the focus.
    As a temporary measure I've added another editbox that I moved outside of the visible interface to which I've moved the focus. But I would like to know the proper way to do this.
    Thank you for your help.

    I think you are asking how to bring a windows form to the front.
    If not I apologize...
    The way I have done this:
    1. I created a new thread.
    2. I maxmized the window
    I set the following properties:
    ShowInTaskbar = False
    TopMost = True
    Focus()
    BringToFront()
    In all my testing I needed the window to be maximized, if it wasn't B1 stayed on top.

Maybe you are looking for

  • How to change system time w/o affecting iCal

    When I travel to another time zone with my laptop I would like to be able to change the system time that appears in the menu bar to the local correct time.  However, I do NOT want this to cause any changes in my calendar times.  I use Calendar only f

  • CR: Error in File ~tmp2be86bbf9f5e260.rpt: Database Connector Error

    dear all, this has finally got the better of me. i have been successfully scheduling a set of reports each month, until now. they all come back with the following error, each with a different ~tmp.rpt file Error in File ~tmp2be86bbf9f5e260.rpt: Datab

  • JTabbedPane - BOLD selected tab title text.

    I want to BOLD the selected tab's title text while keeping the unselected tabs' title text in normal font. Anyone know how to achieve this effect?

  • Ordering pictures within  a project.

    In most of my projects, the pictures are ordered chronologically, but sometimes, within one project, the pictures get all jumbled up in a random order. How can I correct this? If I make a smart album in that project, the pictures are again ordered ap

  • PostScript feeding to the WRONG printer tray

    I've got a real quandry here. I have a system that runs mainly character mode reports, but a few bitmaps. They used to print to the same tray as the character mode reports. I use a perl script to print all reports to a postscript file, and then lpr t