Dealing with non-database elements!!

hi all, i knew that i have to deal with non-database elements from javascript code and not from SQL code.. but i need to do some processing from SQL code and then update non-database element, how could i do this??

You should use <?if:element = ''?> or <?if:element != ''?>
This should work also:
<?if:text(element)?> or <?if:not(text(element))?>
The condition is always true (false) when either the element is empty or does not
exist. Let me know, if you need to differentiate between both (probably using name() instead of text will work in this case).
If a pagebreak is inside the if statement than it is only shown when the condition is satisfied.
Hope that helps,
Klaus

Similar Messages

  • Execute query with non database block

    How to execute query with non database block when new form instance trigger.

    Hi Kame,
    Execute_Query not work with non database block. To do this Make a cursor and then assign values to non database block's items programmatically, see following example,
    DECLARE
    BEGIN
         FOR i IN (SELECT col1, col2 FROM Table) LOOP
                :block.item1 := i.col1;
                :block.item2 := i.col2;
                NEXT_RECORD;
         END LOOP;
    END;
    Please mark if it help you or correct
    Regards,
    Danish

  • Dealing with non-square pixels from video capture (CS3)

    Hi all,
    This is the problem I have : I watch a video on my PC using any utility such as, for example, CyberLink's PowerDVD. I pause the movie to capture a frame to the Clipboard, then I paste it into PS CS3 via a newly created document.
    Because the movie was shot and recorded on the DVD in widescreen format, therefore using non-square pixels (wider than they are tall), the still image in PS appears "shrunk" horizontally. I then go to Image|Pixel Aspect Ratio and set the ratio to, say, "D1/DV PAL Widescreen (1.42)", as I am in PAL-land. The still image now looks fine, and I can save it, for example in TIFF format ; it will retain its "non-square pixel" attribute, with the black bands on top and at the bottom.
    However, what I utimately want to do is use that still image on the Web, so I need to save it as a JPEG image, and this is where the problem happens : the JPEG conversion reverts those pixels to square ones, whether I use the "Save for Web and Devices..." option, or just the "Save As..." one.
    How can I turn my very heavy TIFF into a much leaner JPEG, while retaining the non-square pixels that give the image its correct proportions ? Is there a way around this problem ?
    I'm not used to dealing with non-square pixel images, so any help and tip will be greatly appreciated. Many thaks in advance.
    Dominic.

    As Zeno said, you can simply copy&paste. Also, there is always an equivalent square pixel format for each anamorphic format that can fully accommodate the image, which would be 1024x576 for PAL widescreen. For more info on PAR conversions, I recomemnd you do some reading in the online help files for After Effects or Premiere Pro.
    Mylenium

  • Dealing With Non Uniform Array Sizes

    Would it be possible to store data such as
    1 2 3 4 5 6
    0 2 4
    3 1 4 1 5 9 2 6 5 3 5 8 9
    Where each row is not nessicarly the same length. I need to later call a specific row by row number and plot the 1D array. I have figured out arrays wont deal with the non uniform length and will instead fill in the extra elements so they all match in length. Is there any way around this?
    Thanks

    It is generally better to use Repalce Array Subset or autoindexing to build an array. Insert into Array may cause memory allocation problems. Here are two mnodifications to your VI which show both methods. If you need to see the results as you go, the Replace Array Subset is best. If you do not need the data until the for loop completes, autoindexing is the preferred choice.
    Note that you may need to initialize your shift register. Run the VI multiple times and watch the results.
    Lynn
    Attachments:
    Variable Length Arrays.2.vi ‏15 KB

  • SSL problems with "non-secure elements"

    hello all
    We have made a WEB application based on Tomcat and Apache Struts. We have setup with SSL.
    SSL goes to Apache HTTP server, which speaks with Tomcat via apj13.
    The problem is that IE sometimes shows error message "This page contains both secure and non-secure elements. Do you want to
    display non-sescure elements ?". I think it has to something with javascript, because after that error massage
    javascript doesnt work anymore. If I click javascript error icon, it says "access is denied".
    That erorr happens randomly, I cant repeat it at the same place.
    Can anyone help me somehow ?
    At what circumstances IE displays that error ? We use version 6.0
    Maris Orbidans

    It turned out to be a Micro$oft bug
    http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b269682
    It seems that IE 6.0 has the same bug as 5.5.
    SYMPTOMS
    When you are using Secure Sockets Layer (SSL) and you click a link, you may receive the following warning message:
    This page contains both secure and non secure items. Do you want to display the non secure items?

  • Problem with non-database item

    I have a 10g rel 2 form that has a post-query trigger that populates a non-database item. The non-database item has a when-validate-item trigger which I only want to fire when the user changes something in that field not at query time because it causes the form status to be changed. How can I either prevent this trigger from firing in query mode or test within the trigger that I'm in query mode so that the logic won't get executed?

    Put this at the top of your when-validate trigger:
      If :system.mode = 'QUERY' then
        return;
      End if;I have found that post-query activity often causes ALL when-validate triggers at the item and block level to run. So you may need those three lines in every when-validate trigger.

  • How do I deal with "non match"pictures?

    I have a folder that is supposed to keep pictures of my wife only. However these pictures have been joined by others that bear tags for other folders.
    In the left top corner of these "trespassing" pictures there is a circle with a line through it titled "non match"
    How can I stop this happening please?
    Cliff

    Cliffie,
    Make sure that youve deselected Options > Show results that do not match in the Find bar (the third line from the top of the Organizer screen). If that doesnt work, then read this thread:
    John Rolfe Ellis, "Exact match" #1, 30 Apr 2008 11:55 pm

  • How to assign and transform or how to deal with xsd:anyType elements in 10g

    Hi,
    Any Update on this please...
    Hi,
    we are using canonical model as part of 10g, here I am not able to assign or tranform elements of type xsd:anyType to/from to other type elements. Solution with an example and quick reply is appreciated.
    =========================================
    Hi,
    By using copy-of xslt construct again input element structure is getting copied into the target mapper file, by using value-of xsl:construct just the value is getting assigned. Can you please elaborate on how to use this xsd:anyType elements in assign and tranform activities, overall how to use these elements in 10g, while implementing the canonical model.
    ex:
    xsl file: by using value-of
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:value-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>6556</ns1:amount>
    </abstractRef>
    </abstract1>
    Here amount is of type xsd;anyType which is present in the abstract complexType.
    xsl file: by using copy-of:
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:copy-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>
    <ns1:input>6556</ns1:input>
    </ns1:amount>
    </abstractRef>
    </abstract1>
    and while using it on assign activity, it is not assigning the input value to the xsd:anyType element, please provide an example on how to do this activity along with tranform.
    Edited by: user12679330 on Mar 1, 2010 4:46 AM

    >
    Try bpelx:append as a copy rule.
    >
    Since this thread is over three years old it will be interesting to see if OP is still waiting for a reply. ;)

  • ALV Grid bug when dealing with non-ASCII character

    Dear all,
    I have a requirement to display user's remarks on ALV.  The data element of the remarks column is TEXT200.  I know that each column in an ALV Grid can display at most 128 characters.  Since my SAP is an Unicode system, I expect that each column in my ALV Grid can display 128 Chinese characters, too.  However, the ALV Grid only display 42 Chinese characters at most.  Is this a bug in ALV Grid?  How can I fix it?
    I did a small experiment.  The results are listed below.  My version is Net Weaver 7.01.  The results show that the bug does not exist in ALV List.  However, my user prefers ALV Grid, which is more beautiful and elegant.
    Type of ALV
    Max number of
    ASCII character
    in an ALV column
    Max number of
    non-ASCII character
    in an ALV column
    REUSE_ALV_GRID_DISPLAY
    128
    42 Chinese characters
    CL_SALV_TABLE
    128
    42 Chinese characters
    CL_GUI_ALV_GRID
    128
    42 Chinese characters
    REUSE_ALV_LIST_DISPLAY
    132
    132 Chinese characters
    If you encounter the bug, please post your solution.  Thanks a lot. 

    It looks like limitation of ALV grid cell, which can contain up to 128 bytes in SAP gui.
    Your unicode characters are probably 3 bytes each.
    Check OSS Note 910300 for more detailed info.
    EDIT: Note 1401711 seems to be a correction for your issue It allows to use 128 characters (even if they take more than 128 bytes).

  • How to deal with non-continuous shapes and graphic styles

    I am not sure how to frame this question so I will try to describe the problem.
    Imagine I have two shapes. One is a hollowed out circle (like a doughnut chart). The second is a smaller filled in circle. The smaller filled in circle is then poitioned inside the hoolowed out one, so you have like a target but with no "middle" band. What I would like to do is apply a graphic style to the COMBINED shape. The problem is that if I select both shapes and apply the style, each shape will have its own style, whereas what I want is for the style to be distributed over the two shapes as if they were one. And if I use the shape builder tool, when I join the two shapes, from the outer hollowed out circle to the inner filled in circle, I fill in the shape for the "middle band" whereas I want that middle band to be empty.
    You can probably tell I don't know Illustrator and come from Photoshop. In PS, I would simply select my two shapes and apply a style. Since my selection forms a shape that ignores the middle band, the style applies evenly to the whole selection. Can I do something similar in Ilustrator? In reality my network of shapes is more complex that the example above and I do need to keep it a vector.
    Thank you for your suggestions.
    Chris

    There are really two types of Graphic Styles - Object level styles and Group level styles. There is no way to tell which style is which. So if you have an Object level Style and try to apply it to a group of objects or often a compound shape, you get each individual object having the style. If you have a Group level style and try to apply it to only an object, you often get nothing applied.
    It perhaps sounds like you have an Object level style and are trying to apply it to a group.
    There's no way to convert an Object level style to a Group level style or vice versa. The best (and pretty much only) way I've found to get around this is to apply the style to teh correct level then make a note of all the style settings, select the other level and recreate the style for that level.
    Whether or not a style applies correctly has a great deal to do with specific aspects of the style in addition to what level the style was generated from. This is a frustrating aspect of Graphic Styles.

  • [SOLVED]How do I deal with non-unicode filenames inside archives?

    I often get archives from Japanese Windows users with file names encoded in one of the myriad of Japanese character sets. Windows is pretty good about converting the filename to unicode before passing it on to any program or computer that expects it. However, it won't touch the filenames of things inside the archive for obvious reasons. Any way to make, say, unzip or 7z convert the filenames to unicode as they're extracted? At the moment I run Windows in Virtualbox and connect back to a shared folder and let Windows do the unzipping.
    Last edited by DJQuiteFriendly (2011-09-22 22:13:26)

    I don't know if there's any advancement WRT this, but there's a work-around here (under "UnZip Locale Issues" ) using convmv.

  • Dealing with optional XML elements

    We have a template that will print certain tables based on whether or not an element is present in the incoming XML file.
    I have no problem displaying these tables conditionally on XML elements that are always present (i.e. I can say <?if:element='Y'?>) but I'm running into problems when I need to display a table/field based on whether or not an element is present.
    Also, when the element in question is not present, the template ignores my page break and prints the remainder of the document on the same page.
    Can anyone recommend a way to accomplish the above?
    Thanks.

    You should use <?if:element = ''?> or <?if:element != ''?>
    This should work also:
    <?if:text(element)?> or <?if:not(text(element))?>
    The condition is always true (false) when either the element is empty or does not
    exist. Let me know, if you need to differentiate between both (probably using name() instead of text will work in this case).
    If a pagebreak is inside the if statement than it is only shown when the condition is satisfied.
    Hope that helps,
    Klaus

  • How can i get or set a non-database form element???

    i was using p_session.get_value_as_... and p_session.set_value for form elements that are database fields, but when i tried to do so with non-database elements the same way it doesn't work!!!!

    Rasha,
    The non-table field do not have corresponding attributes in the session storage, so you cannot reference them from PLSQL handlers, only table based field can be referenced. You can only use Javascript to reference those.
    Thanks,
    Dmitry

  • I have Photoshop Elements 6 and am dealing with the GIF frame delay bug. Must I upgrade?

    I am dealing with the Photoshop Elements 6 GIF animation frame delay bug. I understand there has not been a fix for some time so I want to know if one has been developed. If not what do I have to do to address this. Can I get an upgrade? What steps do I have to take and who do I deal with at Adobe for this?

    The gif delay problem persisted for many versions of PSE. You can buy PSE 12, but it's silly to buy it from adobe since their upgrade price is more than the street price for the full version at big box stores and online resellers.
    If your question is will adobe give you a free upgrade because of this bug, then the answer is no.

  • How can I deal with long sql by the oo4o?

    I am using VB and oo4o to develop a sql executor which is a extention of an old system.
    For some reason, I have to use oo4o v8.1.7 to deal with Oracle Database 8i to 11g.
    But when I send a very long sql(11KB) to it I got a error in the VB enviroment.
    The Err.Description is "automention error. Started object is disconnected by the client.".
    The Err.Number is "-2147417848 ".
    The sql that I send it to the program is a simple select sql that like select a, b, c, substrb(d, 1, 2), substrb(e, 2, 3) .... from A_TBL where A=aa;
    This sql is normally executed by the sqlplus but I got an error by the oo4o.
    When I insert a '' between the 30Xth items, it got exectuted normally.
    ex. select a, b, c, substrb(d, 1, 2), substrb(e, 1, 2) ..... substrb(303th, 3, 4), '', substrb(304th, 1, 2) ... from A_TBL where A = aa;
    How can I deal with this problem? Thanks.

    So how can use this function correctly?By learning what exceptions are, how they're used, and what you can do to deal with them. There's a tutorial here: http://java.sun.com/docs/books/tutorial/essential/exceptions/index.htmlAnd here's a quick overview:
    The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
    RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
    If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
    Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

Maybe you are looking for

  • Problem with using DSA signatures ON CARD

    Hi ppl, I've encountered a rather really wierd problem using DSA signatures on a java card applet. I just create the key using these two lines and i get a response which is not supposed to happen... KeyPair dsakey = new KeyPair (KeyPair.ALG_DSA, KeyB

  • How to fix 3G/VVM/MMS problems in 4.0 WITHOUT losing all of your data

    First off, I can't take credit for this. tekset21 on these forums mentioned trying a restore from DFU instead of straight up and that's when I started experimenting the last few hours. I've tried this twice. It worked the same exact same way. I'm gue

  • Is there a way to see the string returned by SOAP adapter at the Reciever

    Hello Friends I have a scenario as follows Sender:        Outside Client   - >>  Soap Adapter   - >XI   --->   RFC Adapter   ---> ZBAPI. The outside client sends an id to search through XI using SOAP adapter which inturn calls a ZBAPI to look for the

  • MIDI Drums not syncing with tempo track automation

    I created some tempo changes, basically subtle speed-ups etc, worked fine, recorded guitars and bass, made a rough mix, all sounded great. Now I go back to do more recording and editing, and the MIDI drums won't speed up with the automation, thus put

  • How to use the Portal Connection Service in a standard J2EE application

    Hi, We want to use portal connection service to connection backgend system from a standard j2ee application. But the connection need a connectionProperties object which is created in this way: ConnectionProperties connectionProperties = new Connectio