Htmldb_item.text_from_lov madness (bug)?

<br>Application shared LOV "TESTOVI_USERA" query looks like:
<br>SELECT NAZIV, TESTOVI.ID
FROM TESTOVI, TESTOVI_USERS
WHERE TESTOVI_USERS.TEST_ID=TESTOVI.ID AND TESTOVI_USERS.USER_ID = :G_USER_ID
ORDER BY 1<br>where ":G_USER_ID" is global application item assigned after login and certainly has some number value-reference of that variable works OK all over app!
<br>Result of that quewry looks like:
NAZIV     ID
Op&#263;i test  1
56346      2 <br>In Web app, I use radio group (called "P6_TEST_ID") based on that LOV-works OK!
<br>On next page I want to reference text value from that LOV (radio grup called "P6_TEST_ID"). For that I use "Before Header" process with code:
<br>:P7_TIP_TESTA := htmldb_item.text_from_lov(:P6_TEST_ID,'TESTOVI_USERA');<br>but I get error:
ORA-06550: line 1, column 113: PL/SQL: ORA-00911: invalid character ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<br><br>I have checked on that page "P6_TEST_ID" value and it has correct value (1 or 2 as expected).
<br><br>Have to say that I use htmldb_item.text_from_lov function with great success on other pages, but here all went wrong!
<br>On this page there is another call of that function which works OK. What I can say that really distincts these two LOVs is that "problematic" one has call of application variable and "correct" LOV reference only table fields!
<br><br>I think I get in some Appex "trouble generation" and do not know how to get out of that?
<br><br>THX
<br><br>P.S.
<br>Haven't explain that in "Before Header" process 2 hidden items are assigned. They are used on the form in "Label" part of "Display as Text (does not save state)" control as. Here is example of problematic one (the correct one is similar):
_label: <_li>Test value: &P7_TIP_TESTA.<_/li"> Message was edited by:
[email protected]
Message was edited by:
[email protected]

Code is placed in "Assign Wizzard Result" Before header process:
BEGIN
  IF :VRSTA_TESTA = 0 THEN
    :P7_VRSTA_TESTA := 'Novi test'; 
    :P7_TIP_TESTA := htmldb_item.text_from_lov(:TIP_TESTA,'TIPOVI_TESTA_WIZZARD');
  ELSIF :VRSTA_TESTA = 1 THEN
    :P7_TIP_TESTA := htmldb_item.text_from_lov(:TEST_ID,'TESTOVI_USERA');   
    IF :TIP_TESTA = 0 THEN
      :P7_VRSTA_TESTA := 'Riješavani test';
    ELSIF :TIP_TESTA = 1 THEN
      :P7_VRSTA_TESTA := 'Riješavani test (randomiziran)';
      :TEST_ID := -1*to_number(:TEST_ID);
    ELSE
      pkg_pragma_core.log_error(:TIP_TESTA,'','Nepravilna vrijednost u wizzardu (tip_testa)!!');
    END IF;
  ELSE
    pkg_pragma_core.log_error(:VRSTA_TESTA,'','Nepravilna vrijednost u wizzardu (vrsta_testa)!!');
  END IF;
EXCEPTION
  WHEN OTHERS THEN
    pkg_pragma_core.log_error (SQLCODE,SQLERRM,'WEB problem u wizzardu odabirta testa');
    RAISE;
END;Bold underline call makes error. When I return ":TEST_ID" instead this function - all OK! LOV is valid and exist on page 6.
Image of complete page 7 is:
http://i2.tinypic.com/x4n5uf.png
Variables ("P7_TIP_TESTA" and "P7_VRSTA_TESTA") assigned in previous process are used on Page 7 in "Display as Text (does not save state)" label part of items:
<br>P7_TIP_TESTA is used in "P7_TIP_TESTA_DISPLAY": http://i1.tinypic.com/x4n6af.png
<br>P7_VRSTA_TESTA is used in "P7_VRSTA_TESTA_DISPLAY": http://i2.tinypic.com/x4n6fb.png
Hope this will be enough to get the point.
THX for your time

Similar Messages

  • Htmldb_item

    Hi,
    just a small question. I want to build an updatable report by myself. My only problem is one column, that should be not updatable and with lov for value translation(i.e. value is '1' shown is 'open'). In a normal report I would select 'Display as Text (based in query, does not save state)'. But how can I do this with the htmldb_item? I know that there is something like wwv_flow_item.display_and_save, but there is no lov behind to translate the value.
    Is there something to manage this????
    Thanks

    Hi Scott,
    sorry you seem to be the one who have to answer all my stupid questions ...
    When I'm using htmldb_item.text_from_lov (it's working like I want), but can I access this column by using later htmldb_application.g_fxx ???
    Because if I look in documentation, for htmldb_item.text(p_iidx, value, ...) is written for p_idx: Number to identify the item you wish to generate. The number will determine which G_FXX global is populated. For htmldb_item.text_from_lov, there is no p_idx, so I think I can't access it, or can I?
    Thanks
    chrissy

  • Sorting of columns in report with values from lookup table (LOV)

    Hi,
    I have a report where I looku the values using a number of LOVs. I'd like to enable sorting on those columns in the report whihc works BUT the report get's sorted on the numric looku pvalue instead of the description for example COUNTRY_ID instead of COUNTRY_DESC.
    I have played around with the function APEX_ITEM.ITEM_TET_FROM_LOV in my SQL query:
    select ID, NAME,
    APEX_ITEM.TEXT_FROM_LOV(COUNTRY_ID, 'COUNTRY_LOOKUP') COUNTRY,
    from VAR
    But I get the following error:
    report error:
    ORA-06550: line 1, column 13:
    PLS-00103: Encountered the symbol "COLLECT" when expecting one of the following:
    := . ( @ % ;
    ORA-06550: line 1, column 82:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , % from
    So I am thinking that I am doing something very wrong? Is there another way to accomplish this?
    Andy

    you need to use htmldb_item.text_from_lov in your query.
    this will then deocde the key value to the description within the query itself and therefore allow you to do your sorting.

  • Display sleep with dual monitor setup

    I'm running a 17" studio display and a 20" studio display as a two momitor setup on a dual G5 2.0. The menu bar is on the 17". Unless I have display sleep in energy saver set to never, the 17" will go to sleep at the interval set in the preference panel, even when the system is in use. So far the only way I've found to get the display back off sleep is to put the computer itself to sleep - keyboard shortcut or by using the power button on the 17" and then wake it up.
    I think this only started with 10.4.6. I can't upgrade to 10.4.7 yet - I run Avid Xpress Pro on the system and 10.4.7 gives dongle trouble. I've thrown away preference files, set and reset the sleep parameters. As it happens, I've had to reinstall the system a couple of weeks back, but the 17" studio still goes to sleep when it shouldn't.
    The problem doesn't occur if the menu bar is on the 20" cinema display, but that's not the way I want it.
    Anyone with the same problem,, or better a suggested solution?

    finally found the solution (apple i hope your reading
    this as this is a mad bug!)
    you need to have the dock on the bottom of the main
    screen in order to view the image on that screen.
    Wierd, I have my dock on the left side of my main screen... which is to the left of my secondary screen. Perhaps you cannot have the dock in-between screens?
    kgelner, how have you noticed the performance of your
    card when working with aperture? Im seriously
    debating upgrading mine as its just slow and annoying
    I find it usable but I'm also only working with TIFF files (my camera is not supported). I am also pretty strongly thinking about going with the X800xt card, which should be at least twice as fast. Some operations (like a lot of Spot & Patch repairs combined with Shadows/Highlights) do make things a bit laggy.
    I also have the 256MB version of the 9800, which I think helps with some of the larger images and operations.

  • LR 5: Destination Folder Problem in Import Panel

    When making a new  destination folder for import it does not appear in the folder list on  the right side of the import panel until the panel is closed down and  re-opened, at which point the images have to be reselected. Given the slow loading  thumbnail issue, already discussed here (and which I also raised) this is doubly time consuming at the moment.
    Has any one else noticed this issue and does anyone know if it has been reported? I have also made bug reports on both issues.
    Stephen  

    ADDENDUM to my reply: When I did my 'workaround', I found the images not in the last folder in the Destination panel (my folders are chronological - I organize my images by date taken), but in one above that (ie, not in June 14, but in June). But my scheme for manually moving them to the June 14 folder (which had been created within LR5, though LR5's Destination panel refused to recognize that fact) IN Windows Explorer, then Synchronizing in Library Module, worked very well.
    However, for my next import, I did this: Outside of LR5, I created the folder I knew I'd need next (in this case, June 15). Then, within LR5, when I went to import the images, the Destination panel did see this folder. I think this is even easier -- if you can think ahead.
    So this confirms that the Destination panel does not recognize folders created from WITHIN LR5 itself.
    Also, please note that, while I also created a folder for my backup images from within LR5, that panel apparently had no trouble finding that folder and those images indeed did get placed where they should have been.

  • Adobe Fixes Critical Problem, Keeps Fix from Some Users

    Before explaining my situation, I'll ask my question for the community up front: Is there a way for a single retail-licence holder like myself to get this patch or otherwise fix the text entry box focus problem? (Don't post stolen versions of the patch.)
    I hold a retail license for Captivate 6 and am on the brink of finishing a 3-month-long project. The only thing keeping me from publishing my interactive software emulation is a problem with the Captivate software I purchased: that the cursor is not placed inside a text entry box when the box appears (which for me is always at the very start of a slide).
    So, after a quick search on the problem I discovered that there is a patch available that includes a fix for it.
    I ran updates from inside Captivate as the webpage instructed, but the problem persisted. After getting on the horn with Adobe, it turns out that this patch is only available for volume licence holders and subscription-based license holders.
    The patch contains both enhancements and fixes, making it something they've sort of monetized I guess by incentivizing/rewarding non-retail license holders. One simple question remains though: Why haven't they made bug fixes available to all their customers? Why do I have to bend over backwards to fix a problem that I was shipped? The problem has been fixed! Why isn't the fix included in Captivate's normal updates?
    According to the dude I talked to from Adobe, the only way for me to fix the problem is to subscribe or buy a volume license. I'm probably going to pay $20 for a month of subscription to get the patch so I can publish my video. And then again for the next four videos in the series, assuming the fix isn't pushed to the normal updates by then. (Apparantly the fixes dissipate when the subscription does)
    Am I missing something here? Is there a way for a single retail-licence holder like myself to get this patch or otherwise fix the text entry box focus problem? (Don't post stolen versions of the patch).

    Hi Matt,
    I have sent you PM.
    Thanks,
    Anjaneai

  • Cross-platform library for launching browser

    Are there any Java libraries out there which launch external web browsers (such as the de facto browser or OS-configured default browser), which are up-to-date, function across the major platforms, and whose licenses do not preclude using them within a commercial product?
    I found http://ostermiller.org/utils/Browser.html, which looks great except that it's GPL. It seems the authors are concerned with someone modifying and selling their product, however I think the most common usage (which is not supported by their license, at least for commercial use) is to simply use it without modification. Too bad.
    I also found http://browserlauncher.sourceforge.net/. The project appears not to have been actively maintained since 2001. From reading the forums, there are some users/developers who have made bug fixes, which have not been folded back in.
    Anything else out there?
    Thanks,
    Jim

    You can build your own WebBrowser using swing API, as you mensioned above, the browsers I met before have a GPL license.
    Deitel has a WebBrowserPane class in its "Advanced Java How to Program" that implements the features of the Browser using the swing API, I tihnk it coded easily and you may get benifits from it...
    Regards
    Mohammed Saleem

  • Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    I have same Problem. I tried all options - Reset All Settings, Erase Content & reset all settings, Upgrated to IOS8.1, Restore using iTune. But problem persists.
    When I turn Cellular Data or Wifi ON, then there is a lag while opening the Apps. But If I turn Data/Wifi off, phone becomes super fast. I have checked with my friends. They are not facing this issue. Not sure if Apple know this.

  • Placed PDF made in Quark bug, InDesign CS4 XP

    Hi,
    I've just been bitten by the bug that causes characters to drop out when you create a PDF from an InDesign CS4 document that has a placed PDF made in Quark.
    Has it been resolved? I looked at the update notes to 6.0.2 and 6.0.3 and couldn't see anything about it.
    This is fairly urgent for me. If it hasn't been resolved, are there any workarounds?
    Thank you,
    Ariel

    You may be right... but it didn't seem relevant at the time, since I rarely receive Quark files, so I probably phased out.
    Anyway, the 6.0.2 for InDesign CS4ME does not fix the issue. I thought it might. And what a story it was to upgrade (which I just did this evening). Apparently, the 6.0.2 upgrade only works for a later build of IDCS4 (something like 6.0.0.421). I had the earlier build (something like 6.0.0.270). And the only solution was to completely uninstall InDesign, download the latest Demo on the Winsoft site (800MB. Took me around 2 hours). Install that. Then download the update and install that as well.
    And it didn't even fix the issue!
    The only positive side is that all my preferences survived the trauma intact!
    Ariel

  • Bug ?? in HTMLDB_ITEM.POPUP_FROM_QUERY function

    Hi
    I have problems using the HTMLDB_ITEM.POPUP_FROM_QUERY function in a multiple update report.
    When choosing from the dropdown list (new_persid) the return value is inserted into another row.
    I have also tried the POPUP_FROM_LOV with the same result.
    Is this a bug? or do I do something wrong?
    Using SELECT_LIST_FROM_QUERY is OK, but the problem is that the user can't choose to type straight into the field, he always have to use the select list-dropdown box.
    Below is the select statement:
    select
    HTMLDB_ITEM.DISPLAY_AND_SAVE(1,a.peapeaid ) peapeaid,
    HTMLDB_ITEM.POPUP_FROM_QUERY(2,new_persid,
    'Select distinct paris_group disp,paris_group from om_conv_org
    order by 1') new_persid,
    HTMLDB_ITEM.select_list(4,main_office ,'Y;Y,N;N') main_office,
    HTMLDB_ITEM.SELECT_LIST_FROM_QUERY_XL(8,new_domicile, 'SELECT COUNTRY_NAME||''( ''||country_code||'')'' , COUNTRY_CODE R FROM PARIS_ISO_COUNTRY' ) new_domicile
    from
    xxxxx

    Hi Scott :-)
    Yes , that seems to be the problem.
    when removing the sort possibility everything seems to be in order.
    This is a serious bug, because when developing the form everything is fine , the update goes to the correct row (because the developer haven't sorted the data)
    The error occurs first when sorting has been choosen once.
    Is there a solution for this?
    Regards
    Evelyn

  • Bug: htmldb_item.popupkey_from_query

    See 24317:10 on htmldb.oracle.com
    When my region query has a ORDER BY, it messes up the htmldb_item.popupkey_from_query. Clicking on the first popup LOV and selecting a value populates the 8th row!
    Am I missing something or is this a bug?
    Thanks

    Finally got it
    select
    empno,
    htmldb_item.hidden(3,empno)||htmldb_item.checkbox(2,rownum) box, null deptlov,
    ename, job, sal, comm
    from
    (select * from emp order by ename)
    deptlov is declaratively defined using Report Attributes as a popup LOV using the query
    select dname,deptno from dept
    This uses g_f01
    My after submit process has
    :P10_DEBUG := null;
    for i in 1..htmldb_application.g_f02.count loop
    :P10_DEBUG := :P10_DEBUG||','||htmldb_application.g_f01(htmldb_application.g_f02(i));
    end loop;
    :P10_DEBUG := :P10_DEBUG||chr(10);
    for i in 1..htmldb_application.g_f02.count loop
    :P10_DEBUG := :P10_DEBUG||','||htmldb_application.g_f03(htmldb_application.g_f02(i));
    end loop;
    Note that the outer select using the ROWNUM and the inner "select * from emp order by ename" is crucial.
    If I just use
    select
    empno,
    htmldb_item.hidden(3,empno)||htmldb_item.checkbox(2,rownum) box, null deptlov,
    ename, job, sal, comm
    from emp
    order by ename
    I get strange results. I check rows 3,5,7 and the after submit process processes some totally different rows!
    My only remaining question is
    Is it valid to use ROWNUM in this fashion? What would happen to rownum when I fetch the next set of rows as per my pagination scheme? Would it stay "in sync" with the hidden PK array in g_f03?
    Thanks

  • [svn:fx-trunk] 11983: Mirroring change we made in 3. x revision 11672 so that we can close down (2) bugs.

    Revision: 11983
    Revision: 11983
    Author:   [email protected]
    Date:     2009-11-19 04:25:01 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Mirroring change we made in 3.x revision 11672 so that we can close down (2) bugs.
    QE notes: None
    Doc notes: None
    Bugs: SDK-23661, SDK-24274
    Reviewer: Alex
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23661
        http://bugs.adobe.com/jira/browse/SDK-24274
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBox.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Made a Bug Report - now what?

    Hi guys
    I just had myself a bit of a complaint in the good ol' bug report system for the first time:
    http://bugs.archlinux.org/task/6306
    Naturally my problem was solved within minutes by another kind ARCHer. In this case by "Jan de Groot (JGC)".
    Thanks Jan!
    Now, Jan provided the solution for my two machines, and therefore I can happily move on knowing how to handle that particular problem.
    But what about the bug report I made?
    Who owns it?
    Who is supposed to either write it off as one stupid ARCH user (me), and basically close and perhaps delete the bug report. Or else forward the bug to the relevant package maintainer?
    What should I do at this point to be a nice ARCHer?
    Kind regards,
    Henning

    JGC is a member of the Arch development team. If he responded to your post, he will probably close it. If not, Romashka, the Arch bug-hunter, will do so. It won't be deleted. Either way, all you need to do is say thank you.
    You give the impression that this may have been user error and not an actual bug, something I can't comment on with out the bug report number. If you want to avoid that in the future, I'd suggest asking here first, and/or the ML/IRC, before posting.

  • Bug: APEX_ITEM.TEXT_FROM_LOV

    Hi,
    I think I found a small bug in APEX_ITEM.TEXT_FROM_LOV
    I have a LOV that has over 2500 entries... If I were to concatenate all the display values it would exceed 60,000 characters and the max length of a single display value is 92
    When I call APEX_ITEM.TEXT_FROM_LOV I get the following message:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I've done some tests and it doesn't appear to be the length of a particular display value, but rather the length of the concatenated set of characters (I could be completely wrong on this).
    Martin

    That is a known limitation with that function. You should decode the value using SQL in your query in this case.
    Scott

  • Seriously, Stop the DUPLICATE Madness! Is there a fix for my duplicate songs on my iPad? Like really, I don't have time to drag and delete my songs. Does Apple really have a simple solution to this bug?

    Seriously, Stop the DUPLICATE Madness! Is there a fix for my duplicate songs on my iPad? Like really, I don't have time to drag and delete my songs. Does Apple really have a simple solution for this bug? It's been 5-months, I currently do not have quick access to a sync, I thought iMatch for Christmas would solve the problem but it appears that doesn't solve anything either....help please! If I listen to my kid's lula-bye song in duplicate for another night I'm going to seriously loose it on Little Boy Peep. Like really Apple do I need to call IN and pay for this problem?

    The possible problem appears to me that songs that were previously loaded onto the iPad device from Mac were duplicated when I started to sync with iCloud. An album will contain one song from the iPad that was originally loaded on sync with Mac and another that will appear either with a little iCloud icon next to the song greyed out or a DUPLICATE song.
    I had hoped iMatch would solve the issue magically, but that does not appear to be the case.

Maybe you are looking for

  • Photo orientation in pictures app messed up after ...

    Hello. First of all kudos to Nokia for creating such brilliant devices. My Lumia 900 has been performing well for me, and it's a fantastic phone. But there's a problem with the orientation of my photos after I plug my Lumia into my PC. Most of the pi

  • Compaq Presario 2100 Laptop SSD Upgrade

    I have a Compaq Presario 2100 laptop the was brand new in 2003. I have a newer laptop, but an currently trying to upgrade the Presario 2100 as much as possible. It's kind of a project now and I also want to get as much use as possible out of it. I ha

  • IPhoto won't open after update

    My MacbookPro 13'' Mid2010 after updated last night.It can not open and shown error as below,please help [url=http://image.ohozaa.com/view2/w8qJ0wzUPw2kRcKd][img]http://image.ohozaa.com/i/0fe/JukplS.png[/img][/url]

  • What's the ADF_Library_Dependencies.library in every project e.g xModel?

    Hi there, 1)what's the ADF_Library_Dependencies.library in every project e.g xModel? 2)the name space url of the file is unreachable, how can i get it? http://xmlns.oracle.com/jdeveloper/110000jlibrarynode 3) we foud it does not include all the depen

  • Classic disk read error

    When I try to load my classic with tunes - I get a disk read error and itunes freezes. When I try to do an ipod disk check - the key combo to start it doesn't work. What can I do? I have already reinitialized the ipod with itunes. Still get the read