Strange question before the header function call

Hello

I use Oracle APEX 3.2.1.00.10 with a database of Oracle 10.2.0.4. It seems that when I call some functions in an anonymous plsql block a page header before I get

ORA-01858: a non-digit character was found here where was waiting for a digital

errors. The functions in question accept 2 types of NUMBER and RETURNS a type NUMBER. The code works correctly PLSQL. Is there a limit on the size of a function I can call
directly from APEX or maybe theres some type conversion happening?

All the ideas that it is rather strange that the other functions seem to work well

Thanks in advance!

As Paul said, there are probably some date related code in the body of the function. The reason why it performs very well outside the APEX is perhaps because the default NLS_DATE_FORMAT value is different to what uses the APEX. Try to play with it, hope that helps.

Tags: Database

Similar Questions

  • How does the library function call Labview? Can I emulate using C++?

    Hi all. I recently finished writing a dll CUDA for LabView, and now I'm in the steps of optimization of code, memory management, etc. BUT since my code depends on the entries of Labview (lots of data under types of specific data as table manages and Clusters labview) I can't use the CUDA Profiler or the Profiler VC ++ on the DLL. What I intend to do runs labview and then out of all data entry for the DLL in a binary file and then add an additional function in my code that will read in the binary file, allocate and assign variables to their respective positions, and then call the specific DLL function in Labview. In the end, this miniature function will act as the library function call to my specific group of data entries.

    In any case, I started to make this purchase all my data entry of cluster and it comes out in a binary file. And then I started the initialization of the handles of labview, allocating memory and begins to write the binary data in the memory and it works for integers (ints), floats, etc., but I'm confused on how it works with table handles!

    Some examples of code:

    Sets the Handle for table 1 d for INT
    typedef struct {}
    int length;
    int val [1];
    to access the value in a row-online val [Online]
    } Array1dInt, * Array1dIntHandle;

    int main()
    {
    Array1dIntHandle x = new Array1dInt *;
    (* x) = new Array1dInt;

    ifstream file ('TESTDATAIN.dat', ios: in | ios::binary);

    If (file.is_open ())
    {
    file ((char *) &(*x)-> length, sizeof;)
    file ((char *) &(*x)-> val [0], sizeof (int) *(*x)-> length);

    LabviewSpecificFunction (x);
    leader. Close();
    } else
    {
    < "file="" did="" not="" open!"=""><>
    }
    return 0;
    }

    __declspec(dllexport) LabviewSpecificFunction (Array1dIntHandle x)
    {
    ...
    }

    However, my program crashes when the table is nominally big, and it is expected, because if we look at the Array1dHandle, it has allocated only enough memory to 1 item of value! YET, somehow, in its magical and mysterious labview is capable of making val [1] be val [HOWEVERMANYYOUWANT], even if C++ 101 says that val [1] is a constant pointer, and even if I dynamically allocated memory another somwhere, I would never be able to put these data in this round!

    Can you explain, or maybe even write example on how I can fool my program into thinking that the binary code comes from labview, so I can then run my program independent of allowing me to profile the functions inside labview?

    I hope that this question is clear and my sample code is also clear, but I'm happy to answer any questions that relate to this.

    Thank you all!

    I think that I thought about it.

    Array1dIntHandle x = new Array1dInt *;
    int tempsize;
    file ((char *) & tempsize, sizeof;)
    (* x) = (Array1dInt *) malloc (sizeof (int) + sizeof (int) * tempsize);
    (* x)-> length = tempsize;
    file ((char *) &(*x)-> val [0], sizeof (int) *(*x)-> length);

    Well enough, you will need to make the handle, and then make a new Array1dInt * for him, then read in the length of the array in a temporary variable. Then use this information to then malloc memoery quantity you need for the table and pass this place on the handle. Now the handle will point to the size of the memory and you will be able to access the memory in the format, you've done the handle. Badabing badaboom

  • Before the header

    Hello

    I have a page that is supposed to be doing some work and then redirect to another, it is because this page should take arguments through the URL (HTML link is used, not a form submission to pass arguments) and avoid the pressure of the user refresh and repeating the action I want to create a page that does the job and then redirects to the page of the user clicks on the link with some action (for example. ("Delete row" in a tabular presentation).

    Now for my problem, which seemed perfect for this is a header and branch process. In the process I get the job done and then in the direction of redirect to the page. But unfortunately, APEX is not what I want, if there is no branch that processes are running but with a branch, the processes are ignored. Don't you think that it is a bug in APEX? The use of a branch "before the header" decreases a lot when you can run any process "before the header" before the branch is made, is not it? At least it is unexpected and does not seem logical, I want to redirect without making the process you could always solve that with conditions, in this way the problem is unsolvable using built-in apex mechanism and I have to resort to the use of Javascript to redirect the page (and how you even include process using the Javascript redirect success message?)

    So, in short, I am missing a more common idiom to set up a page that makes a few treatment via parameters in the URL and then performs a redirect to another page, or will be the only solution using Javascript?

    Search for suggestions or solutions, as always on this forum useful.


    PS. I can't use a form, there must be a link located in each row of the table. "Column links" could not be used because I have multiple links in the same cell in the report, so I haven't looked into them. I generate the links myself in my SQL statement using this function:

    FUNCTION CreateLink (p_page in varchar2 default p_items null, varchar2 default NULL,
    p_values in varchar2 default null, p_request in varchar2 default null)
    return varchar2
    is
    Start
    -for example. f? p = 123:4:3660195698136138:P4_PACK_NAME, P4_FUNC_NAME:PKG_FILE_NAME, GENERATE_FILE_NAME_US
    return ' f? p =' || APEX_APPLICATION. G_FLOW_ID | ':'
    || NVL (p_page, APEX_APPLICATION. G_FLOW_STEP_ID) | ':'
    || APEX_APPLICATION. G_INSTANCE | ':'
    || p_request | ':::'
    || p_items | ':'
    || p_values;
    end;

    Published by: user10858232 on January 26, 2009 03:44

    Published by: user10858232 on January 26, 2009 03:45

    Published by: user10858232 on January 26, 2009 03:46

    Hello:

    You may reach the redirection using 'owa_util.redirect_url' as in the example below

    owa_util.redirect_url('f?p=::v('SESSION')::NO:::');
    apex_applicaiton.g_unrecoverable_error=true;
    

    So do treat your 'work' a header and add the 2 statements at the end of this before that the process the header.

    CITY

  • How to insert a &lt; script &gt; code before the &lt; / head &gt; tag?

    I would like to insert a < script > code inside pages of my site, and it should be placed before the < / head > code.

    Can I handle this with muse? Otherwise, every time when I export the site in HTML, I need to open the files updated and copy and paste the SCRIPT code in the HEAD again.

    Adding scripts to the head section of your documents is not currently supported in Muse, however it is planned for future versions of Muse.

    You can add links to the scripts by using the object-> Insert HTML code, but it will be inserted at roughly the position of the element in HTML page.

  • "before the header" process and page elements

    I want a process running in 'On Load before the header' page X see an element value them was introduced to her page Y.
    How this can be done?

    The element on page X will have its value before executing the process "before head". You can see if your page in "debug" mode.i

    CITY

  • Strange gaps in the header and footer

    Im getting gaps in the header and the footer on some of my pages.  Sometimes, the gaps are filled with the background color of the column and other times they are the color of the body that is even stranger.  An example would be http://www.mojogar.com/pcRepair.aspx .  In IE8, I get a gap on the top but not the bottom.  In Firefox3, the gap is on the bottom and not the top.  ???

    This is the page for markup;  (followed by the CSS)

    < % @ Page Language = "VB" ContentType = "text/html" percent >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    "< html xmlns ="http://www.w3.org/1999/xhtml"> <!-InstanceBegin template="/Templates/masterOne.dwt.aspx ' codeOutsideHTMLIsLocked = 'false'->
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    <!-InstanceBeginEditable name = "doctitle"-->
    < title > Untitled Document < /title >
    <! - InstanceEndEditable - >
    <!-InstanceBeginEditable name = "head"->
    <! - InstanceEndEditable - >
    < link href = "thrColHybHdr.css" rel = "stylesheet" type = "text/css" / > <!-[if IE] > "
    < style type = "text/css" >
    / * place patches css for all versions of Internet Explorer in this conditional comment * /.
    .thrColHybHdr # sidebar1″, .thrColHybHdr #sidebar2 {padding-top: 30px ;}}
    .thrColHybHdr #mainContent {zoom: 1; padding-top: 15px ;}}
    / * the owner above zoom gives IE the hasLayout property, avoid several bugs * /.
    < / style >
    <! [endif]-->
    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "
    < link href = "SpryAssets/SpryMenuBarVertical.css" rel = "stylesheet" type = "text/css" / > "
    < link href = "SpryAssets/SpryMenuBarHorizontal.css" rel = "stylesheet" type = "text/css" / > "
    < / head >

    < body class = "thrColHybHdr" >


    < div id = "container" >
    < div id = "header" >
    <!-end #header->
    < div class = "fltlft" > < img src = "images/mojoLogoSmall.png" alt = "digital Mojogar design & amp; PC repair' width = '172' height = '41' border = '0' well = "#Map" / >
    < name of the map 'Map' id = 'Card' = >
    < area shape = "rect" coords = "2,2,172,39" href = "default.html" target = "_self" alt = "House Mojogar" / > "
    < / map >
    < / div >
    < div class = "fltrt" > <!-InstanceBeginEditable name = "HeadRight"-> HeadRight <! - InstanceEndEditable - >

    < / div >
    < div class = "MenuVertDiv" >
    < ul id = "MenuBar2" class = "MenuBarHorizontal" >
    < li > < a class = "MenuBarItemSubmenu" href = "#" > < /a > Design
    < ul >
    < li > < a href = "webDesign.aspx" > Web < /a > < /li > design ""
    < li > < a href = "webDev.aspx" > creating websites < /a > < /li >
    < li > < a href = "logo.aspx" > creation of Logo < /a > < /li >
    < /ul >
    < /li >
    < li > < a href = "#" class = "MenuBarItemSubmenu" > < /a > Animation
    < ul >
    < li > < a href = "webDev.aspx" > Animation Flash < /a > < /li > ""
    < /ul >
    < /li >
    < li > < a class = "MenuBarItemSubmenu" href = "#" > Support < /a >
    < ul >
    < li > < a href = "pcRepair.aspx" > PC Repair < /a > < /li > ""
    < li > < a href = "virus.aspx" > Virus < /a > < /li > ""
    < li > < a href = "email.aspx" > Email < /a > < /li > ""
    < li > < a href = "backup.aspx" > backup data < /a > < /li > ""
    < li > < a href = "wireless.aspx" > wireless < /a > < /li > ""
    < li > < a href = "software.aspx" > software < /a > < /li >
    < li > < a href = "hardwareInstall.aspx" > hardware < /a > < /li > ""
    < li > < a href = "server.aspx" > repair of server < /a > < /li > ""
    < li > < a href = "busConsult.aspx" > Consulting < /a > < /li > ""
    < /ul >
    < /li >
    < li > < a href = "contact.aspx" > Contact < /a > < /li > ""
    < /ul >
    < / div >
    <! - end header - > < / div >

    < div class = "masterBackground" >
    < div id = 'sidebar2' >
    <!-InstanceBeginEditable name = "rightSidebar"->
    < div id = 'sidebar2' >
    < h4 > when your computer is having problems, have a professional to look over your system to update or repair your operating system, programs installed verification and search for viruses and other malware. < / h4 >
    <!-end #sidebar2->
    < / div >
    <! - InstanceEndEditable - >
    <!-end #sidebar2->
    < / div >

    < div id = "mainContent" >
    <!-InstanceBeginEditable name = "main"->
    < div id = "mainContent" >
    < div class = "MarginTopZero" >
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,28,0" width = "580" height = "300" title = "Computer Support" >
    "< param name ="movie"value="images/flash/PCCollage.swf "/ >
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    "" < embed src="images/flash/PCCollage.swf" quality = "high" wmode = "opaque" pluginspage = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type = "application/x-shockwave-flash" width = "580" height = "300" > < / embed > "
    < / object > < / div >
    < h2 > don't not feel lonely when your computer stops.  Computer problems can leave you in the dark about what is wrong.  Help is a call away. < / h2 >
    < h4 > our repair and tune-up service consists of the following: < / h4 >
    update the < /li > < li > operating systems
    updates of operating system < h5 > help the security of the computer and can add features that the manufacturer has worked to make life easier end-user.  Updates as often as every week couple come out on some operating systems. < / h5 >
    audit of programs < li > < /li >
    < h5 > many < a href = "software.aspx" title = "go to our software page" target = "_self" > < /a > applications added over time and can slow down the performance of any PC taking the resources processor and memory, not to mention the hard drive space. " < / h5 >
    < li > Security overlook < /li >
    < h5 > < a href = "virus.aspx" target = "_self" > < /a > anti-virus definitions must be kept up to date. "  Malware, spyware, Trojans and new viruses are always introduced in nature (the internet is a jungle).  Antivirus applications must be updated as well.  Subscriptions to paid suppliers can expire and updates may be trolling for months or even years (I saw happen). < / h5 >
    < li > anti-virus fine tuning < /li >
    < h5 > a lot of antivirus programs is swollen applications and will not stop annoying the user with pop ups and information.  Many users also never know when and how often their antivirus scans. < / h5 >
    browser < /li > < li > configuration
    < h5 > there are literally hundreds of options in the settings of browsers for security and optimization.  Fine these beautiful can in some cases increase surfing speed. < / h5 >
    < li > implementation market & off to the low value < /li >
    < h5 > if your like most people, your PC begins never soon enough.  Get a check full of programs and services which start with your computer and optimize them to increase speed. < / h5 >
    <!-end #mainContent->
    < / div >
    <! - InstanceEndEditable - >

    <!-end #mainContent->
    < / div >
    <! - end masterBackground - > < / div >

    <!-this element of compensation should immediately follow the #mainContent div in order to force the #container div to contain all the child-> fleet
    < %--< br class = 'clearfloat' / >
    -% >
    < div id = "footer" >
    Copyright Mojogar 2010 < /p > < p >
    <!-end #footer--> < / div >
    <!-end #container--> < / div >
    < script type = "text/javascript" >
    <!--
    var MenuBar2 = new Spry.Widget.MenuBar ("MenuBar2", {imgDown: "..."}) "" / SpryAssets/SpryMenuBarDownHover.gif ', imgRight: ".. ({"/ SpryAssets/SpryMenuBarRightHover.gif"});
    ->
    < /script >
    < / body >
    <! - InstanceEnd - > < / html >

    CSS:


    @charset "utf-8";

    {body
    margin: 0; / * It is advisable to zero, the margin and the filling of the body to hold element has a different default browser * /.
    padding: 0;
    text-align: center; / * This centers the container in IE 5 * browsers. The text is then set left aligned by default in the #container selector * /.
    color: #9FEE00;
    do-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    do-size: 100%;
    background-color: #333;
    }

    H1 {}
    font size: xx-large.
    Color: #000;
    }

    H2 {}
    font-size: XL;
    }

    H3 {}
    font size: large;
    }

    H4 {}
    font-size: medium;
    }

    H5 {}
    font size: small;
    }

    H6 {}
    do-size: x-small;
    }
    {p}
    font size: xx-small;
    }
    H1, h2 {}
    padding-top: 20px;
    padding-right: 10px;
    padding-bottom: 4px;
    padding-left: 10px;
    }

    H3, h4, h5, h6 {p}
    padding-top: 3px;
    padding-right: 5px;
    padding-bottom: 3px;
    padding-left: 5px;
    }


    Li {}
    make-weight: bold;
    }
    UL {}
    list-style-type: decimal;
    }
    {of the ol
    make-weight: bold;
    }
    a {}
    }


    a: link {}
    color: #FFF;
    }
    a: hover {}
    Color: #333;
    background-color: #6C8CD5;
    }
    a: active {}
    Color: #F00;
    }
    a: visited {}
    color: #FF4848;
    }


    / * This hybrid layout tips
    1. from the lateral columns sizing based on the em is based on the user's default font size, you can be sure graphics in the columns accordingly. Built correctly, it is more accessible to those who need larger font sizes, since the width of the columns remains proportionate. If this is not desirable in your design, just change the width of a pixel size and do not forget to change the margins on the div #mainContent accordingly.
    2. given that the sizing of the side columns in this layout are based on the font size of 100% in the body element, if you decrease the overall size of the text by using a font size: 80% on the body element or the #container, do not forget that the column widths will reduce proportionally. You can increase the size of the margins on the side of the #mainContent div, and their widths to compensate for this.
    3. If the sizing of fonts is changed in different quantities on each div instead of on the overall design (ie: #sidebar1 is a font size of 70% and #mainContent has a font size of 85%), this will change proportionally each of the overall size of divs. You can adjust the base on your final sizing of fonts.
    4. the #container div is not necessary for this layout to the width of 100%. You can use to create columns of fake or to limit the width of the layout.
    5. it is not necessary to have the width of 100% on the #container div since, by nature, a div takes up 100% of the available space. Therefore, here, if you want to reduce the size of the global container - leaving perhaps a bit of margin on each side - is already available for adjustment.
    */
    .thrColHybHdr #container {}
    Width: 780px;
    / * margin: 0 auto;  the margins to the center of the page if necessary (in conjunction with a width) auto * /.
    text-align: left;
    padding: 0px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    left margin: auto;
    }

    .thrColHybHdr #header {}
    background-color: #C9F76F;
    height: 100%;
    Width: 780px;
    margin: 0px;
    padding: 0px;
    }
    .thrColHybHdr #header h1 {}
    margin: 0;
    padding: 0px;
    }

    / * Sidebar1″ tips:
    1 be aware that if you set a value for the font size on this div, the width of the div will be adjusted accordingly.
    2. as we work in ems, it is preferable not to use the filling in the sidebar itself. It will be added to the width for browsers compatible standards creating a real unknown width.
    3. the space between the wall of the div and the items it contains can be created by placing a margin left and right on these items as seen in the rule ".thrColHybHdr #sidebar1 p.
    */
    {.thrColHybHdr #sidebar1}
    Width: 13em;
    border-top-width: thick;
    border-top-style: solid;
    border-bottom-color: #C06;
    float: left;
    height: auto;
    }
    {.thrColHybHdr #sidebar2}
    Width: 200px;
    text-align: center;
    margin: 0px;
    padding: 0px;
    float: right;
    }
    H3 *.thrColHybHdr # sidebar1″, p.. thrColHybHdr # sidebar1″, .thrColHybHdr #sidebar2 .thrColHybHdr #sidebar2 h3 {}
    left margin: 0px; * / / * the left and right margins should be to all of the items that will be placed in the side columns * /.
    / * margin-right: 0px;
    }
    */
    / * MainContent tips:
    1. If you give this div #mainContent a value of different size of the div # sidebar1″, the margins of the #mainContent div will be based on the font size and the width of the div #sidebar1 depend on the size of the font. You can adjust the values of these divs.
    2. the space between the mainContent and sidebar1″ is created with the left on the mainContent div margin regardless of how content div the sidebar1″ contains, the space of the columns will remain. You can remove the left margin if you want the #mainContent div text to fill the space of #sidebar1 when the content of #sidebar1 is complete.
    3. to avoid falling of float, you may have to test to determine the size of the image/approximate maximum element because this provision is based on the calibration of fonts the user combined with the values that you set. However, if the user has their browser game lower than normal font size, less space will be available in the #mainContent div that you see on the test.
    4. in the Internet Explorer conditional comment below, the zoom property is used to give the mainContent "hasLayout". This avoids several specific IE bugs that may occur.
    */
    {.thrColHybHdr #mainContent
    text-align: center;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    left margin: 0px;
    Width: 580px;
    background-color: #2A 4480;
    color: #C9F76F;
    padding: 0px;
    }
    . {MarginTopZero}
    margin: 0px;
    padding: 0px;
    }

    {.busConslt}
    height: 600px;
    Width: 800px;
    }

    idea {}
    height: auto;
    Width: 100%;
    }


    .thrColHybHdr #footer {}
    padding: 0;
    background-color: #C9F76F;
    margin: 0px;
    }
    .thrColHybHdr #footer p {}
    margin: 0; / * zero setting the margins of the first element in the footer will avoid the possibility of the collapse of the margin - a space between the div tags * /.
    padding: 0px; / * padding on that element will create space, just as it would the margin, free margin collapse question * /.
    Color: #000;
    }


    / * Various classes for reuse * /.
    .fltrt {/ * this class can be used to float right to the item in your page.} The floating element must precede the element it should be next to the page. */
    float: right;
    }
    .fltlft {/ * this class can be used to float an element on your page to the left * /}
    float: left;
    margin-right: 0px;
    padding-left: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    }
    .clearfloat {/ * this class must be placed on an element div or break and should be the last item before closing a container should completely contain a float * /}
    Clear: both;
    height: 0;
    }
    {#defMainLft}
    Width: 49%;
    float: left;
    text-align: center;
    }
    {#defMainRt}
    Width: 49%;
    float: right;
    text-align: center;
    }
    {.absolRgt}
    position: absolute;
    Top: 0px;
    right: 0px;
    }
    {.relRgt}
    position: relative;
    Top: 0px;
    right: 0px;
    }
    {.defFull}
    position: relative;
    height: 263px;
    Width: 100%;
    border-bottom-width: medium;
    border-bottom-style: solid;
    border-bottom-color: #ff4900;
    }
    {.absolLft}
    position: absolute;
    Top: 0px;
    left: 0px;
    }
    {.defFullTop}
    position: relative;
    Width: 600px;
    border-top-width: thick;
    border-top-style: solid;
    border-bottom-color: #000;
    margin: 0px;
    }
    {.tuneUpTop}
    background-color: #000;
    color: #FFF;
    margin: 0px;
    padding: 0px;
    }
    {.contactForm}
    Width: 470px;
    height: auto;
    left: auto;
    right: auto;
    }
    {.borderRight}
    border: medium solid #A62F00;
    margin-top: 0px;
    margin-bottom: 0px;
    left margin: 0px;
    }
    . {MenuVertDiv}
    margin-bottom: 0px;
    Clear: both;
    height: 38px;
    background-color: #A62F00;
    Width: 100%;
    }
    {.masterBackground}
    background-color: #BF5930;
    margin: 0px;
    padding: 0px;
    }

    Your HTML code contains conditional comments for IE.  Try to reduce or remove the extra padding and see if that helps.

    / * place patches css for all versions of Internet Explorer in this conditional comment * /.
    .thrColHybHdr # sidebar1″, .thrColHybHdr #sidebar2 {padding-top: 30px ;}}
    .thrColHybHdr #mainContent {zoom: 1; padding-top: 15px ;}}
    / * the owner above zoom gives IE the hasLayout property, avoid several bugs * /.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • How to implement a callback to the help function call library function node in LabView?

    I try to call a fuction from a SDK.dll library by using the node call library feature. The SDK has been provided to

    me and I don't have the source code, just the .dll and .h files.

    The SdkSetPropertyEventHandler function has a function of recall as one of its parameters. How to apply the

    callback using the NSI node? I'm a good programmer LabView but this is my first time using the library to call

    Function node. I read all the info I can find on the web site of NOR and the discussion Forum, but can not understand

    This one out. I'm using LabView 8.6.

    The deacribes SDK.h function as:

    Function: SdkSetPropertyEventHandler

    (SdkSetPropertyEventHandler) SdkError SDKAPI
    SdkCameraRef inCameraRef,
    SdkPropertyEvent inEvnet,
    SdkPropertyEventHandler inPropertyEventHandler,
    SdkVoid * context);

    //
    Description:
    Registers a callback function to receive the status
    change the notification events for the States of property on a camera.
    //
    Parameters:
    In: inCameraRef - designate the object camera.
    inEvent - designated one or all the events will be completed.
    inPropertyEventHandler - designate the pointer to the callback
    function to receive the camera property-related events.
    inContext - designated application information must be passed
    way to the callback function. All the data necessary to
    your application can be passed.
    Output: no
    //
    Returns: A sdk errors.
    -----------------------------------------------------------------------------*/

    A separate header called SDKTypes.h file contains the following data:

    typedef SdkUInt32 SdkPropertyEvent;
    typedef SdkUInt32 SdkPropertyID;
    typedef void SdkVoid;

    typedef struct __SdkObject * SdkBaseRef;
    typedef SdkBaseRef SdkCameraRef;

    /*-----------------------------------------------------------------------------
    SdkPropertyEventHandler
    -----------------------------------------------------------------------------*/
    typedef SdkError (SDKCALLBACK * SdkPropertyEventHandler))
    SdkPropertyEvent inEvent,
    SdkPropertyID inPropertyID,
    SdkUInt32 inParam,
    SdkVoid * context);

    Thanks for your help.
    Alejandro

    Andrew_E wrote:

    Hi Rolfk,

    You are absolutely right. This article describes what you were talking about? I'm just trying to get as much information as possible on this thread if the solution is easier to find for the future. Thank you.

    Yes, but I find the idea of using .net to call a LabVIEW VI as callback function C a bit as using a roll of Steam ironing your pants. Why do it? Well the steamroller has extra security guards that make it less likely that you'll break your pants in the process, but it's not elegant IMHO.

    Write a C DLL that translates between a C callback and a user event LabVIEW using the PostLVUserEvent() of the interface of the kernel to run LabVIEW function seems so eleganter for me. Yes, it's a bit of programming in C, but good!

    Rolf Kalbermatter

  • How to use the node function call library for a function in the dll with the data SUB type

    Hi all

    I would ask for your kind help

    I am facing a problem with the call library node.

    I have a C++ (stdcall) function, which has Sub as data type

    XXXX error code (hwnd, lid, getValue, * Sub data1, * Sub data2)

    data1 and data2 types are constantly changing based on the value of 'getValue '.

    Mainly I can use the call library node several times and adapt each node according to the types of data data1, data2 and extract the values and use in the code. Here is no question. Real question is:

    My question:

    How can I use a node of library time call and make a case according to the 'getvalue', who will control the data1, data2 data type. Here I really seeking solutions.

    My tests:

    I used varaints as entry to the libray call node of the data1, data2 and selected parameters in the call libraby node as "Adapt to type. Here labview just crashed.

    I appreciate your suggestions to feedbackand.

    Thank you

    Karine

    You must allocate enough space for data1 and data2, and then pass a pointer to this space. An easy way to do this is the function to initialize table. Set the U8 type and size for the number of bytes required. Pass this array to the function as a pointer of table data.

    After the function call returns, you need to extract the data in the table. You can do it manually, but a simple approach is to use the array of bytes to a string. Then, in a housing structure, use Unflatten chain to convert the string to the correct data type. This method also converts the "endianness" which will be probably necessary; Be sure to only set all entries for unflatten correctly.

  • redirect with notification before the header

    I have a report pages that have "edit" buttons that invite you to the URL of the page change the APEX with the important information such as primary keys. If the data changes (i.e. a record has been deleted) under the user and the user clicks on 'Edit', the user receives the message "ugly":

    ORA-01403: no data found
    < stop sign > error on line cannot.
    Ok

    It occurs due to forward the process of the row header. I could put some additional areas to inform the user and conditions to see the/run the page differently. But I expect to do is to redirect the user to the page of report and have a notification message indicating the change data and the current data.

    I have a process before the fetch line process that checks if the data is there. If the data does not exist, then owa_util.redirect_url () redirects to the page of the report. However, I was unsuccessful by displaying a notification message. I tried setting g_notification, g_print_success_message as well as to the news of success in the redirect URL. However, I was unsuccessful in creating a notification. Here is forward the process of the header:
    declare 
    cnt PLS_INTEGER;
    
    begin
    select count(*) into cnt
    from board 
    where board_id=:P220_BOARD_ID;
    
    if cnt != 1 then
      apex_application.g_notification :='Data Changed';
      owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220:::&success_msg=changed data');
      apex_application.g_unrecoverable_error:=true;
    end if;
    end;
    Any thoughts would be greatly appreciated. Thank you.
    -Carmine

    Carmine:

    You can try the following

    Create an application called g_error_msg
    In the redirect url the value g_error_msg to the value desired

    owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220::G_ERROR_MSG:changed data');
    

    Define a 'Load On - before heading' process in the report with the following code page

    apex_application.g_notification:=:g_error_msg;
    :g_error_msg := null;
    

    Make this process depends on "g_error_msg", with a value non-zero

    CITY

    Published by: city was on October 26, 2009 06:26
    Change of apex_application.g_notification_message: =: g_error_msg to apex_application.g_notification: =: g_error_msg;

  • The header function

    Hi all

    I want to use the function header to redirect to another page, after information from a form has been submitted and processed. I can do this without any problems, but I need to pass a variable which is necessary for the landing page with the header information.

    I try to do it by using the code below and this is the part in orange which causes boredom!

    If ($done |! isset ($gallery_id)) {}

    header ('Location: http://localhost/photo_gallery/admin/year_view.php? year_id = "$year_id""");

    "exit";

    }

    What is the correct syntax to allow me to pass the variable? Any ideas would be greatly appreciated.

    Thank you.

    Found the answer.

    If ($done |! isset ($gallery_id)) {}

    Header ('Location: http://localhost/photo_gallery/admin/year_view.php?year_id='. $_GET['year_id']);

    "exit";

  • A question about the analytical function used with the GROUP BY clause in SHORT

    Hi all

    I created the following table named myenterprise
    CITY       STOREID    MONTH_NAME TOTAL_SALES            
    ---------- ---------- ---------- ---------------------- 
    paris      id1        January    1000                   
    paris      id1        March      7000                   
    paris      id1        April      2000                   
    paris      id2        November   2000                   
    paris      id3        January    5000                   
    london     id4        Janaury    3000                   
    london     id4        August     6000                   
    london     id5        September  500                    
    london     id5        November   1000
    If I want to find which is the total sales by city? I'll run the following query
    SELECT city, SUM(total_sales) AS TOTAL_SALES_PER_CITY
    FROM myenterprise
    GROUP BY city
    ORDER BY city, TOTAL_SALES_PER_CITY;
    that works very well and produces the expected result, i.e.
    CITY       TOTAL_SALES_PER_CITY   
    ---------- ---------------------- 
    london     10500                  
    paris      17000            
    Now in one of my books SQL (Mastering Oracle SQL) I found another method by using the SUM, but this time as an analytic function. Here's what the method of the book suggests as an alternative to the problem:
    SELECT city, 
           SUM(SUM(total_sales)) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY
    FROM myenterprise
    GROUP BY city
    ORDER BY city, TOTAL_SALES_PER_CITY;
    I know that the analytic functions are executed after the GROUP BY clause has been transformed completely and Unlike regular aggregate functions, they return their result for each line belonging to the partitions specified in the partition clause (if there is a defined partition clause).

    Now my problem is that I do not understand what we have to use two functions SUM? If we only use one only, i.e.
    SELECT city, 
           SUM(total_sales) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY
    FROM myenterprise
    GROUP BY city
    ORDER BY city, TOTAL_SALES_PER_CITY;
    This generates the following error:
    Error starting at line 2 in command:
    SELECT city, 
           SUM(total_sales) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY
    FROM myenterprise
    GROUP BY city
    ORDER BY city, TOTAL_SALES_PER_CITY
    Error at Command Line:2 Column:11
    Error report:
    SQL Error: ORA-00979: not a GROUP BY expression
    00979. 00000 -  "not a GROUP BY expression"
    *Cause:    
    *Action:
    The error is generated for the line 2 column 11 which is, for the expression SUM (total_sales), well it's true that total_sales does not appear in the GROUP BY clause, but this should not be a problem, it has been used in an analytical function, so it is evaluated after the GROUP BY clause.

    So here's my question:

    Why use SUM (SUM (total_sales)) instead of SUM (total_sales)?


    Thanks in advance!
    :)





    In case you are interested, that's my definition of the table:
    DROP TABLE myenterprise;
    CREATE TABLE myenterprise(
    city VARCHAR2(10), 
    storeid VARCHAR2(10),
    month_name VARCHAR2(10),
    total_sales NUMBER);
    
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('paris', 'id1', 'January', 1000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('paris', 'id1', 'March', 7000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('paris', 'id1', 'April', 2000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('paris', 'id2', 'November', 2000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('paris', 'id3', 'January', 5000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('london', 'id4', 'Janaury', 3000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('london', 'id4', 'August', 6000);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('london', 'id5', 'September', 500);
    INSERT INTO myenterprise(city, storeid, month_name, total_sales)
      VALUES ('london', 'id5', 'November', 1000);
    Edited by: dariyoosh on April 9, 2009 04:51

    It is clear that thet Analytics is reduntant here...
    You can even use AVG or any analytic function...

    SQL> SELECT city,
      2         avg(SUM(total_sales)) OVER (PARTITION BY city) AS TOTAL_SALES_PER_CITY
      3  FROM myenterprise
      4  GROUP BY city
      5  ORDER BY city, TOTAL_SALES_PER_CITY;
    
    CITY       TOTAL_SALES_PER_CITY
    ---------- --------------------
    london                    10500
    paris                     17000
    
  • Returning to the question before the amendments update

    I rebooted and installed the updates on my computer this morning.  After completing the installation of the updates, I received a message that says updates have been misconfigured and that he was back to before the changes and do not turn off my computer.  He had run this message for more than half an hour, how much I had to leave the machine.

    What does that mean?  What should I do to fix?  How can I get back on my computer?  When I left, I was unable to get out of this error message and a password to connect.

    I have a Windows Vista machine equipped Dell.  Installation and configuration of updates usually takes some time, but not a long time.

    Any help is appreciated.

    Assumed as replied, without other added messages

  • BB10 simulator: questions about the clock function

    I don't know, but I have the notion that under the Simulator for BB10 the clock() function returns a value of timer resolution of the host and not the right pair

    And since

    #define CLOCKS_PER_SEC 1000000

    during the conversion of the clock in seconds it will be least bad results under windows. Because Windows there

    #define CLOCKS_PER_SEC 1000

    I want to keep constant 60 FPS and I have a code like:

    const int FRAMES_PER_SECOND = 60;
    const int SKIP_TICKS = 1000 / FRAMES_PER_SECOND;

    int GetTickCount (void)
    {
    Return MathUtils::dti ((double) clock () / CLOCKS_PER_SEC);
    }

    and the game loop is:

    int t_prev = GetTickCount();

    mbGameRunning = true;
    While (mbGameRunning)
    {
    int t = GetTickCount();

    If ((t-t_prev) > SKIP_TICKS)
    Tick();

    Draw();

    EventLoop();

    t_prev = t;
    }

    Am I missing something?

    The clock() function only increments while your program is managed by the operating system. When the operating system switches to another task, "clock" your program stops running.

    You must use:

    clock_gettime(), which is the system clock that is still running.

  • scroll the content before the header below it and not on top

    Hello

    At my header and footer any place in this content on the homepage rode underneath

    woke up today and the content on the home page is scrolling on the header

    any thoughts on how to address them to the home page and other pages scroll in my head of sticky which is pinned at the top? \

    Thank you

    Hello

    Please try the following steps to resolve this problem.

    • A - master page open in Design view.
    • Open the layers panel and create a new layer and name as "navigation" to ensure that it at the top of the list.

    • Select the navigation elements as shown in the screenshot below.

    • Once selected, right-click on it and select "move layer".
    • Then select the top layer of most "navigation".
    • This will bring the items selected in the top of the stacking order and will solve these two issues.

    Kind regards

    Vivek

  • Question of the aggregate function

    Hi, I have question about the ability to write simple a selection (instead of select Select).
    I have units with members and I want unity with the least number of members. Is possible to units with the same number of members, in this case, I get a random of these units.
    It's my version "select Select:
    Select min (members_count)
    de)
    Select United Nations. UNIT_ID,
    County (me. Members_count MEMBER_ID)
    members of the self,
    units of the United Nations
    where me. UNIT_ID is the United Nations. UNIT_ID
    United Nations Group. UNIT_ID
    order of members_count
    )
    where rownum = 1
    ;
    Thanks for your help, Petr

    If I have understood correctly, you should be able to do it like this

    select min(unit_id) keep(dense_rank first order by count(*))
    from members group by unit_id
    

    Best regards

    Maxim

Maybe you are looking for

  • Satellite L850-12V - RAM upgrade

    Hello Last week I discovered that I could improve my ram DDR3 capability of my laptop to a maximum of 8 GB 1866 mhz (according to crucial also site and corsair with scanning system) so I bought a new set of 2 x 4 GB 1866 MHz (Corsair Vengeance 1.5V t

  • Office Jet Pro 8710: HP ePrint app

    I have HP Print Service Plugin installed on my 6.0.1 Android phone app. All of a sudden it will only print paper size 'hand-Index Card 3 x 5 '. I uninstalled the app and reinstalled nothing doesn't. The problem that happens on the phone Android for m

  • Satellite A200 - hiss from speakers

    I got my laptop for about a year or two, and I noticed when I turned it first very on quite a whistling noise came onboard speakers. He was always there, although sometimes he goes and returns for no apparent reason (apparently not be triggered by a

  • Need help - message of unsupported CPU - CPU listed as taken care of...

    I have a 2370ea P6 that came with an i3 processor.  I've recently updated the graphics card a Radeon 7750 and a 500w power supply Corsair.  No problem with either.  Next, the CPU... I bought an I5 - 3570 k, which I think is compatible and also update

  • Save the file in pdf format

    Help! Pressed for time! Need to save files in pdf format, so I can have received their approval. When I save as pdf all encrypted fate (?) Not my file!