Loop or count for unique in dropdown?

I'm trying to build my first dynamic dropdown populated from an XML file.
The XSD and XML files are output from Access. The nodes of the XML are pretty simple, example as follows:
<AllStudentsAllSchools>
<LastName>Doe<LastName>
<FirstName>Jane<FirstName>
<SchoolName>Main street Middle<SchoolName>
</AllStudentsAllSchools>
The dyanamics on the PDF are running - I'm getting fields filled from the XML.
(As in the above sample XML) For a dropdown to just list the unique school names and not repeat every row that contains a school name... Do I loop through the XML with a javascript loop or count, etc? Or can this be set up automatically in Livecycle, maybe with the Dynamic Properties dialog under the binding tab?
Currently, what I have is the dropdown only reads the first row, pulling only one school name.
Each of the subforms within the main flowed form are set up as Fragments (Including this school name dropdown). Some fragments are dynamic and some not. The dropdown within the fragment is the dynamic one, reading the XML file. The same XML file is the data connection for the PDF (that contains the Fragments).
Example PDF, XSD and XML attached, although the dropdown isn't set up as a Fragment here.
Thanks for any responses...
- e

Thanks so much for the advice, Ben.
I'm not sure where to put the code you sent.
I have an on "exit" switch case javascript on this dropdown that calls the next dropdowns that appear when a user selects a school name.
I tried putting your code above this switch case as well as below it but neither pulled dynamically from the dom.
The PDF default connection is the XSD and XML (on the PDF that contains this school names dropdown fragment). There are many other nodes in the XML - with the school names dropdown and a couple of other dropdowns being dynamic - a 'swith-case' on both static and dynamic dropdowns.
Is the three step code you sent to be set up on the fragment containing this dropdown or on the PDF itself that contains this subform-fragment? Do I need to set up the default data connection on the fragment file as well or does the '3 step' javascript not need this?
I'm not sure how to mix the switch-case with what you sent since I wouldn't know before hand how many schools the dropdown may display at any given time. I know I could'nt use the following since there would be more than just a "case 0". Maybe just an "on select anything" type javascript?
switch (this.selectedIndex){
case 0 : ewcDataManageSubform.presence = "visible";
             ewcPermissionsSubform.presence = "hidden";
             ewcOrderBySubform.presence = "hidden";
             SubmitButton1Subform.presence = "hidden";
             break;
default : ewcDataManageSubform.presence = "hidden";
             ewcPermissionsSubform.presence = "hidden";
             ewcAnthropoSubform.presence = "hidden";
             ewcFitTestSubform.presence = "hidden";
             ewcOrderBySubform.presence = "hidden";
             SubmitButton1Subform.presence = "hidden";
             break;
Thanks again for your input and sending the javascript solution... Just not sure where to put it and if I need to bind the fragment form to a default connection pointing to the XML (as well as the PDF that displays the fragment subform). A learning curve for me here but, what an awesome program this is!
- e

Similar Messages

  • SCE 8000 i can not assign unique counter for service

    Hi!
    1. Create new service http://clip2net.com/s/1jg2x
    2. Try to assign unique counter for service, but a field inactively http://clip2net.com/s/1jg45
    how it to fixed?

    Hi!
    I think you're running out of counter index for the subscriber usage counter, it's 0-31.
    Please uncheck the check box from other existing service and try that again?
    Thanks!
    Tomo

  • Counter of unique products

    Hi,
                Actually i have to calculate the Counter of unique products., and print this value in the Smartform. Can you please help me out (the logic for this) please.
    I need to print a text called "**TOTALS** ". Also print the counter. Actually this is a modification to the existing layout. The line items are printed in the ITEM linetype. Do i need to print these TOTALS and Counter fields in the footer Line type, as I also need to print the literal **DATA CONTINUED ON NEXT PAGE** if data rolls onto next page in the footer. Please help me out.
    Example:
    QTY    PRODUCT          field1        field2         field3
    1              270
    2              270
    3              270
    4              271
    5              272
    6              272
                                  **TOTALS**
                     3
                                                                     **DATA CONTINUED ON NEXT PAGE**
    Thanks....

    Determine the internal table in which the data is stored. Now add coding (right mouse click on node) to loop over this internal table and determine the totals. Define a global parameter for the totals and use this in the footer.
    In stead of adding some coding in the smartform itself, you can also do this in the initialization (form / subroutines).
    The data is either part of the import parameters, or is retrieved somewhere in the initialization (form / subroutines).

  • What happens to the while loop iteration counter if it runs unchecked?

    I want to use the iteration counter to initialise a value on the first loop of a while statement. ie i = 0, x = 100. Fine. The application I am building will be left to run for weeks or months on end without stopping (hopefully :¬)). What happens to the iteration counter in this situation? Does it reset to 0 or what? I don't want it reinitialising any values while the loop is running other than when it starts.
    I set up a while loop to try to figure out what happens and the iteration counter stops at 2147483648 which is 2^31 - 1.
    Any help would be appreciated,
    Thanks,
    Niel.

    It might be something you already looked at, but perhaps it's an option to perform the initialization outside (before) the while loop. That way it will be initialized correctly only once, no matter what the iteration counter does.
    Of course if you need the counter for other purposes than initialization you might have the same problem...
    Note that a lot of the timer functions also overflow after a certain time (I believe 24 or 48 days?) so be careful running very long loops (but you already knew that probably).

  • How to get total number of result count for particular key on cluster

    Hi-
    My application requirement is client side require only limited number of data for 'Search Key' form total records found in cluster. Also i need 'total number of result count' for that key present on the custer.
    To get subset of record i'm using IndexAwarefilter and returning only limited set each individual node. though i get total number of records present on the individual node, it is not possible to return this count to client form IndexAwarefilter (filter return only Binary set).
    Is there anyway i can get this number (total result size) on client side without returning whole chunk of data?
    Thanks in advance.
    Prashant

    user11100190 wrote:
    Hi,
    Thanks for suggesting a soultion, it works well.
    But apart from the count (cardinality), the client also expects the actual results. In this case, it seems that the filter will be executed twice (once for counting, then once again for generating actual resultset)
    Actually, we need to perform the paging. In order to achieve paging in efficient manner we need that filter returns only the PAGESIZE records and it also returns the total 'count' that meets the criteria.
    If you want to do paging, you can use the LimitFilter class.
    If you want to have paging AND total number of results, then at the moment you have to use two passes if you want to use out-of-the-box features because LimitFilter does not return the total number of results (which by the way may change between two page retrieval).
    What we currently do is, the filter puts the total count in a static variable and but returns only the first N records. The aggregator then clubs these info into a single list and returns to the client. (The List returned by aggregator contains a special entry representing the count).
    This is not really a good idea because if you have more than one user doing this operation then you will have problems storing more than one values in a single static variable and you used a cache service with a thread-pool (thread-count set to larger than one).
    We assume that the aggregator will execute immediately after the filter on the same node, this way aggregator will always read the count set by the filter.
    You can't assume this if you have multiple client threads doing the same kind of filtering operation and you have a thread-pool configured for the cache service.
    Please tell us if our approach will always work, and whether it will be efficient as compared to using Count class which requires executing filter twice.
    No it won't if you used a thread-pool. Also, it might happen that Coherence will execute the filtering and the aggregation from the same client thread multiple times on the same node if some partitions were newly moved to the node which already executed the filtering+aggregation once. I don't know anything which would even prevent this being executed on a separate thread concurrently.
    The following solution may be working, but I can't fully recommend it as it may leak memory depending on how exactly the filtering and aggregation is implemented (if it is possible that a filtering pass is done but the corresponding aggregation is not executed on the node because of some partitions moved away).
    At sending the cache.aggregate(Filter, EntryAggregator) call you should specify a unique key for each such filtering operation to both the filter and the aggregator.
    On the storage node you should have a static HashMap.
    The filter should do the following two steps while being synchronized on the HashMap.
    1. Ensure that a ConcurrentLinkedQueue object exists in a HashMap keyed by that unique key, and
    2. Enqueue the total number count you want to pass to the aggregator into that queue.
    The parallel aggregator should do the following two steps while being synchronized on the HashMap.
    1. Dequeue a single element from the queue, and return it as a partial total count.
    2. If the queue is now empty, then remove it from the HashMap.
    The parallel aggregator should return the popped number as a partial total count as part of the partial result.
    The client side of the parallel aware aggregator should sum the total counts in the partial result.
    Since the enqueueing and dequeueing may be interleaved from multiple threads, it may be possible that the partial total count returned in a result does not correspond to the data in the partial result, so you should not base anything on that assumption.
    Once again, that approach may leak memory based on how Coherence is internally implemented, so I can't recommend this approach but it may work.
    Another thought is that since returning entire cached values from an aggregation is more expensive than filtering (you have to deserialize and reserialize objects), you may still be better off by running a separate count and filter pass from the client, since for that you may not need to deserialize entries at all, so the cost on the server may be lower.
    Best regards,
    Robert

  • How do I count the unique value pairs in two columns of a table?

    I have a table (Table 2) that is populated with data from an imported .csv file. On table 1 I need to count the unique value pairs in two columns of Table 2.
    Here's what I have:
    Date                                        Person
    7/10/2011                         A
    7/12/2011                         W
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         Z
    7/14/2011                         Z
    7/15/2011                 X
    7/16/2011                         Z
    I'm focusing on person "X" and can easily count how many days that person shows up but what I want is to see on how many unique days that person shows up.
    Here's the result I'm looking for (Person "X" shows up on 2 different days - 3 times on 7/12/2011 and once on 7/15/2011):
    X                    2
    I can't seem to find a function that allows me to do that. I also am not allowed to modify Table 2 so that leaves me to come up with a solution on Table 1.
    Any ideas would be greatly appreciated.

    Hi John,
    Not being allowed to modify Table 2 is a minor inconvenience. Just copy (using a formula) the necessary two columns onto Table 1.
    Yellow columns may be hidden. The procedure progresses from left to right. All formulas are entered into row 2 then filled down that column to the end of the table. The table must be as long as the list in column A of Table 2.
    A2: =Table 2::A
    Fill right to column B.
    Fill both columns down as far as needed.
    I've used actual Date and Time values in column A, formatted to show only the Date part, but the technique will work with text in these cells, provided all cells representing the same 'date' have exactly the same content.
    C2: =A&B
    This concatenates the contents of each row of columns A and B into a single text string.
    D2: =COUNTIF($C$2:C2,C)
    This counts the number of occurrences of the Date&Name string on the current row from the first regular cell in column C (C2) to the current cell.
    E2: =IF(COUNTIF($B$2:B2,B)=1,MAX($E$1:E1)+1,"")
    This constructs the index of first occurrences of each name, in the order they first occur. The index is used by LOOKUP in column F.
    F2: =IF(ROW()-1>MAX(E),"",LOOKUP(ROW()-1,$E,$B))
    This uses the index value created in E as a search-for value to extract a single copy of the names in column B. The result is a list of all distinct names in the list. Note that spelling differences will be counted as distinct names.The IF statement stops the listing when the last distinct name is extracted.
    G2: =IF(LEN(F)>0,COUNTIFS($B,"="&F,$D,"=1"),"")
    This counts the number of 'first occurrences of distinct Date & Name strings for each name on the list (ie. the number of distinct dates on which each name appears in the original list).
    All of the functions used are described, with at least one example for each, in the iWork formulas and Functions User Guide. You can download the guide, and the Numbers '09 User Guide, via the Help menu in numbers.
    Regards,
    Barry

  • Message retry count for the message has been exhausted

    Hi,
    I am using 'Custom Document Over Internet' with HTTPS as transport protocol. I have set the acknowledgement mode to Sync in order to receive the synchronous response. B2B is able to post the HTTP request successfully and in turn it receives a synchronous response and a MDN message. At the initial stage, after posting the request it shows the state as 'WaitForAck' for request message and for response and MDN messages, the state is completed.
    After some time when we check the state of request it is changed to 'Error' with the error message as 'Message retry count for the message has been exhausted'. We have not set the retry count and retry interval and so after retrying for 3 times with an interval of 120 minutes it is showing error state as it is not able to correlate the incoming response to the corresspoding request. We have tried the option of setting the Message id of the request in 'replyToMsgID' parameter of response header and tested the flow. But still I am facing te same issue. Please help me to resolve this issue.

    Hi Anuj,
    The property mentioned by NandaGopal has already been added in tip.properties file. I sent the B2B logs in debug mode and tip.properties file to your mail id. Please have a look into that. The result of opatch lsinventory command is
    Result:
    Installed Patch List:
    =====================
    1) Patch 9234704 applied on Fri Jan 15 16:41:12 GMT 2010
    [ Bug fixes: 8870866 9143036  ]
    [ This patch overlays patches " 8703410 " ]
    [ This patch needs patches " 8703410 "  as prerequisites ]
    2) Patch 8703410 applied on Thu Jan 07 17:56:08 GMT 2010
    Unique Patch ID: 11901808
    [ Bug fixes: 7652646 7497854 7664370 8708445 7661101 7007789 6352814 6802446 7665607 7641078 6496457 6013963 8330151 7305413 8619657 7460584 7529893 7458954 7020996 8393885 8210401 6329207 6740403 7126458 6511970 8783577 7379065 7230993 8704965 6774631 7198642 8309511 8392729 7661769 7605518 7479148 6733262 8349002 6736026 7322333 7242500 7239355 8746561 8344645 8451004 7645440 6747966 6369424 6737334 8339176 6774134 7046561 6412124 7210461 7506319 8630406 8235175 7258882 7184318 6453359 7456866 7673646 6043277 7457597 6769895 7193710 8239170 7668247 8404955 8612841 7261965 7132740 7485790 6518386 7305363 6852370 6433256 7673431 6764239 8360048 7501748 7379153 8281019 7498031 8216457 7046574 6875312 6754906 6656289 6417367 7658271 7556011 7000190 6979467 8594506 8691820 6852308 8475848 8518443 7600385 7211208 6732051 8524862 7461051 8263026 7609467 7379161 7672714 6353293 7157229 7594997 7211287 7034069 7563311 6822375 6640935 7359202 6769261 6919593 8601869 6029507 6974391 7139013 7518641 8605719 6817264 7501903 7496014 7576785 8666761 7130151 7322581 5523563 7680097 8508905 7241737 7660780 8480395 7660781 7191994 6924921 7672723 8432093 6800745 8703404 8540335 8507242 8608121 8217566 7481317 6639030 6200414 7529795 7354853 8475867 7376270 7303860 7016005 7678901 7368610 8992520 6881977 6016128 7033061 6397084 7672730 8703410 7709562 6449656 7045589 8508054 6491068 7378745 7643811 7435853 7615836 8707416 6447557 7379042 6940476 7670634 6950383 6764273 6962327 7478322 8546454 7157324 8871403 8862082 7184219 7672744 7164618 7672745 7230184 7576730 7590301 8746541 7261863 8327427 6769430 8295683 7526186 8298731 6414280 6139955 6646997 7692853 8233048 6794296 7457066 8552373 8225241 7706387 7204022  ]
    3) Patch 4601861 applied on Fri Nov 14 04:24:08 GMT 2008
    [ Bug fixes: 4601861  ]

  • Regarding count for each type Trace entry

    Hi Friends,
    I am using ALV grid Display to display the Result.
    my requirement is to display report with sorting & Count for each entry on a particular field.
    Can anybody give me the idea or smalll code on this Plz...
    Thanks in advance.
    Regards,
    Ravish

    Hi,
    For sorting you can use standard ALV sorting functionality. (Pass the parameter it_sort by filling the sort field name and sort order like up or down(Either one).
    For count you need to keep explicit logic.
    Sample code.
    SORT i_final BY field1. "Your count field criteria.
    LOOP AT i_final INTO wa_final.
    ADD 1 TO l_count.
    AT END OF field1.
    MOVE l_count TO wa_final-count.
    MODIFY i_final FROM wa_final WHERE field1 = wa_final-field1 TRANSPORTING count.
    CLEAR l_count.
    ENDON.
    ENDLOOP.
    Make sure that your count based field is the first field in itab. For displaying the output you can adjust the fieldcat.
    Thanks,
    Vinod.

  • Count for every partition

    Hi,
    How can I get the count for every partition. I want:
    partition_name count(*)
    The table is daily partitioned by a date column.
    Ex:
    ALTER TABLE 'tableName' ADD PARTITION 'tableName||today' VALUES LESS THAN (TO_DATE('tommorow','DD-MM-YYYY'))'
    Regards,
    Gicu

    Hallo,
    if you analyze your table regularily and you want to know
    only approximate count of rows you can use :
    select partition_name, num_rows from dba_tab_partitions
    where table_name = 'TBL_TEST'Else , dynamic SQL:
    declare
    v_partition VARCHAR2(30);
    v_count NUMBEr;
    begin
    FOR x IN (select table_owner, partition_name from dba_tab_partitions
            WHERE table_name = 'TBL_TEST')
    LOOP       
        execute immediate 'SELECT '''||x.partition_name||''', count(*) from '||x.table_owner||'.TBL_TEST PARTITION ("'||x.partition_name||'")'
                           INTO v_partition, v_count ;
        dbms_output.put_line('Partition '||v_partition||' count '||v_count);                  
    END LOOP;                      
    end;     Regards
    Dmytro Dekhtyaryuk

  • Calcualting Count for a particular column

    Hi All,
             I have this internal table which has records from jcds table.Now i want to display two fields on o/p screen.The fields are 1.Delivered By
    2.No of deliveries for this user.
    No w can someone please tell me how to calculate count as there will be multiple users who would have delivered and there is no field mentioning the count for the user.
    Thanks in advance,
    Saket.

    Hi,
    check the code below
    TYPES: BEGIN OF s_itab,
            usnam TYPE cdusername,
            total TYPE int4,
          END OF s_itab.
    DATA: total TYPE int4,
          wa_itab TYPE s_itab,
          itab TYPE STANDARD TABLE OF s_itab WITH HEADER LINE.
    SELECT DISTINCT usnam
       FROM jcds
    INTO CORRESPONDING FIELDS OF TABLE itab.
    LOOP AT itab INTO wa_itab.
      SELECT COUNT(*)
        FROM jcds
        INTO total
    WHERE usnam = wa_itab-usnam.
      wa_itab-total = total.
      MODIFY itab FROM wa_itab.
    ENDLOOP.
    LOOP AT itab INTO wa_itab.
      WRITE : /1 wa_itab-usnam,
               30 wa_itab-total.
    ENDLOOP.
    Regards,
    Amit

  • I have Garage Band for my Macbook Pro. It runs on OS 10.5.8. Can I buy JamPack loops and sounds for it? Thanks.

    Can I purchase JamPack loops and sounds for MacBook Pro, running on OS 10.5.8? I already have Garage Band app.

    First you would need to meet these requirements:
    To install Mavericks, you need one of these Macs:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory
    8 GB or more of available space
    Genius bar could help you over the counter
    Genius reservation http://www.apple.com/retail/geniusbar/
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard

  • ALV: count of unique entries

    Hi Team,
    A conventional report has Plant, Delivery Doc. No., Customer ID and Material # in its line, sorted by Plant.
    On change of the Plant, the count of unique Delivery documents,Customers and Materials is displayed as shown below,
    Plnt  Delivery#  Ord/PO#    SaTy   Cust
    3100 81546208   800865     KB     11316
    3100 81546205   800864     OR     730
    3100 81546206   800864     OR     730
    3100 81546209   800865     KB     11316
    3100 81546206   800864     OR     730
    3100 81546207   800864     OR     730
    3100      5            2                           2
    I require to display this report using ALV, how to display this unique entries count in ALV.
    Thanks & Regards,
    Lakshmanan

    Hi,
    Fill these details in the final internal table which was used to display output on change of plant number.
    Then these details will be displayed in the alv output. If you want you can fill these cells in a different color.
    Example Code:
      it_head-code = 'MKT'.
      it_head-dept = 'Marketing'.
      APPEND it_head.
      CLEAR it_head.
      it_head-code = 'QA'.
      it_head-dept = 'Quality'.
      APPEND it_head.
      CLEAR it_head.
      it_head-code = 'TES'.
      it_head-dept = 'Testing'.
      APPEND it_head.
      CLEAR it_head.
      it_item-code = 'MKT'.
      it_item-emp  = 'Srinivasu'.
      it_item-city = 'Thane'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'MKT'.
      it_item-emp  = 'Sekhar'.
      it_item-city = 'Thane'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'MKT'.
      it_item-emp  = 'Radha Krishna'.
      it_item-city = 'Thane'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'MKT'.
      it_item-emp  = 'Sudheer'.
      it_item-city = 'Thane'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'QA'.
      it_item-emp  = 'Srinu'.
      it_item-city = 'Thane'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'QA'.
      it_item-emp  = 'Sanjay'.
      it_item-city = 'Delhi'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'QA'.
      it_item-emp  = 'Nilkesh'.
      it_item-city = 'Hyderabad'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'QA'.
      it_item-emp  = 'Boxer'.
      it_item-city = 'KAKINADA'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'TES'.
      it_item-emp  = 'Federer'.
      it_item-city = 'Swiss'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'TES'.
      it_item-emp  = 'Sachin'.
      it_item-city = 'India'.
      APPEND it_item.
      CLEAR it_item.
      it_item-code = 'TES'.
      it_item-emp  = 'Dravid'.
      it_item-city = 'India'.
      APPEND it_item.
      CLEAR it_item.
      LOOP AT it_item.
        AT NEW code.
          wa_item-code  = it_item-code.
          wa_item-emp   = 'EMPLOYEE NAME'.
          wa_item-city  = 'CITY'.
          wa_item-cbox  = 'X'.
          wa_item-color = color[].
          APPEND wa_item TO it_item1.
          CLEAR wa_item.
        ENDAT.
        wa_item-code = it_item-code.
        wa_item-emp  = it_item-emp.
        wa_item-city = it_item-city.
        APPEND wa_item TO it_item1.
        CLEAR wa_item.
        aux_cnt = aux_cnt + 1.
        AT END OF code.
          wa_item-code  = it_item-code.
          wa_item-emp   = 'No Of Employees'.
          wa_item-city  = aux_cnt.
          wa_item-color = color1[].
          APPEND wa_item TO it_item1.
          CLEAR wa_item.
          CLEAR aux_cnt.
        ENDAT.
      ENDLOOP.

  • Help in finding the total count for each month

    Hello everyone,
    Sometime back I had posted about the date function. I have that problem solved now my problem is that after finding all records which against each record I need to find the total count for that month if no records than I have to set it to a 0.
    Here is how my program has been written.
    PROCEDURE extract_materials
    IS
    CURSOR xyz
    BEGIN
    FOR xyz1 IN xyz LOOP
    -- once inside the loop for each of the record from
    the cursor I need to find a total count for that record for everymonth in the year.
    All these records will be instered in to a staging table
    Can you please help me out with this. I really appreciate this.
    Thanks in advance.
    -Vani

    Andrew - you missed the tricky bit of the spec - include missing months with a zero.
    You need to do an outer join to a select from any big table with a function involving rownum and add_months to generate all the possible months. However, its time to go home and I can't be bothered to work out the finer details.

  • How to get a count of unique records

    How do you get a count of unique records? Looking only for one number, not a list..so if the data is:
    ID
    ===
    1234
    1234
    1234
    1236
    1236
    1237
    Then, the count total will be one field called 'ID' with the value '3' in it..
    All I know how to do is get a count that will count all records, or do it in two queries. Looking to do this in one query statment..
    Thanks..

    Just a small clarification...
    Concatenation could potentially give wrong result, depending on the data.
    For example...
    sudhakar@ORCL>ed
    Wrote file afiedt.buf
      1  with t1 as
      2  (select 'AA' c1, '101' c2 from dual union
      3  select 'AA1' c1, '01' c2 from dual union
      4  select 'AA101' c1, null c2 from dual union
      5  select 'BB2' c1, '345' c2 from dual union
      6  select 'AA101' c1, null c2 from dual union
      7  select 'BB2' c1, '345' c2 from dual union
      8  select 'BB234' c1, '5' c2 from dual
      9  )
    10* select count(distinct c1 || c2) from t1
    sudhakar@ORCL>/
                        2IMHO, the required answer will be...
    sudhakar@ORCL>ed
    Wrote file afiedt.buf
      1  with t1 as
      2  (select 'AA' c1, '101' c2 from dual union
      3  select 'AA1' c1, '01' c2 from dual union
      4  select 'AA101' c1, null c2 from dual union
      5  select 'BB2' c1, '345' c2 from dual union
      6  select 'AA101' c1, null c2 from dual union
      7  select 'BB2' c1, '345' c2 from dual union
      8  select 'BB234' c1, '5' c2 from dual
      9  )
    10* select count(distinct c1 ||'.'|| c2) from t1
    sudhakar@ORCL>/
                             5
    sudhakar@ORCL>vr,
    Sudhakar B.

  • There was an error while updating row count for "SH".."SH".CHANNELS

    Hi All,
    Am new to OBIEE.Pls help in this regard.
    Am building the physical layer as per Repository guide.When am importing the data in to this,am getting the below error.
    *"There was an error while updating row count for "SH".."SH".CHANNELS" :"*
    channles is the table name and having 5 rows.
    but am able to see the data in the sql prompt. like SELECT * FROM SH.CHANNELS then 5 rows data would be displaying..
    pls help in this regard and where is the excat problem?
    Thanks,

    what is the error?
    Make sure that your connection pool settings are okay..
    Make sure that, you are using correct driver in case of if you are using ODBC dsn..
    Also make sure that, your oracle server is running... TNS and Oracle server services

Maybe you are looking for