Problem with apex_application.g_fxx.count

Okay, I am at my wits end on this one.
I'm running Apex 4, and on one of my screens I have a manually created tabular report. For one of the master records, this tabular report returns 12 rows, yet apex_application.g_fxx.count consistently returns 24 as the count. For other master records, this is working correctly however, returning the same number as what is showed on screen.
I've tried to duplicate it on apex.oracle.com, but it works correctly there as well.
I've checked the data table, and there are only twelve rows there, same as what the tabular report shows. I've added in TONS of code to report back what is happening and everything looks fine in the code and processing, but the data that gets saved is out out sync, since it appears that for some reason the xxx.count (for only this one master record) is somehow doubling the count, so the data that gets saved is off. For example, say someone makes a change to the third sub-record, the 'count' suddenly becomes 6, so it saves the changes for the sixth sub-record.
Has anybody else ever seen this phenomenon and knows what causes it? I've spent three fruitless days trying to track this down so far.
Thanks,
Bill Ferguson
A bit of further information.
In my app, users must list all commodities present at a site first (different screen). They may then go to my Resources screen and input the tonnage and grades of the various commodities present. This ensures that users cannot add tonnage and grade information for a commodity that is not listed as being present at the site.
So, when they get to the Resources screen, the bottom is all filled out with all of the commodities listed, and they simply have to type in the grade. The users also wnated the ones with information in the grade fields to appear at the top, so I had to add an order by to the query, as follows:
SELECT a_rec,
       c_code,
       import,
       item,
       grade,
       grade_units,
       child_key,
       count_order
  FROM (SELECT rec a_rec,
               c.commod || ' - (' || code || ')' c_code,
               c.import,
               item,
               grd grade,
               grd_units grade_units,
               child_key,
               rec count_order
          FROM    RESOURCE_DETAIL rd
               RIGHT OUTER JOIN
                  commodity c
               USING (dep_id, code)
         WHERE (CHILD_KEY = 1028244420100003)  -- actually using a variable here instead of hard-coded values
        UNION
        SELECT c.line a_rec,
               c.commod || ' - (' || code || ')' c_code,
               import,
               NULL item,
               NULL grade,
               NULL grade_units,
               NULL child_key,
               c.line + 200 count_order
          FROM commodity c
         WHERE dep_id = 10282444 -- actually using a variable here instead of hard-coded values
               AND code NOT IN
                      (SELECT code
                         FROM resource_detail
                        WHERE dep_id = 10282444 AND yr = 2010 AND line = 3)) -- actually using variables here instead of hard-coded values
ORDER BY import, count_orderNow, on the screen the commodities are listed as:
Copper
Gold
Molybdenum
Silver
Gemstone
Lead
Zinc
Uranium
Gypsum
REE
Talc
Garnet
But, the code I've added to see what is happening is instead saying the records being processed are in this order:
Copper
Garnet
Gemstone
Gold
Gypsum
Lead
Molybdenum
REE
Silver
Talc
Uranium
Zinc
I do not have any sort criteria specied in the Report attributes. So, why is the order of processing (for i in 1 .. apex_application.g_f03.count) processing in a different order than what is shown on screen?

Hi Arie,
This was a strange one to track down. I wound up adding all kinds of logging statements in my code, writing things out to a table while processing, counts, which record, etc., and suddenly it dawne don me that everything was being processed in alphabetical order by commodity name, even though the screen display was by two other fields. I played around with different 'order by' settings, but the processing somehow was always by the commodity name. I have no idea where it was getting that 'directive', but nothing I could figure out changed it.
So to recap, in case I didn't explain it well enough above, this is a manually created tabular form, with a 'regular' form above it (master-datail). I use the apex_item.text, etc. constructs to create the tabular form, and then in my 'proceses' I'm using the normal apex_application.g_fxx array to perform the processing. While the screen display from the tabular report shows everything with an order by of two columns, the processing always was done ordered by a diffierent, no-specified column.
Changing my report definition to use the same 'order by' as the processing seemed to be working fixed the problem, though I have no idea where it was getting the 'order by' from to overwrite what was being on screen. I'm not sure if this is a bug or not, I vaguely remember Scott Spadafore commenting about this behaviour a long, long time back, but I can't find the post. It was probably back in the 2.x days.
I also have no idea what is causing the array to somehow double for some records and not on others. In this particular case, the record I had on screen only had 7 commodities, but when I printed the result of apex_application.g_fxx.count, it always showed 14, even though on apex.oracle.com, when I tried to re-create the problem, it worked correctly and only reported 7. Most records in my database that I tested this on worked correctly, reporting the correct number of commodities, but occasionally I'd run across one where the number was doubled. I don't know if there is some internal table Apex uses that I could truncate (like possibly wwv_flow_collection_members?) where possisbly this type of information be kept. The only thing I can think of is that somewhere these counts are stored in a collection and it is populated with data from a real old incarnation, and during processing it stumbles across these old records and uses the old values. It doesn't seem like a realistic possibility, but it about the only explanation I can think of.
Bill Ferguson

Similar Messages

  • Apex_application.g_fxx.count Question (problem?)

    Do the apex_application.g_fxx variables need to be shown on the page (region) in order for apex_application.g_fxx.count to return a non-zero value?
    I'm trying to figure out why I spent a day trying to get something to work, and it seems like this is what it was, though I'm not quite sure.
    In my report region, I have a column that when shown, my process works correctly, where a loop that has the form of:
    FOR i IN 1 .. APEX_APPLICATION.g_f16.COUNT
    LOOP
    This performs the statements within the loop.
    However, if that column is not shown (under Report attributes, unclick the Show box), then the process does not seem to execute the statements inside the loop.
    The only thing I can think of is that when it's marked as not shown, then the COUNT has no value, even though it seems like it should. Does COUNT only return the count of displayable items in the column, so if it's not shown, it's zero?
    It also may be how the report region is defined as well I suppose. It seems like ApEx should understand it okay, but who knows. It's simply a join of two inline views, so I can pre-populate the region with values from another table if this table didn't have any entries.
    This is Apex 2.2.1.00.04. One of these days I'll get caught up enough to upgrade to 3.0.
    Thanks,
    Bill Ferguson

    Hi Patrick,
    I suppose I also should have stated that this is a manually generated report region, using the apex_application.[item_type] syntax, where I have to specify the array (item) number. I just tested with Firebug, and if I change the number of the second column to 22, it's shown as f22 instead of f02.
    g_f16 was the next to the last column, though the one after it is a hidden column (apex_application.hidden).
    My report region is such, that g_f03 andg f16 are the only columns I can verify will actually have some data in it, as I force a value into gf16 if the second half of my union is selecting null values, so I could get around the null sorting problem (NULLS LAST didn't work, even on 10gR2, so I'm doing something else wrong).
    Anyway, I can use the values of the columns, whether they are displayed or not, it's just that apex_application.g_f16.COUNT always returned a zero when the column was hidden, even though it consisted of an array of 5 values. Trying to track it down I was able send the value of the column to a logging table, so I was able to see that I was getting the values, just not the count of values.
    Bill Ferguson

  • Problems using apex_application.g_fxx

    I have a SQL Query (updateable report) defined on a page and am using a custom app process to process the rows. I've based my code on posts out here but I'm getting some unusual results. Here's the sql for the report.
    SELECT
    NI_PROP_SEQ_NUM,
    NEW_ITEM_SEQ_NUM,
    APPROVED_REJECTED,
    APPROVED_REJECTED_BY,
    APPROVED_REJECTED_DATE,
    PROPOSAL_DATE,
    PROPOSAL_BY,
    PROP_FLD_LKUP_SEQ_NUM,
    PROPOSAL_FIELD_VALUE,
    case
    when PROP_FLD_LKUP_SEQ_NUM = 29 then
    (select nlsn_group_num || ' - ' || nlsn_ctgry_desc from apex_so.nlsn_ctgry where PROPOSAL_FIELD_VALUE = NLSN_CTGRY_NUM)
    else PROPOSAL_FIELD_VALUE
    end PROPOSED_VALUE
    from NI_PROPOSALS
    where NEW_ITEM_SEQ_NUM = :P2_NEW_ITEM_SEQ_NUM
    The report works fine on the page but when I try to process it using the following the values in the corresponding report don't align and is some cases I can't figure out where the values came from. Here's the code from the app process.
    DECLARE
    vRow BINARY_INTEGER;
    BEGIN
    :P2_RETURN_MESSAGE := 'This is a test, count = ' || apex_application.g_f01.COUNT;
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    vrow := apex_application.g_f01 (i);
    :P2_RETURN_MESSAGE := 'Inside the loop '
    || '. f01->'
    || apex_application.g_f01 (i)
    || '. f02->'
    || apex_application.g_f02 (i)
    || ' / f03->'
    || apex_application.g_f03 (i)
    || ' /f04-> '
    || apex_application.g_f04 (i)
    || ' / f05->'
    || apex_application.g_f05 (i)
    || ' / f06->'
    || apex_application.g_f06 (i)
    || ' / f07->'
    || apex_application.g_f07 (i);
    /* || ' / f08>'
    || nvl(apex_application.g_f08 (i), ' ');
    || ' / f09>'
    || nvl(apex_application.g_f09 (i), ' ')
    || ' / f10->'
    || nvl(apex_application.g_f10 (i), ' ')
    || ' / f11->'
    || nvl(apex_application.g_f12 (i), ' ')
    || ' / f12->'
    || nvl(apex_application.g_f12 (i), ' '); */
    END LOOP;
    END;
    There are 10 fields being selected in the sql above but if I try to concatenate more than g_f07 I get ora-1403 errors, data not found. None of these columns are null and I can't figure it out.
    Anyone have any thoughts?
    Thanks,
    Bruce

    Hi Bruce,
    is it possible that some of the columns are just of display type "Standard report column"? Because those will not save state.
    For an explanation of the apex_application.g_fxx array mapping, have a look at http://inside-apex.blogspot.com/2007/03/which-tabular-form-column-is-mapped-to.html
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

  • Problem with Apex_application.f01(i),Apex_application.f02(i),

    Hi,
    I have written Apex_item.check box,apex_item.text in SQL query,so i got check box and text item to each row in a report..
    here my requirement is that i should pass text item value which has enable the check box so in Process i have written code like..
    FOR i IN 1 .. APEX_Application.g_f01.COUNT
    LOOP
    apps.napp_start_ir_pkg.generate_report_data(APEX_Application.g_f01(i)
    ,APEX_Application.g_f02(i)
    END LOOP;
    COMMIT;
    Here the issue is I have enabled 5 check boxes randomly i.e row 1,5,6,8,9 and entered values in a text item respectively after that i click submit button.so here APEX_Application.g_f02(i) are passing null values to the procedure..
    How can i pass text values to procedure?
    I have been facing this problem for a 10 days..can you please guide me how to write code in process for passing the text values also..
    Thanks in advance...
    Regards
    Narender B

    Bob37 wrote:
    I can't imagine how that would work. I can only repeat what I said above in the reply Posted: Nov 11, 2011 3:26 PM Your solution should work, however not in all cases; certainly not without restricting the tabular form (specifically, removing the ability for the user to re-order fields)
    You should have values in g_f02 after submit, but you can't access G_f02 using "g_f02(i)"
    'i' will be equal to 1,2,3,4,5 and you need (1,5,6,8,9) which are the row numbers of the checked checkboxes.
    Absolutely right
    To resolve that bit, your code should be
    FOR i IN 1 .. APEX_Application.g_f01.COUNT
    LOOP
    apps.napp_start_ir_pkg.generate_report_data(APEX_Application.g_f01(i)
    ,APEX_Application.g_f02(Apex_application.g_f01(i))
    END LOOP;
    COMMIT;Note the G_f02 array access difference using g_f02(Apex_application.g_f01(i)) instead of g_f02(i)
    In other words, and in your example,
    Apex_application.g_f01(1) = 1
    Apex_application.g_f01(2) = 5
    Apex_application.g_f01(3) = 6
    Apex_application.g_f01(4) = 8
    Apex_application.g_f01(5) = 9
    This is not entirely correct, specifically it would only be correct if the checkbox field f01 maps onto the relative row number (i.e. the row number in the form itself, rather than the query). The OP does not indicate exactly which value he has mapped to f01 - if he's using the SQL pseudocolumn rownum AND he's allowing the form to be re-ordered, he's going to be in for a nasty shock when rows start being updated randomly (the absolute rownum from the query is retained, thus when you re-order, this value jumps all over the place).
    It looks like he's mapped some sort of unique ID field onto f01, which I believe will not work either (because he still has the same problem - namely that the index for the array f02 won't necessarily match that of f01...
    Bearing in mind, I'm still using 3.x, there might be an apex-specific row number which retains the relative row number value - typically, I map my checkbox field to a unique ID and use that to make updates, although I've not really implemented many forms that reference multiple page items in the way the OP wishes to.

  • Old problem with precision time counting and /usepmtimer solution.

    Hello, all!
    There was a problem in Windows XP and 2003 Server with using QueryPerformanceCouner() function. Sometimes it can cause problem with precision time measurements on CPUs which support powersaving modes by changing clock frequency. The simplest solution for that was /usepmtimer key in boot.ini file which forces the system to use another timer.
    I just want to know does this problem appear in Windoes 7? And how to solve it since there is no boot.ini file in Windows 7?
    Thanks a lot!
    P.S. This is a page with detailed description of the problem:
    http://support.microsoft.com/default.aspx/kb/895980

    Hi ,
    There is official documentation released on userpmtimer for windows 7 operating system.
    Also the KB article only refere to the OS which have performance problem.
    After reading the below article , i feel that this problem is taken care in windows 7 / windows 2008 ( though there is no formal written documentation )
    http://blogs.technet.com/perfguru/archive/2008/02/18/explanation-for-the-usepmtimer-switch-in-the-boot-ini.aspx
    you can post in windows 7 dedicated forum, so that MVP / Microsoft Engineers and community members would suggest you with latest data if any.
    http://social.technet.microsoft.com/Forums/en-US/category/w7itpro

  • Problem with getting word count in TLF text

    Hi,
    I want to get the word count from my TLF text, but the problem is that I am not being able to handle th case for space.
    I am using the findNextWordBoundary property of ParagraphElement as shown below:
    private function countWords( para : ParagraphElement ) : void
                var wordBoundary:int = 0;
                var prevBoundary:int = 0;
                while ( wordBoundary != para.findNextWordBoundary( wordBoundary ) )
                   // If the value is greater than 1, then it's a word, otherwise it's a space.
                    if ( para.findNextWordBoundary( wordBoundary ) - wordBoundary > 1)
                        wordCount += 1;                   
                    prevBoundary = wordBoundary;
                    wordBoundary = para.findNextWordBoundary( wordBoundary );                   
                    // If the value is greater than 1, then it's a word, otherwise it's a space.
                    if ( wordBoundary - prevBoundary > 1 )
                        var s:String = para.getText().substring( prevBoundary, wordBoundary );
                        lenTotal += s.length;
    Now I have 2 issues here:
    If my string is for eg: Hi, I am writing in "TLF". And I want to get its word count then
    1) Suppose I take the case of the string Hi,  . Then para.getText().substring( prevBoundary, wordBoundary ) gives the text as Hi i.e without the comma. Same case for the string "TLF forums" , It treats each " as a single word and not the whole "TLF" as a single word. Why doesn't it compute till spaces, that should be the ideal case. So until we don't give a space it should count the whole thing as a word.
    2) So now the problem is I have applied a condition   if ( wordBoundary - prevBoundary > 1 ) to check if it is a space i.e. if the diff is <= 1 it is a Space. But if I use this I miss out on single words. Like for eg if I have "Hi, This is a string" ,then 'a' is ignored too.
    Now I could have added a check here along with the space check that the string between prevBoundary and wordBoundary is " "(i.e a space), Then also it is a problem as then the single words like a,&,I will be ignored.
    So, now I am stuck with this issue and need some help from you guys.
    Thanks

    findNextWordBoundary is not going to serve your purpose.  I'd propose doing something like this:
    // didn't test this but something like this - whitespace matches any set of 1 or more white space characters
    static const whiteSpaceRegExp:RegExp = /[u0020|u000A|u000D]*/
    public static function countWords( para : ParagraphElement ) : void
         return para.getText().split(whiteSpaceRegExp).length;
    A good list of everything considered whitespace extracted from the unicode space can be found here:
    http://sourceforge.net/adobe/tlf/svn/449/tree/trunk/textLayout/src/flashx/textLayout/utils /CharacterUtil.as
    In function createWhiteSpaceObject
    Hope that helps,
    Richard

  • Problem with Korean Word Counting

    After upgrading to Yosemite 10.10.3, Korean word counting in Pages got mesed up. Before the upgrade, there was no problem. But now Pages counts every single letter I typed as a "word." As a writer who should be sensitive to the number of words I type, this is very annoying. Is there anyone who experiences the same problem? is there any fix?

    See
    Korean word count

  • Problem with ACLs hit counts

    Hello
    I've applied the following ACL to an interface but don't see the hit counts (e.g. something like
    30 deny tcp any any (58 hw matches)):
    RP/0/RSP0/CPU0:test#show access-lists ipv4 2020
    Fri Aug 26 09:34:48.094 HKT
    ipv4 access-list 2020
    10 deny ipv4 any host 202.146.219.55
    20 deny ipv4 any host 218.213.235.211
    30 deny ipv4 any host 116.193.159.79
    50 deny ipv4 any host 111.68.2.101
    60 deny ipv4 any host 112.121.170.43
    77 deny ipv4 host 117.211.87.202 any
    78 deny ipv4 host 202.29.220.238 any
    79 deny udp any host 218.213.92.3
    80 deny udp any host 218.213.91.45
    81 deny ipv4 host 59.42.249.51 host 218.213.91.45
    Also got the following:
    RP/0/RSP0/CPU0:test#show access-lists ipv4 2020 hardware ingress interface gigabitEthernet 0/0/0/31 sequence 81 location 0/0/CPU0
    Fri Aug 26 09:34:52.209 HKT
    The interface does not have per-interface statistics enabled
    RP/0/RSP0/CPU0:test(config-if)#ipv4 access-group 2020 ingress  interface-statisticsRP/0/RSP0/CPU0:test(config-if)#commitMon Aug  29 09:44:42.725 HKT
    % Failed to commit one or more configuration items  during a pseudo-atomic operation. All changes made have been reverted. Please  issue 'show configuration failed' from this session to view the errors
    Is there any configuration still missing?? 
    Pls help.  Thanks!

    Thanks!
    Have tried but still got the following:
    RP/0/RSP0/CPU0:test(config-if)#show config failed
    Wed Aug 31 09:41:58.730 HKT
    !! SEMANTIC ERRORS: This configuration was rejected by
    !! the system due to semantic errors. The individual
    !! errors with each failed configuration command can be
    !! found below.
    interface GigabitEthernet0/0/0/23
    ipv4 access-group 2020 ingress hardware-count interface-statistics
    !!% 'pfilter-ea' detected the 'warning' condition 'Mode mismatch.ACL has been applied in different modes on this LC - interface stats and ace stats. '
    end
    Could you let me know the reason?  Thanks again.

  • Problem with timed histogram counter

    I have tested a small bit of code (attached) that works fine by itself, but when I integrate it to another vi it has some difficulty.  I simply wanted to make take the output of a histogram (being summed) and time how long it could fill up rather than let it fill up continuously.
    I have attached also a picture of the code as it is assembled into the larger vi.
    Thanks for any help,
    Kevin 
    LV2009 
    Attachments:
    array timed2.vi ‏58 KB
    SplitHistogram.png ‏158 KB

    I am not very sure about what you are trying to do.  What "node" are you adding at the first arrow in the image?  Does it work before you put this "node" in? 
    Also, is it possible that your "Time Done" Variable is never turning true and therefore you are never going into your true case that writes the data to the indicator?
    Finally, I am not sure what the second half of your image has to do with the rest, but you cannot split a number into multiple signals.  That function should only really be used to split dynamic data that contains multiple waveforms in one.
    Please clarify your question a bit more so we can provide some more help.
    David_L | Certified LabVIEW Architect
    LabVIEW Tools Network | LabVIEW Tools Network Developer Center

  • JSF 1.2 - Problem with passing page count to bean to create list

    I have this select option:
    <f:verbatim>Pages: </f:verbatim>
    <h:selectOneMenu id="selectPage" value="#{pageList.selectedPage}">
             <f:selectItems value="#{pageList.selectPages}" />
    </h:selectOneMenu>And the backing bean (called mybean2) for this is:
    private int pages;
    public void getPages(int Pages)
         this.pages = Pages;
    // getter methods
    public List<SelectItem> getSelectPages()
         selectPages = new ArrayList<SelectItem>();
            pages++;
            for (int i = 1; i > pages; i++) {
                 selectPages.add(new SelectItem(Integer.toString(i), Integer.toString(i)));
             return selectPages;
    public String getSelectedPage()
             return selectedPage;
    // setter methods
    public void setSelectPages(List<SelectItem> selectPages) {
            this.selectPages = selectPages;
    public void setSelectedPage(String selectedPage) {
             this.selectedPage = selectedPage;
    }The getPages method above gets the page count from mybean1.submit method. Thus, for example, when the submit method returns 30, how am I able to pass this value into the getSelectPages so I can dynamically created the number of pages

    r035198x wrote:
    You could store the value in the session and remove it when you need to use it.Thanks, r035198x. I tried that before and users from other Java forums suggest that I shouldn't do it this way as I am adding more codes than necessary to pass technically a value from one bean to another. Hence, I decided to follow their advice and went and created a generic bean that can be referenced by other beans for pages calculation. Some users also suggest using Dependency Injection (available for JSF 1.2) to try to accomplish the result I want. I've also read about this method in JSF 1.2 spec - but without much example, I'm pretty much in the dark as to how this work. Unfortunately, I've only been on JSF for the last 4 weeks so I'm still a newbie - please excuse any "dumb" questions I have asked on this forum so far...
    What I currently has working for me is moving the method to calculate the pages from mybean1 to mybean2. This means all I have to do now for the other beans (11 remaining) is passed a few parameters to mybean2's method that calculate pages.
    Edited by: icepax on 12/11/2009 18:27

  • Problem with dices and panel

    hello,
    I have the following problem with my Yahtzee game:
    I use a class DicePanel with there on five instances of class 'Dice'. When you push the 'throw' button on the panel, I want the panel to check if there is actually something selected. Because if there's nothing selected there can't be thrown. (This would give problems with the 'throw counter', that's counting 1, 2, 3, 1, 2 ,3).
    I have tried a lot of things, but I always get this error:
    java.lang.OutOfStackError
    When you push on the throw button, first the dices are checked to be selected. I prefer to use a method for this, so i can write something like the following in the throw method:
    if( somethingIsSelected() ){
    blablabla
    or:
    if( !somethingIsSelected )
    return;
    My dices are in an array so i can check each dice witch a for-loop. After this for-loop some boolean should be false or true
    So my question is: how can i prevent the StackOverflowError??
    What seems to be the most logical way to work with 5 dices and one panel?
    excuse me for my bad English ;-)
    mzzl

    If you're getting a stack overflow, then you're probably recursing but not checking the end conditions properly.

  • Problem with Notifications (Gnome 3.4.1)

    Hey guys.
    I just installed Arch with Gnome 3.4.1, and everything works fine. I just had two issues. The first one, was the Date/Time, and that i solved by reading another thread here.
    The second problem is what i'm worried about...
    The default behavior for notifications is to show the notification bar for some seconds, and then hide it, right? Then, if there's more notifications of that same program, put a counter on it.
    The thing is, i have no such behavior. The bar don't show, and the notification counter do not work. I use Empathy, and when i receive more than one message, the notification counter doesn't appear, and i think, because of that, some extensions that use notifications counters don't work at all.
    Not sure if i was clear, let me know if you need more details. I have vanilla Gnome Shell Theme, Icons and all the extensions are disabled. Everything was installed with 'pacman -S gnome gnome-extra'
    Can you guys give me some light on this? Is it a upstream bug? Ubuntu with shell 3.4.1 seemed to work fine, but i really want to use Arch....
    Thanks in advance.

    m79reed wrote:
    @jakobcreutzfeldt,
    Try install this extension: https://extensions.gnome.org/extension/ … -notifier/. It's much easier to see how counters is working with that one.
    And now...
    Counters is not working for me:
    1) contacts that have already a chat WINDOW opened (chat window is not active)
    2) contact that chat TAB is active (chat window is not active).
    Red notification icon blinks only fast and gone - like something marks it as readed.
    For any other contacts (someone send a message to you first [no opened chat window with that contact] OR TAB is non-active) notification counters is working fine.
    I will try to add a new account and test on it. Mayby something is wrong with old configuraction files from gnome-shell 3.2...
    [edit]
    OK, i've tested with fresh account and problem exists and sound notification works only for contacts sending a new message.
    [edit2]
    Just discovered that notification counters is not working when use -a option for notify-send command. Any other options works fine. Ex.:
    notify-send -a empathy -i empathy test1 test2 - counter is not working
    notify-send -i empathy test1 test2 - counter is working fine
    This is my problem exatly. Still not able to figure this out.
    No, it's not a problem with extension. Counter notifications is not working without it too.
    @jakobcreutzfeldt,
    Can you paste yours:
    pacman -Qs notification
    output?
    This is mine:
    pacman -Qs notification
    local/libevent 2.0.18-1
    An event notification library
    local/libnotify 0.7.5-1
    Desktop notification library
    local/notification-daemon 0.7.4-1 (gnome)
    Notification daemon for the desktop notifications framework
    local/startup-notification 0.12-2
    Monitor and display application startup

  • Problem with LTRR

    In the Local Tax Remittance Report, we have a problem with only certain counties in only one state where the EE county tax is zero even though wages are present. What could be causing this? How do I resolve this?

    Yes we can setup new county taxes. But the county tax was already present and the appropriate amounts were being withheld correctly. I confirmed this in the balances. The reason I have found is that the LIT withheld checkbox needs to be enabled. But we cannot edit a county tax record directly after it has been created. The checkbox was disabled because the employee is in Indiana. Indiana has a state rule that the employee has to pay the county taxers through the year dependent on where he was residing at the beginning of a year. So, if there was a new hire in the year, his LIT withheld checkbox will be disabled. To work around this, we have to enter a taxation address which will then enable the LIT withheld checkbox. At the beginning of every year, before the first payroll is run, the Indian Year Begin process needs to be run and this will remove any taxation addresses entered in the previous year while leaving county taxes on.
    Because of the LIT withheld checkbox not being enabled, we did not have any problem with the balances but it was just that the LTRR was not working properly for counties in Indiana.
    But the employees in these counties were not new hires and that was the question that was puzzling me. The year end patches seem to have somehow resolved this issue as we do not have it any more in development or test. It is only in production that we get this error. Once we apply patches in production, I will let y'all know if we still face this issue.

  • Apex_application.g_fXX and collection problem

    Hello all!
    In the midst of writing my second apex application, it appears I need to use apex_application functionality to meet my requirements and am seeking assistance.
    I have a table/report with a column link (item_id) and a second column (as a text field) (there are more columns displayed), but I think they are irrelevant to this situation) populated with a value QTY (c002) from a collection where c001 = item_id. What I'm attempting to do is allow someone to enter a qty in the c002 text field, apply the qty change to the collection and reload the page displaying the new quantity value in the report when the column link (image) is selected (page redirects to itself).
    Since it appears that column links are not a SUBMIT, I've put my collection update plsql in a before header process. According to the debug output, this collection insert is executed long before the rendering of the report.
    This is my report plsql;
    declare
    l_query varchar2(4000) := '';
    begin
    l_query := 'select i.INVENTORY_ID, col.c002, ql.QUANTITY_AVAILABLE, i.STRAIN_CODE, i.STRAIN_NAME, i.GENOTYPE, i.AGE, i.SEX, ql.ROOM_NUMBER from SM_INVENTORY i, SM_QUANTITY_LOCATION ql, apex_collections col where ql.STRAIN_ID = i.STRAIN_ID(+) and col.collection_name (+)= ''ORDER'' and col.c001 (+)= i.INVENTORY_ID';
    end;
    This is my update collection plsql (I don't have the insert part yet, but my collection already contains values);
    declare col_item_count number;
    col_seq number;
    item_id number;
    qty number;
    begin
    if apex_collection.collection_exists('ORDER') = FALSE then
    apex_collection.create_collection( p_collection_name => 'ORDER');
    commit;
    end if;
    for i in 1..apex_application.g_f01.count
    loop
    item_id := apex_application.g_f01(i);
    qty := apex_application.g_f02(i);
    select count(c001),seq_id into col_item_count, col_seq
    from apex_collections
    where c001 = item_id
    and collection_name = 'ORDER';
    group by c001, seq_id;
    if col_item_count > 0 then
    apex_collection.update_member(
    p_collection_name => 'ORDER',
    p_seq             => col_seq,
    p_c001 => item_id,
    p_c002 => qty);
    commit;
    end if;
    end loop;
    end;
    Given all this, my collection entry is not updated with the new value of c002 displayed in my report text field.
    Be advised, I've not found documentation about the apex_application package of sufficient detail to allow me to comprehend exactly what gets put into the apex_application.g_fXX values or when, but based on what I've gathered from examples/blogs, I think it contains the report in the currently rendered page, but I honestly don't know.
    Given my assumptions, I'm expecting apex_application.g_f01(1) would be the first row item_id of my report and apex_application.g_f01(2) would be the first row c002 (qty from my collection) of my report. If this is correct, I would expect this would work.
    What might I have missed?
    Thanks!
    Paul
    PS. Honestly, is this methodology the only/easiest way to get my requirement/functionality to work? Is there an easier way?

    OK, tried this - not yet successful. This is what I've got.
    Classic report loaded by;
    declare
    l_query varchar2(4000) := '';
    begin
    l_query := 'select i.INVENTORY_ID, i.INVENTORY_ID inv_id_hold, col.c002, ql.QUANTITY_AVAILABLE, i.STRAIN_CODE, i.STRAIN_NAME, i.GENOTYPE, i.AGE, i.SEX, ql.ROOM_NUMBER from SM_INVENTORY i, SM_QUANTITY_LOCATION ql, apex_collections col where ql.STRAIN_ID = i.STRAIN_ID(+) and col.collection_name (+)= ''ORDER'' and col.c001 (+)= i.INVENTORY_ID';
    end;
    Created a "SAVE" button.
    Set up column inv_id_hold as a hidden tab form element and col.c002 as a text field tab form element (item_id and qty respectively). These should now be available as apex_application.g_f01 and apex_application.g_f02 (right?).
    I have this post submit plsql in a process conditioned to the "SAVE" button.
    declare col_item_count number;
    col_seq number;
    item_id number;
    qty number;
    begin
    if apex_collection.collection_exists('ORDER') = FALSE then
    apex_collection.create_collection( p_collection_name => 'ORDER');
    end if;
    for i in 1..apex_application.g_f01.count
    loop
    item_id := apex_application.g_f01(i);
    qty := apex_application.g_f02(i);
    select count(c001),seq_id into col_item_count, col_seq
    from apex_collections
    where c001 = apex_application.g_f01(i)
    and collection_name = 'ORDER';
    --group by c001, seq_id;*
    if col_item_count > 0 then
    apex_collection.update_member(
    p_collection_name => 'ORDER',
    p_seq             => col_seq,
    p_c001 => item_id,
    p_c002 => qty);
    else
    apex_collection.add_member(
    p_collection_name => 'ORDER',
    p_c001 => item_id,
    p_c002 => qty);
    end if;
    end loop;
    end;
    When I enter something in my qty column and press SAVE, I get "ORA-01403: no data found" being thrown by the plsql process (per debug). Since everything is going on "under the hood" and there is no step debugger in apex, I'm not able to see/understand the process in action and determine where the problem is occurring.
    I got the idea for all of this here - http://apex.oracle.com/pls/otn/f?p=39839:3:5596350954563087::NO which is the shopping cart page of the online store application. But I'm trying to get the quantity edit portion to work on the inventory listing (so a customer can add items to an order simply by providing qty input for a particular line item(s) and saving).
    Any advice?
    Can you write an order processing system in apex that uses a collection to store line items?

  • Receiver determination - Xpath expression problem with count

    I am working with a scenario where I pick up records from a JDBC connection and if the number of records I pick up is less than a certain number I want to call a webservice.  If it is greater than the number I want to write out a file to be processed by a different process on the receiving end.  I have created the receiver determination condition with the following conditions:
    (/p1:MT_HOG_Data/row[count(row) > 3] EX)
    (/p1:MT_HOG_Data/row[count(row) <= 3] EX)
    The integration is always processing the second condition no matter how many records come in.  I have tried with and without the multiline option.  Can anyone help with this?
    I have searched through the forum and checked the following links without any resolution:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    I can't find any examples where a count of records is checked in the expression editor.  Thanks in advance for any help.

    You can not use the EX operator in that case, because that is used only for node existence checks, not for value checks.
    Do you have a row number in your structure ? Then you could write the xpath expression with that counter tag and value
    Example: you want to send to receiver A if count > 3, else to B:
    you set  /rowNumber EQUAL 4 for sender A
    and /rowNumber NOT EQUAL 4 for sender B
    The condition is applied to the whole document. If one of the node/values are true for that condition, then the whole condition is set to true.
    Problem with that is that the second condition also will be true because nodes for that condition will be found
    better would be to have a rowcount tag in the structure. If that is not possible, you can use the "Enhanced Receiver determination" where you can define a mapping which determines the receivers. There you can do anything complicated you want.
    CSY

Maybe you are looking for

  • FR102- co.code & chart of accounts are incompatible

    Dear All One of Co.Codes is using country chart of accounts . While executing Financial Statements report with country chart of accounts, I am getting the error messageu2026FR102- Co.Code & chart of accounts are incompatible. I assigned country Chart

  • Movies in MS PowerPoint are not shown in Keynote on iPad

    Hey Users, I did a Presentation in Microsoft PowerPoint (.pptx) with embedded Movies (I tried .MOV, .wmv, .mp4, .avi). Then I synchronized the .pptx-document in iTunes and imported it in Keynote (on iPad). After importing the file I got an error mess

  • 2LIS_06_INV : No data with oli6bw in ECC

    Hi experts, I execute transaction (oli6bw) for recompilation of Invoice Documents for use 2LIS_06_INV, but recompilation has not selected anything. In the error log V_MRMRBBW_ERR : -     Recompilation started -     Recompilation ended successfully - 

  • Customer Download

    Hi I am downloading a customer to CRM from R/3 with filter setup for that customer & one sales org. as soon as i run the download object customer_main, R3AD_Custome queue in R/3 comes in STOP Status & CUSTOMER_MAIN in CRM is in Running Status since a

  • Problem with a indexes that doesn't run

    Hi all, I premise that I'm not a Dba Administrator, but I must resolve a performance problem in a complex select. I hope to explain it, but If you need others information about it, I can give all! I read a Rob thread about the explain plan and tkprof