Html block return

I'm using Apex 4.
I have a php app which I need to make a call to an apex I have. It should return the html for an unorder list.
e.g. <ul><li>blah 1</li><li> blah 2</li></ul>
It is posssible ? Or is apex always going to want to to put html, title, body tags in etc.
If it is what kind of page is it ?
Ed.

$.get('http://10.137.129.245:8423/apex/f?p=102:42:&SESSION_ID.:APPLICATION_PROCESS=getlinks', function(data) {
$('#result').html(data);
{quote}
You said that you're calling this from a PHP app, so of course it won't process the <tt>&SESSION_ID.</tt> substitution string. Use a <a href="http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref121">zero session ID</a>.
(Please update your forum profile with a better handle than "user3608949", and post code fragments wrapped in <a href="http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar%3F">wrapped in <tt>\...\</tt> tags</a> to preserve formatting stop the forum software rendering HTML.)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Display results of SQL in an HTML Block

    Hi there
    I want to display the results of some SQL within an HTML Block. To do this I have created a hidden page item which I can then reference within the HTML Block (ie: &mypageitem.)
    However I want to run a process that assigns that page item the results of a simple SQL query that returns multiple rows. If I try to do that SQL within the page item itself it only assumes the value of the first row returned. I tried to do it within a pl/sql process and looping through a cursor and assigning my page item each row of the cursor. That didnt work because I couldnt insert an HTML BR within the page item and it only seemed to return one row.
    Am I going about this the wrong way? Thanks in advance for any help.
    Message was edited by:
    user559162

    Hi,
    Firstly, you should declare a VARCHAR2 variable to hold the output. Secondly, when looping through the data, you should append each row's data to this string. Each line can be terminated using CHR(13) to get the new line. Finally, you set the field's value to the variable:
    DECLARE
    vOutput VARCHAR2(4000);
    cursor definition etc
    BEGIN
    vOutput := '';
    open the cursor...;
    LOOP
    vOutput := vOutput || rowdata || CHR(13);
    END LOOP;
    :mypageitem := vOutput;
    END;
    Regards
    Andy

  • Pl/sql block returning sql query.

    Hello,
    I am using oracle 10g apex 3.2 version.
    I am using the following return statement inside my report which is pl/sql block returning sql query.
    declare
    pid varchar2(100);
    begin
    return 'select patient_id_code from t_files_data_exp where patient_id_code not in pid';
    end;
    How am i suppose to mention the pid inside the return stmt i mean with any quotes or anything? because the above return stmt gives error
    "1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. The query can not be parsed, the cursor is not yet open or a function returning a SQL query returned without a value."
    Thanks

    Hello,
    I did exactly the way u told
    declare
    pid varchar2(100) := '(61092,61093)';
    begin
    return 'select patient_id_code from t_files_data_exp where patient_id_code not in ' || pid;
    end;
    patient_id_code is varchar2(100) only in table.
    For this i am getting "invalid number error".
    Thanks

  • Report on QI, Blocked, Returned Stocks at Plant & Storage location level

    Hi,
    Would like to know any reports which gives QI, Blocked, Returned stocks at Plant & Storage location level.
    Regards,
    Vengat

    hi,
    What do you exactly mean say by "Returned  stock"..
    Also go through by MMBE tcode ...
    Regards
    Priyanka.P

  • Automatic block return Sales Orders / Credit Notes

    Hi,
    Could someone please explain how I block return sales orders or credit notes? 
    Also is there a way of searching which sales order documet types have been used for credit notes?
    Thanks

    Hello Chris,
    Well, I too guess it would have given better results if you posted this question on Security Forum.
    Nevertheless, could you please send the scenerio details or a breif description of the same, inculding atleast the transactions you are executing, so that we are able to suggest you something better on the same.
    Regards,
    Hersh.

  • Block return sales orders or credit notes?

    Hi,
    Could someone please explain how I block return sales orders or credit notes?
    Also is there a way of searching which sales order documet types have been used for credit notes?
    Thanks

    Hi Friend,
    The billing block is comming from the tx. VOV8 -> choose the Order type  -> billing
    block -> you could set billing block here.
    In Shipping column, there is also a field Delivery block where you could set delivery
    block for the order type.
    Or you could also set delivery block and billing block manually when you create the order.
    You could check order type which is used as return or credit memo request by following way:
    SE16 -> TVAK -> use selection criteria VBTYP = H and K
    H  Returns
    K  Credit memo request
    Then excecute, you could get the order type you want.
    Best regards,
    Alex

  • My internet security picked up on this. Why are you updating me with a trojan program ????????? ffwt.html Blocked: HEUR:Trojan.Script.Generic 4/18/2013

    My internet security picked up on this.
    Why are you updating me with a trojan program ?????????
    <pre>ffwt.html Blocked: HEUR:Trojan.Script.Generic 4/18/2013 8:13:18 PM hxxp://incasi<i></i>.xtrastudio<i></i>.com/
    downloading object, which contains a trojan program
    firefox
    hxxp://incasi<i></i>.xtrastudio<i></i>.com/ffwt<i></i>.html
    detected: HEUR: Trojan.Script.Generic</pre>
    (Moderator altered links, because they are malicious)

    Could you explain what you mean by "updating"? Did your antivirus pick this up while Firefox was updating or while you were browsing the Internet?
    If you were browsing the Internet (While visitting the hxxp://xtrastudio<i></i>.com link), then that website was infected and not a Firefox problem. I would advise you to not visit the website again though, unless they manage to fix the infection as the antivirus managed to block it now, but it might not be able to the next time.
    If it happened during the "Firefox is updating" window when you tried to start Firefox, then it pretty serious.
    If you could answer that question, we will probably be able to help you. Good luck :)

  • ASA5505 blocking return traffic

    Our network has slowed to a crawl and upon investigation it looks as if the ASA5505 is blocking returning traffic. The syslog is full of these from legitimate sites:
    2013-08-30 16:58:01 local4.critical 192.168.1.254  Aug 30 2013 16:53:38: %ASA-2-106001: Inbound TCP connection denied from 207.131.246.15/80 to aaa.bbb.ccc.xxx/46099 flags PSH ACK  on interface outside\n
    2013-08-30 16:58:03 local4.critical 192.168.1.254  Aug 30 2013 16:53:40: %ASA-2-106001: Inbound TCP connection denied from 207.131.246.15/80 to aaa.bbb.ccc.xxx/31820 flags ACK  on interface outside\n
    I'm not really sure where to go next so any help would be appreciated.
    2013-08-30 16:58:01 local4.critical 192.168.1.254  Aug 30 2013 16:53:38: %ASA-2-106001: Inbound TCP connection denied from 207.131.246.15/80 to aaa.bbb.ccc.xxx/46099 flags PSH ACK  on interface outside\n
    2013-08-30 16:58:03 local4.critical 192.168.1.254  Aug 30 2013 16:53:40: %ASA-2-106001: Inbound TCP connection denied from 207.131.246.15/80 to aaa.bbb.ccc.xxx/31820 flags ACK  on interface outside\n
    We are also using Websense. I have a 'filter except' exception for the above examples (207.131.246.15) for both http and https. I have also reduced MTU to 1472 on the outside just to test. I also upgraded from 256 to 512 memory thinking maybe it was being stressed.
    It seems to work for a while and then out of nowhere shuts everyone down from wherever they are browsing and then about 20 seconds to a minute later it starts up again.
    I'm not really sure where to go next.
    I have attached (what I hope is) a scrubbed config.
    Thank you.

    I looked for asymmetric routing. We have one other router attached to the internet but that just does VPN to a datacenter and has a specific route set up on the gateway for it. Nothing else should be getting to it other than the single IP address routed to it.
    It seems to be affecting any ip address that needs a persistant connection. As an example I had to download Chrome to a PC this morning and it kept losing connection about 50% through the download. So from my experiments what I can tell is that it makes the first connection no problem, but quickly dies after that and a new connection has to be made. Also when this happens the IP address being accessed shows up in the "SYN Attack" list in ADSM. I have attached an image of the issue. The number one item on the list is a website we use all day long.

  • How to Block Return to Supplier for Inactive Subinventories

    In Purchasing Module while making a Return to Supplier & when we query an Item, all relevant receipt lines are visible including Inactive Subinventories.
    User is able to make return to supplier for Inactive Subinventories also.
    How do we block Return to supplier for Inactive Subinventories 

    How to block calls has been asked hundreds, and hundreds of times at CSC, a simple search would have provided you with all the necesarry information. Please search before you ask
    https://supportforums.cisco.com/docs/DOC-19628
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Convert PL/SQL block returning html to a plugin - render function

    I have a PL/SQL region that uses htp.p('...') to output HTML. It's dynamic in that it uses a page value to call data from the database. I'd like this region to appear on every page in my application, but also to have the ability to update it once rather than having to update a copy on every page.
    From my limited understanding of ApEx the best way to achieve this is to convert my PL/SQL region to a Plugin. I've copied my PL/SQL code into the plugin's source and set the plugin's type to "region" but when I try to load a page that I've added it to, it displays the error "No render function has been defined for plug-in [PLUGIN NAME]".
    How do I define a render function? Or is there a better way to achieve what I'm after?

    Hi 925454,
    have a look at the "Render Function Name" attribute in the region "Callbacks" of your plug-in definition. You just have to specify the name of the function you used in the plug-in source.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • PL/SQL block returning error

    Hi All,
    I have used PL/SQL block in my custom report to search table heading. Basically I have two select list (LOV), user select the parameter from the list and click on go, it displays the report fine when record exists.
    I am using following PL/SQL block -
    >
    DECLARE
    v_sql VARCHAR2(4000);
    BEGIN
    IF :P126_PARK_NAME IS NOT NULL THEN
    v_sql := 'select P.OLIC_KEY1, PA.NAME, C.TRADING_NAME, L.LIC_TYPE, P.'|| :P126_PARK_NAME ||', C.COP_ID, L.OLIC_ID Olic_id '
    ||' from RTT_OP_PARKS_TEMP P, RTT_COMMERCIAL_OPERATORS C , RTT_PARTIES PA, RTT_OP_LICENCES L'
    ||' where '|| :P126_PARK_NAME || ' IS NOT NULL '
    ||' AND PA.PAR_ID =C.PAR_ID '
    ||' AND P.COP_ID =C.COP_ID '
    ||' AND L.OLIC_KEY1=P.OLIC_KEY1 '
    ||' AND :P126_QUERY = ''Y'''
    ||' ORDER BY PA.NAME ';
    END IF;
    /* debugging */
    IF :DEBUG = 'YES' THEN
    htp.preopen;
    htp.p(v_sql);
    htp.preclose;
    END IF;
    RETURN (v_sql);
    END;
    >
    Now, I want to use like condition to display all the records by checking the parameters in text field. I have created a new text field and modified the query as follows but it does not work -
    >
    DECLARE
    v_sql VARCHAR2(4000);
    BEGIN
    IF :P126_PARK_NAME IS NOT NULL THEN
    v_sql := 'select P.OLIC_KEY1, PA.NAME, C.TRADING_NAME, L.LIC_TYPE, P.'|| :P126_PARK_NAME ||', C.COP_ID, L.OLIC_ID Olic_id '
    ||' from RTT_OP_PARKS_TEMP P, RTT_COMMERCIAL_OPERATORS C , RTT_PARTIES PA, RTT_OP_LICENCES L'
    ||' where '|| :P126_PARK_NAME || ' IS NOT NULL '
    ||' AND PA.PAR_ID =C.PAR_ID '
    ||' AND P.COP_ID =C.COP_ID '
    ||' AND L.OLIC_KEY1=P.OLIC_KEY1 '
    ||' AND :P126_QUERY = ''Y'''
    ||' ORDER BY PA.NAME ';
    END IF;
    IF :P126_MARINE_PARK != -1 THEN
    v_sql := 'select distinct L.OLIC_KEY1, PA.NAME, C.TRADING_NAME, L.LIC_TYPE, M.'|| :P126_MARINE_PARK ||', C.COP_ID '
    ||' from RTT_OP_MARINE_PARKS M, RTT_COMMERCIAL_OPERATORS C , RTT_PARTIES PA, RTT_OP_LICENCES L'
    ||' where '|| :P126_MARINE_PARK || ' IS NOT NULL '
    ||' M.'||:P126_MARINE_PARK||' IS LIKE :P126_MARINE_PARK||'%' '
    ||' AND PA.PAR_ID =C.PAR_ID '
    ||' AND M.COP_ID =C.COP_ID '
    ||' AND L.OLIC_KEY1=M.OLIC_KEY1 '
    ||' AND :P126_QUERY = ''Y'''
    ||' ORDER BY PA.NAME ';
    END IF;
    /* debugging */
    IF :DEBUG = 'YES' THEN
    htp.preopen;
    htp.p(v_sql);
    htp.preclose;
    END IF;
    RETURN (v_sql);
    END;
    >
    Can anybody tell me what I am doing wrong here?
    Thanks in advance
    Regards,
    M Tajuddin

    Hi Andy,
    Thanks for pointing the quotation however it does not work either. Now I am getting -
    >
    failed to parse SQL query:
    ORA-00933: SQL command not properly ended
    >
    Now my query is like below -
    >
    DECLARE
    v_sql VARCHAR2(4000);
    BEGIN
    IF :P126_ZONE_NAME IS NOT NULL THEN
    v_sql := 'select distinct L.OLIC_KEY1, PA.NAME, C.TRADING_NAME, L.LIC_TYPE, M.'|| :P126_ZONE_NAME ||', C.COP_ID '
    ||' from RTT_OP_MARINE_PARKS M, RTT_COMMERCIAL_OPERATORS C , RTT_PARTIES PA, RTT_OP_LICENCES L'
    ||' where '|| :P126_ZONE_NAME || ' IS NOT NULL '
    ||' AND PA.PAR_ID =C.PAR_ID '
    ||' AND M.COP_ID =C.COP_ID '
    ||' AND L.OLIC_KEY1=M.OLIC_KEY1 '
    ||' AND :P126_QUERY = ''Y'''
    ||' ORDER BY PA.NAME ';
    END IF;
    IF :P126_MARINE_PARK IS NOT NULL THEN
    v_sql := 'select distinct L.OLIC_KEY1, PA.NAME, C.TRADING_NAME, L.LIC_TYPE, M.'|| :P126_MARINE_PARK ||', C.COP_ID '
    ||' from RTT_OP_MARINE_PARKS M, RTT_COMMERCIAL_OPERATORS C , RTT_PARTIES PA, RTT_OP_LICENCES L'
    ||' where ' || :P126_MARINE_PARK || ' IS NOT NULL '
    *||' M.' || :P126_MARINE_PARK || ' IS LIKE ''' || :P126_MARINE_PARK || '%'' '*
    ||' AND PA.PAR_ID =C.PAR_ID '
    ||' AND M.COP_ID =C.COP_ID '
    ||' AND L.OLIC_KEY1=M.OLIC_KEY1 '
    ||' AND :P126_QUERY = ''Y'''
    ||' ORDER BY PA.NAME ';
    END IF;
    /* debugging */
    IF :DEBUG = 'YES' THEN
    htp.preopen;
    htp.p(v_sql);
    htp.preclose;
    END IF;
    RETURN (v_sql);
    END;
    >
    Can you tell me how can I display dynamic multiple column in my query? Say in the LIKE condition if user type M in the parameter field and click on go, it must return more than one column starting column name M but in my current query it will only display one column, am I right?
    Thanks again for your suggestion.
    Kind regards,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • Pl/sql block returning multiple rows

    Hi,
    I've created a plsql block which obtains an id from a name and then uses this id in another sql statement. The select statement to get the id works fine and the correct id is placed into the variable awardID.
    when i try to use this variable in another select statement it returns multiple rows. but when i just use the id in the select statement it works fine.
    select AwardID into awardID
    from award_objtabA
    where Name = awardName;
    this returns the correct id '5999'
    select Points into award_points
    from award_objtabA
    where AwardID = awardID;
    this returns multiple rows
    select Points into award_points
    from award_objtabA
    where AwardID = 5999;
    this works fine
    can anybody help with this confusing error?
    Cheers

    select AwardID
      into awardID               <= the same column
      from award_objtabA
    where Name = awardName;
    this returns the correct id '5999'
    select Points
      into award_points
      from award_objtabA
    where AwardID = awardID;    <= the same column
    this returns multiple rows
    to solve use different name not exactly the same as that of the column name
    select AwardID
      into vAwardID        
      from award_objtabA
    where Name = awardName;
    select Points
      into award_points
      from award_objtabA
    where AwardID = vAwardID;as Alex and Kamal have suggested use different name for your variable.

  • - How do you refer to an HTML carriage return in PHP?

    Someone sent me a php script that replaces foul language with
    kinder words
    in message board postings. I'd like the same script to weed
    out carriage
    returns, but we can't find the correct syntax for it.
    We're using :
    $patterns[0] = '/\n\r/';
    What's the correct syntax to use in this situation?
    Thanks!

    "David Powers" <[email protected]> wrote in message
    news:[email protected]...
    > Reese wrote:
    >> "David Powers" <[email protected]> wrote in
    message
    >>>
    >>>$patterns[0] = '/[\n\r]/';
    >>>
    >>>That searches for either a newline character or a
    carriage return.
    >>
    >> I'm told this will only work in Windows. That Macs
    would require a
    >> different string. Two, even.
    >>
    >> Anyone know if this is true?
    >
    > What you have been told is only partly correct. Windows
    uses a carriage
    > return followed by a newline character (\r\n). Macs just
    use a newline
    > character (\n).
    >
    > The pattern I have given you search for either a newline
    character or
    > carriage return. So if it's applied in such a way as to
    remove all
    > instances, it will work on both Windows and Mac. An
    alternative pattern
    > which would also work on both is this:
    >
    > $patterns[0] = '/\r?\n/';
    >
    > It looks for an optional carriage return followed by a
    newline character.
    > In other words, it still matches if there isn't a
    carriage return.
    The response of my know-it-all roumanian programmer with an
    ego the size of
    Texas to that was :
    http://www.regular-expressions.info/characters.html
    (bottom of the page)
    \r\n = windows
    \n = Linux (not Mac)
    \r = Mac
    http://www.regular-expressions.info/optional.html
    (tells you what the '?'
    does)
    (it means that the character before it can be there 0 or 1
    times)
    \r?\n = \n (Linux) or \r\n (windows)
    It leaves out the \r all alone, like added by the Mac.
    So, it will not delete the Mac new lines (might delete the
    Mac OSX ones
    since that one is passed on Linux, but not the older ones.)
    Now, you can contradict me all you want and have a busted
    code (then you
    will say it doesn't work because I made it wrong), or do it
    like I told you
    and get it working like it should.
    To this, I told him I would present this to you for a
    rebuttal, but not
    before asking him why he used only the '/\r?\n/' model as an
    example, and
    not the recommended '/[\n\r]/'. Something tells me he has no
    idea what [
    and ] do in this context, so he's avoiding it altogether --
    even though it
    may very well solve the problem on its own the way you claim
    it does.

  • Client Side Signature of PDF in HTML Viewer returning the chnaged/signed PDF.

    Hi,
    I am generating a SFP PDF form which I then immediately save to a SAP PSRM Case.  I generate the PDF form 'fillable' and I have inserted a Signature Field in the form layout.
    I have a requirement to save the signed form to the case once it has been signed.  This process should exclude saving the form to any application or presentation directories.
    During the PSRM Case processing I can:
    Successfully save the un-signed PDF to the Case
    Successfully open the PDF via an HTML viewer
    Successfully sign the PDF in the HTML viewer
    The problem is when I return to the Case after the PDF has been signed I cannot save the signed PDF to the PSRM Case(SAP).
    I am using the code below to display the un-signed PDF in the HTML Viewer
    * Convert xstring to binary table to pass to the LOAD_DATA method
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer     = g_pdf_content_in
         TABLES
           binary_tab = gt_data.
    * Load the HTML
       CALL METHOD g_html_control->load_data(
         EXPORTING
           type                 = 'application'
           subtype              = 'pdf'
         IMPORTING
           assigned_url         = lv_url
         CHANGING
           data_table           = gt_data
         EXCEPTIONS
           dp_invalid_parameter = 1
           dp_error_general     = 2
           cntl_error           = 3
           OTHERS               = 4 ).
    * Show it
       CALL METHOD g_html_control->show_url( url = lv_url
         in_place = 'X' ).
    I assume that 'gt_data' would now represent the signed PDF? How do I convert 'gt_data' back to a PDF xstring? I have tried:
      FM 'SCMS_BINARY_TO_XSTRING'
    Various Methods in Class 'CL_BCS_CONVERT'
    All with no success.  Either it saves the un-signed PDF to the PSRM Case or the PDF cannot be viewed as it is corrupt.
    Please help.
    Warm Regards
    Waheeb

    File is serializable but it is just a filename. When you pass or return it over RMI or Serialization, all you get is the filename. It doesn't take the file contents with it, or the ability to open it, unless it happens to also be the name of an existing file on the receiving system.

  • Application Builder: Can you create non-blocking, return-immediately functions in a dll?

    I need to include a procedure in a dll that is non-blocking, i.e. it should return immediately after the procedure has been called, and not return after its processes are completed.
    The procedure is a LabView 7.0 VI, and the dll is being created using the Application Builder. Currently the procedure completes its desired task and then returns, but I would like the function to return immediately. Thanks for your help!

    Rischaard,
    I don't know if that will work in a dll, however as an idea:
    use the vi-server functions:
    Your dll-procedure opens a OwnTreat.vi(wich will do the work) with vi-server, and run it without waiting for completion.
    First thing OwnTreat.vi should do is opening (with vi-server) a reference to itself (So your caller dll can close without stopping the OwnTreat.vi)
    Then OwnTreat.vi con do what YOU want. When finished close the self-reference
    Maybe you need a short wait or a feedback to make sure that OwnTreat has opened his own reverence before your dll stops.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

Maybe you are looking for

  • Translated description is not coming in BW reporting

    Hello, I have a BI report in which the description of each column is coming correctly when I have logged in english. When I logged in German Language the description is not coming correctly. It is coming like selektion 1, Selektion 2. KIndly suggest

  • Problem Opening and Running Adobe Reader XI

    I am using Windows 8 and Adobe Reader XI (Version 11.0.03). At first, I was able to use Reader just fine. Then yesterday the program would freeze just after I tried opening it. I would see a spinning wheel on the right of the window that would stop s

  • Batch program

    HI, A batch program is needed.This batch program will be scheduled as a batch job. It should query table say 'A' depending on two mandatory and one optional parameter.There is only one primary key in table 'A 'and it is an optional parameter.This que

  • Dynamic Menus

    Trying to edit sub menu width / border - www.pdstaxconsultants.businesscatalyst.com Can't locate original file to edit. Can anyone point me in the right direction. Thanks

  • My new MacBook Pro with Retina is very slow to start

    I have just bought a new MacBook Pro with Retina and surprised/disappointed at how long it takes to show the log in screen. Is this normal? It is slower than my old MacBook.