First Time Passes

I have a query that returns a list of top performers based on
the number of modules they have accessed and passed. It shows how
many modules passed even if they have taken more than 1 attempt to
pass. I want the report to be able to show the number of first time
passes only. The code I am using is as follows:
SELECT distinct pps_principals.name AS principals_name,
COUNT(*) AS coursecount
FROM (PPS_SCOS JOIN PPS_TRANSCRIPTS ON PPS_SCOS.SCO_ID =
PPS_TRANSCRIPTS.SCO_ID)
JOIN PPS_PRINCIPALS ON PPS_TRANSCRIPTS.PRINCIPAL_ID =
PPS_PRINCIPALS.PRINCIPAL_ID AND PPS_TRANSCRIPTS.STATUS like '[P]'
AND PPS_TRANSCRIPTS.TICKET not like 'l-%'
and pps_scos.name like 'MT%'
GROUP BY pps_principals.name
ORDER BY coursecount desc
Any ideas gratefully received.

See this previous discussion:
https://discussions.apple.com/thread/4291335?tstart=30

Similar Messages

  • I installed Apple TV yesterday and then purchased and watched a film for the first time. Today Apple TV does not accept my pass word. I' m confused can any one help me?

    I installed Apple TV yesterday and then purchased and watched a film for the first time. Today Apple TV does not accept my pass word. I' m confused can any one help me?

    there are up to 3 different password
    there is the appleID password
    there is the wifi encryption password
    there is te shared itunes lib password

  • Using Mavericks for the first time, day two- heeeelp!

    OK, long story short:  old MacBook Pro with Snow Leopard went to Apple Heaven and new MacBook Pro with Mavericks (also is a 15" 2.3GHz i7 512GB flash drive machine with 16GB RAM) got a "data transplant" via Migration Assistant or whatever it is called.
    The new MacBook Pro essentially took all the data and all my settings/preferences as well as my crucial software which is disk-loaded (I bought an external drive, arrived today), rejecting only what was incompatible (unfortunately my Oldie But Goodie Photoshop).
    So far, so good.
    Now-  learning curve aside- there is weird behaviour going on:
    1.  The (Chrome) browser screens disappear if internet connection is lost but this is not shown in the wifi so I am never sure if it is loss of Broadband or loss of wifi.  I personally blame BT for this because, after 22 weeks of rubbish service, I know that the connection is less than ideal.  Is this normal behaviour?  Then-
    2.  there was a weird buzz like alarm noise, quite loud from near the palm rest on the left which nearly gave me a heart attack (I am now exceedingly stressed over the matter of breakdown, repair, and another breakdown of my main machine which I had to pay for and then anyway replace).  Should I be worried?
    3.  Final Cut Pro's Compressor is failing on export (I have posted on that forum, after trying the cleaning up of settings and trashing preferences).  Does anyone know how best to uninstall software on Mavericks without completely making a guddle of it?  So that I can reinstall, from the disks and see if I can cure the problem, or is that not even recommended/necessary?
    4.  Clicking a link in Mail will open TWO browser instances since I agreed to the incessant prompts to update software (yes, it restarted).  I hope that this is a passing phase because it is like it is launching as many windows as clicks for an apparently unresponsive link...?  Does that make sense?  And-
    5.  My user folder has a "1" after it, probably because it is a duplicate of the one from the old Mac?  Can I get rid of that "1" or am I stuck with it?  I wish I had been able to just bring in the applications, my Mail, my iPhoto and some utilities I value.  But the option to migrate is very all (with just three or four option) or nothing.
    Finally-  signing into the forum after viewing as a guest doesn't work first time.  I end up having to press "sign in" a few times to see my name pop up.  And even then I still cannot go into some threads without me being "signed out" again.
    Folks-  thank you for reading.  I love Snow Leopard, never thought that I would end up with having to use Mavericks with ZERO time to adapt (as is Sod's Law-  I have a client with a deadline who has already been waiting three weeks due to the demise of my main Mac) and ANY help coping is immensely appreciated.

    1.  I assume that that suggests that it is not normal for a browser window to respond with minimisation?  It is just weird when a window just disappears, no reason given (and since there is no obvious loss of internet it can take you by chance)
    2.  Good that you ask.  No, it hasn't.  I meant to say when I first posted.
    3.  Thanks, I gather that.  It is just that Mavericks is so different from what I am used to.  Sigh...
    4.  It has calmed down but there is absolutely no rhyme or reason to it.  Forgot to mention that I had my first ever crash of Final Cut Pro since I have been using it nearly daily for four years.  I even had Chrome crash on me in mid-upload (drat, drat, drat!).  I don't click or plough on- I stop, think and consider. Hence me posting.  Mavericks is just not as "smooth" as Snow Leopard to me.
    5.  Yes, I understand.  I just wish it would show me both instead of just the one with the "1". 
    Tell me about it!  It is impossible, I came here to answer via the link in the emailed notification, was already signed out and signed in and was returned to the front page.  Had to go back to my Mail, click the link again and this time, luckily, I was signed in.  In other words- the session is impossibly short and signing in doesn't return you to the browser window you were but rather returns you to the front.  Meh.

  • Web graphic is not displayed the first time

    Hi all
    I have a strange issue with some users.  The first time that they run the qry in the web, the chart is not diplayed, only is displayed a big "X" and the error msg is the msg below; but when they refresh, the chart is displayed ok.
    How can I solve it?
    Web application processing terminated
    Diagnosis
    The system had to terminate processing of the Web application.
    The reason could be that the system was no longer able to find the Web application server session.
    System Response
    Processing the navigation step is not possible.
    Procedure
    Call up the Web Application again.
    Note: Use the start URL and not the URL that is currently displayed in the Web Browser.
    Procedure for System Administration
    Notification Number BRAIN 278
    Thanks in advance!

    From HTML pass to jsp with post, then from jsp pass the same data to another jsp with parameter attached to the file URL, so method is "get":
    top.location="../filename.jsp?path="+path;

  • Applications launch slowly the first time, but...

    Okay, not sure why this happens and I've been wondering about this for a LONG LONG time, but why is it that applications seem to take forever to launch the first time you launch them after booting up? If you quit the app and at some point relaunch it, then it almost opens instantly. However, if you shut down or restart the computer at some point and then launch the app again, it takes ages to launch again, but only the first time. This behaviour happens with both Apple and third party software.
    I have checked all the usual suspects: hard drive space (only 52% used), hard drive hardware (passes diagnostic scanning), RAM (I have 8GB), desktop (it's not cluttered and contains no folders), disk permissions (verified and repaired), software (always updated with latest versions), widgets (don't have many installed), wallpapers (never use animated wallpapers), login items (hardly any), PRAM & SMC (I've reset these). So, basically, I think I've done everything except reformat the drive and reinstall OS X.
    My system specs are as follows:
      Model Name: MacBook Pro
      Model Identifier: MacBookPro5,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.53 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 6 MB
      Memory: 8 GB
      Bus Speed: 1.07 GHz
      Boot ROM Version: MBP51.007E.B06
      SMC Version (system): 1.33f8
      Macintosh HD  Capacity: 999.86 GB (999,860,912,128 bytes)
      Macintosh HD  Available: 472.71 GB (472,705,077,248 bytes)
    So, as far as I can tell, I've got no explanation for this behaviour. It's very frustrating/annoying - but not enough for me to want to do a whole format/reinstall.
    Any suggestions anyone? If not for a solution, what about an explanation as to what's happening?
    Thanks!
    Joe.

    To understand the why of this relative slowliness, you must understand that no application is really self-contained, or standalone, whatever the OS. All applications rely on so-called native code to function. Basically, some libraries (graphics, mainly, but not only) that are already installed on your machine, as part of the system, or installed by some third-party software.
    On a cold boot, all this needed code has to be launched and installed in memory (physical and/or virtual) before the application core can be launched too. In your case, maybe some preference files are corrupted somewhat, or permissions need repair. You can try the following experiment: create a new standard account, give it admin rights, log in this new account and check how long it takes for your usual applications to launch. If they're quicker, then there's a problem with your main account; if it takes them the same amount of time to launch than in your other account, then you might consider adding some RAM on your machine, or free some space on your hard drive.
    Or both. Preferably both...

  • Download .jnlp file when first time

    Hi Everybody,
    I am new bee for java web start.
    We are having swing application which we want to distribute through Java Web Start. Client can run application through provided web link. we also want to download .jnlp file to the client machine when user clicked the link first time.
    I go through different thread for the above problem in this forum, but though not getting clear idea as in our application, we need to generate dynamic .jnlp file. All solution posted for the above problem assuming that .jnlp file exists at some location, but in our case we have to generate it when user clicked it first time. Any body having some idea ?
    Our second problem is, can it possible that user will run the swing application only when he click the link provided on the web server ? In our case authentication of user is done in our web application and when user will click the provided link user id and other information will be pass to swing application as parameters through .jnlp file. If that application will available offline user can run it through last downloaded .jnlp file without clicking the link , which will be not allowded. Also we are concern about multi user environment, as we are thinking to dynamic generation of .jnlp file , it may possible that other user running the same application noted .jnlp file version difference and will download the .jnlp file of other user ?
    Can any body have any idea, how can we done the above scenario ?
    Thanks in advance,
    Dimpal

    If you upgrade to Java 1.4.2 it will present a dialog asking for desktop
    integration the first time you start the application.
    Maybe that's what you want?

  • ISE 1.2 Authentication Failures at First time Connection

    Hi,
     I have a trouble with ISE 1.2 when trying to authenticate for first time an end-device, this device might be either a Workstation or IP Phone or Printer,etc. it fails or staying in running mode. The result is the same it can not access the network.  hopefully I'm still in open mode :)
    As i described in the beginning everything has status Running or Authz Failed. and after a time of period usually one day finally succeeds.
    This happens mostly for workstations and printers, but in case of phones does not have the same behavior. I unplug plug the phones or I shut/ no shut the ports in order to trigger it to succeed. For some phones worked but other obstinately declined.
    The phones which are not Cisco phones authenticated with MD5 (a simple username and pass  ) i think the problem should not related with the auth protocol.
    Below are some logs from one phone. For me coming to a short conclusion this must be related with the switches which are 3750e (15.02 SE 4 IOS)
    or with the same the ISE, why because i have almost the same behavior for all end-devices.
    I kindly remain your comments...
    2169669: Apr 16 18:02:20.573 EEST: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/35, changed state to up
    2169670: Apr 16 18:02:20.783 EEST: %DOT1X-5-FAIL: Authentication failed for client (0080.9f7d.3ddf) on Interface Gi1/0/34 AuditSessionID 0A114D0D0000D5E8855C01DE
    2169671: Apr 16 18:02:20.791 EEST: %AUTHMGR-7-RESULT: Authentication result 'timeout' from 'dot1x' for client (0080.9f7d.3ddf) on Interface Gi1/0/34 AuditSessionID 0A114D0D0000D5E8855C01DE
    S301#
    2169672: Apr 16 18:02:20.992 EEST: %AUTHMGR-5-START: Starting 'dot1x' for client (0080.9f7d.3ddf) on Interface Gi1/0/34 AuditSessionID 0A114D0D0000D5F0855DE0EF
    2169673: Apr 16 18:02:21.580 EEST: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/35, changed state to up
    S301#
    2169674: Apr 16 18:02:24.289 EEST: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/35, changed state to down
    S301#
    2169675: Apr 16 18:02:25.288 EEST: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/35, changed state to down
    2169676: Apr 16 18:02:26.269 EEST: %AUTHMGR-5-START: Starting 'dot1x' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169677: Apr 16 18:02:26.294 EEST: %DOT1X-5-FAIL: Authentication failed for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169678: Apr 16 18:02:26.294 EEST: %AUTHMGR-7-RESULT: Authentication result 'fail' from 'dot1x' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169679: Apr 16 18:02:26.303 EEST: %DOT1X-5-FAIL: Authentication failed for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169680: Apr 16 18:02:26.303 EEST: %AUTHMGR-7-RESULT: Authentication result 'fail' from 'dot1x' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169681: Apr 16 18:02:26.319 EEST: %DOT1X-5-FAIL: Authentication failed for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169682: Apr 16 18:02:26.319 EEST: %AUTHMGR-7-RESULT: Authentication result 'fail' from 'dot1x' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169683: Apr 16 18:02:26.319 EEST: %AUTHMGR-7-FAILOVER: Failing over from 'dot1x' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169684: Apr 16 18:02:26.319 EEST: %AUTHMGR-5-START: Starting 'mab' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169685: Apr 16 18:02:26.328 EEST: %MAB-5-FAIL: Authentication failed for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169686: Apr 16 18:02:26.328 EEST: %AUTHMGR-7-RESULT: Authentication result 'no-response' from 'mab' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169687: Apr 16 18:02:26.328 EEST: %AUTHMGR-7-FAILOVER: Failing over from 'mab' for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    2169688: Apr 16 18:02:26.328 EEST: %AUTHMGR-7-NOMOREMETHODS: Exhausted all authentication methods for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    S301#
    2169689: Apr 16 18:02:26.336 EEST: %AUTHMGR-5-FAIL: Authorization failed or unapplied for client (0080.9f7d.3e6f) on Interface Gi1/0/35 AuditSessionID 0A114D0D0000D5F1855DF3BE
    S301#
    2169690: Apr 16 18:02:27.737 EEST: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/35, changed state to up
    2169691: Apr 16 18:02:28.744 EEST: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/35, changed state to up
    Regards
    T.C

    I'm not using authentication method with certificates for none end-devices
    Workstations with the windows default authentication protocol EAP/MSCHAPv2
    In front of them there are non Cisco IP-phones with auth. method EAP/MD5
    Finally I also have some printers again with option EAP/MD5
    For all of these devices I received the same behavior, after many hours finally the authenticated with ISE. But is this the expected behavior?
    What I understand is that if the devices finally authenticated then it means that there isn’t anything wrong with the method.
    The misunderstanding points are 3
    Why there is so much delay for all devices to authenticate?
    Why some devices, mostly IP phones (not all) continuing to fail to the authentication method. All my devices are identical with the same software / patch, same model etc.
    I have noticed randomly some devices one moment to succeed and the next moment to failed
    So for my understanding there is an abnormal behavior and i cannot find the way /pattern to correct it or to understand the reason :)
    Port config
    switchport access vlan xxx
     switchport mode access
     switchport voice vlan yyy
     ip access-group ACL-ALLOW in
     authentication event fail action next-method
     authentication event server dead action reinitialize vlan xxx
     authentication event server dead action authorize voice
     authentication event server alive action reinitialize
     authentication host-mode multi-domain
     authentication open
     authentication order dot1x mab
     authentication priority dot1x mab
     authentication port-control auto
     authentication periodic
     authentication timer reauthenticate server
     authentication violation restrict
     mab
     dot1x pae authenticator
     no cdp enable
     spanning-tree portfast
    result template
    Switch#sh auth sess int g1/0/46
                Interface:  GigabitEthernet1/0/46
              MAC Address:  xxxx.xxxx.xxxx
               IP Address:  xx.xxx.xx.xxx
                User-Name:  xxxxxxxxxxxx
                   Status:  Authz Failed
                   Domain:  DATA
          Security Policy:  Should Secure
          Security Status:  Unsecure
           Oper host mode:  multi-domain
         Oper control dir:  both
          Session timeout:  N/A
             Idle timeout:  N/A
        Common Session ID:  0A114D0A00001972016208E1
          Acct Session ID:  0x00001BB7
                   Handle:  0x6D0009B6
    Runnable methods list:
           Method   State
           dot1x    Failed over
           mab      Failed over

  • BBP_PD_PO_GETDETAIL returns empty item[], condition[] first time

    Hi Expert,
    I have implimented BADI BBP_DRIVER_DETERMINE and assign custom FM zB46B_DPO_TRANSFER to create PO in backend system.
    When I create PO and order it first time... FM zB46B_DPO_TRANSFER is getting called where I want to read PO item condition using FM BBP_PD_PO_GETDETAIL and pass to fm which creates PO in backend.
    FM BBP_PD_PO_GETDETAIL is returning blank table PRIDOC[] (pricing data).
    I pass guid of the PO to the FM to get the details.
    for the saved PO it return every details perfectly.
    Do I need to read from buffer or what... how ???
    Thanks,
    Rajesh.

    hi ,
      Try to read from buffer.
      The below code will work in change Badi so definitely it will work in your badi also.
         DATA: lo_pd_model TYPE REF TO /sapsrm/if_pdo_model_access.
          lo_pd_model = /sapsrm/cl_pdo_model_factory=>get_instance( ).
      lo_pd_model->get_detail(
        EXPORTING
          iv_guid          = is_header-guid
          iv_with_itemdata = abap_TRUE
        IMPORTING
          es_header        = li_header
          ET_PRIDOC        = LT_PRIDOC ).
    if the above method is not working then get the buffer instance for /SAPSRM/CL_PDO_BO_PO_ADV.
    data   lo_pdo_po              TYPE REF TO /sapsrm/if_pdo_bo_po_adv.
      CALL METHOD /sapsrm/cl_pdo_factory_po_adv=>get_buffered_instance
        EXPORTING
          iv_header_guid = ls_header-guid
        RECEIVING
          ro_instance    = lo_pdo_po.
      check the implementation class  /SAPSRM/CL_PDO_BO_PO_ADV which method is suitable to get the condition records.
       the below code is sample method how to call ....
    TRY.
          CALL METHOD lo_pdo_po->/sapsrm/if_pdo_do_schedules~get_schedule_line
            EXPORTING
              iv_item_guid         = ls_item-guid
            IMPORTING
              et_sdln              = lt_sdln
              eo_meta_data_handler = lo_meta_data_handler
            CHANGING
              co_message_handler   = lo_message_handler.
        CATCH /sapsrm/cx_pdo_abort .
        CATCH /sapsrm/cx_pdo_no_authorizatio .
      ENDTRY.
    regards,
    Devi

  • ExecuteQuery WhereClause problem for first time in the session of the page

    I am new to OAF and I have panic problem.
    I have two pages application like following..
    First page “LookupTypes” and second page “LookupValues” for the selected first page Lookuptype.
    The problem is when I press first time(after lunching the page/first time for the session) the button in “LookupType” page I am getting all the “Lookup Values” for all the lookup types instead of getting only for one Lookuptype and I will press “back” button in “Lookup Values” Second page to come back “LookupType” first page, Again immediately I will press the same button which I pressed first time, this time I will get correct number of records for one Lookup Type. I don’t know why its where clause is not working first time.
    Please find the following code and help me.
    First page is LookupTypes->second page is Lookup Values
    Step 1 : I have button on “Lookup Types” page to call “Lookup values” page
    Step 2 : “Lookup Values” page control to receive the parameters from lookup type page.
    Step 3 : application module (AM) to execute the query..
    Code :
    Step 1 : I have button on “Lookup Types” page to call “Lookup values” page
    Following is the code from “Lookup Types” control.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String paramLookupTypeAction = pageContext.getParameter(EVENT_PARAM) ;
    String paramLookupType = pageContext.getParameter("paramLookupType");
    OAApplicationModule PafLookupAM = pageContext.getApplicationModule(webBean);
    //Adding calling LookUp Values screen
    if (paramLookupTypeAction.equals("viewLookupValues") )
    // PafLookupAM.invokeMethod("clearLookupValueMethod");
    //Here we prepare the HashMap object, that cotains name of the parameter and the value of the parameters
    HashMap phm = new HashMap() ;
    phm.put("xxparamLookupType",paramLookupType);
    phm.put("xxparamLookupTypeAction",paramLookupTypeAction);
    pageContext.setForwardURL(
    "OA.jsp?page=/oracle/apps/xxpaf/pafLookups/webui/pafLookupValuesPG"
    , null //not needed as we are retaining menu context
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null //not needed as we are retaining menu context
    ,phm //pass the hashMap that contains values for all of the parameters
    ,true //retain AM
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Step 2 : Following is the code from “Lookup Values” page control to receive the parameters from lookup type page.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String paramLookupTypeAction=pageContext.getParameter("xxparamLookupTypeAction");
    String paramLookupType=pageContext.getParameter("xxparamLookupType");
    OAApplicationModule PafLookupAM = pageContext.getApplicationModule(webBean);
    Serializable LookupTypeParamList[]= {paramLookupTypeAction,paramLookupType};
    System.out.println("viewLookupValues 3 " + paramLookupType);
    System.out.println("viewLookupValues 4 " + paramLookupTypeAction);
    if ( paramLookupTypeAction!=null && paramLookupTypeAction.equals("viewLookupValues"))
    System.out.println("viewLookupValues 5 " + paramLookupType);
    System.out.println("viewLookupValues 6 " + paramLookupTypeAction);
    PafLookupAM.invokeMethod("viewLookupValuesMethod", LookupTypeParamList);
              // Assuming the controller is associated with the pageLayout region
    // import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
         //     OAPageLayoutBean page = (OAPageLayoutBean)webBean;
         //     page.setTitle("Lookup Type: " + paramLookupType);
    Step 3 : Following is the code from application module (AM) to execute the query..
    public void viewLookupValuesMethod( String pAction, String pLookupType)
    try
    OAViewObjectImpl pervo = getPafLookupValuesEOVO();
    String existingWhereClause = pervo.getWhereClause();
    pervo.setWhereClauseParams(null);
    pervo.setWhereClause("Lookup_Type = :1");
    pervo.setWhereClauseParam(0, new String (pLookupType));
    pervo.executeQuery();
    pervo.setWhereClauseParams(null);
    pervo.setWhereClause(existingWhereClause);
    catch(Exception exception1)
    throw OAException.wrapperException(exception1);
    Best Regards,
    Pathi TVB

    Pathi,
    Please try to have the WhereClause in the VO query as part of static definition itself. So you would only need to bind the parameter and execute the Query.
    Try and let me know if that helped.
    Thanks
    Sumit

  • VO got executed but is not showing the rows on the page the first time

    Hi, Below are my senario:
    I have one jspx which contain a panel tab and 2 tabs inside it: tab A and tab B, under each tab is its own taskflow, jsff page, and its own AM and datacontrol also.
    tab A have a table
    tab b have a table with search panel. The view criteria that used to generate the search panel is not check "Run Automatically"
    What I am trying to do is in tab A, user can select some rows and click one button, then below action happen:
    1. the id of the selected rows will be pass to a AM method of tab B as string that separated by comma, and this AM method will execute the VO that the table of Tab B is based on
    2. set tab b disclosure to be true to show tab B
    3. The row that selected in Tab a will be shown in the table of tab b
    Below are the code in the AM of tab b, it is exposed to client and it will be invoked by the button actionlistener of Tab A from the bean:
    public void applyDashbaordViewCriteria(String listOfPS) {
    if (listOfPS != null) {
    PullSequenceSetupVOImpl psvo = this.getPullSequenceSetupVO2();
    ViewCriteria vc = psvo.createViewCriteria();
    vc.setName("PSDashboardVC");
    ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
    ViewCriteriaItem vcItem =
    vcRow.ensureCriteriaItem(PullSequenceSetupVORowImpl.PULLSEQUENCEID);
    vcItem.setOperator(JboCompOper.OPER_IN);
    vcItem.getValues().get(0).setValue(listOfPS);
    vc.add(vcRow);
    psvo.applyViewCriteria(vc);
    psvo.executeQuery();
    However my issue here is:
    Whenever the first time entering the page, which will show tab A, I select some rows in the table and click the button, AM got executed correctly and before it leave above code, VO executed and row count is correctly match with what user selected in Tab A. However, the rows in the vo is not showing in tab B. Table in tab B show no rows.
    Workaround for the issue:
    If first time entering the page, I go to tab B first, without doing anything then come back to tab A, select some rows and click the button again, then this time, the row I selected start showing in the table of Tab B.
    So my question is, how can I solved this issue to make the selected rows show in tab B without going to tab B to load the page first? Is that something to do with datacontrol scope?
    I am using Jdev 11.1.1.3.0
    Thanks.

    Hi, now I think i know what is the root cause:
    I overide executeQueryForCollection and executeQuery method in the VOImpl that table of Tab B is based on. And I notice the following:
    Even when select row in tab A and click the button to call AM method to apply the view criteria and execute the query to return some row, when tab b loading the first time, I notice executeQueryForCollection is being fired again and invoked by executeEmptyRowSet.
    It looks to me that even thought before the page load, VO already executed and have some row, somehow when ADF load the page, it will empty all the rows in the VO. And also since I have a query panel which I uncheck the Query Automatically. So even my applied view criteria still there, but VO will not get re executed again and show the result.
    I think that is why this issue is happening. And also, that is why if I navigate to tab B first and come back to Tab A, now perform the same action, the selected rows start showing on the page.
    Anybody can help me how can I resolved this issue? And also, I don't want to check the "Query Automatically" of the view criteria that I used to genreate the search panel because it may impact the performance.
    Edited by: user10867484 on Apr 21, 2011 2:48 PM

  • Simulating animation by iterating - JLabel icon. ONLY  Working first time!

    I am "simualting" animation by changing the icon attribute of a JLabel. If I call the method from main, this works. It also seems to work (ie. the JLabel image changes on the screen as the icon attribute is changed in the program.) if I call it first from another or its own class one time, but not after that. What happens on subsequent calls is: The thread.sleep() is working (time passes), and the icon attribute of the JLabel is chaging (lblCaveActive.getIcon() for the JLabel returns the correct changed *.gif, but the images do not show up on the screen, until the last image, whatever I set it to be. I am pulling my air out over this little problem, which is the last lingering problem I am having with this project....I was wondering if you have seen this or have any ideas? I have tried lots of different things, including repainting and such. If you have a clue concerning this, please please please advise, o wise one.
    * simulates animation: ex. Wumpus approaching to eat the
    * player, bat appraoching to transport player
    * @param: int numPics - number of pictures to loop through
    * @param: String picNamePreface - filenames must be "*0.gif" through
    * picNamePreface + numPics + ".gif".
    * Send the "*" portion into this arg
    * @param: int milliSecSleep - seconds for the thread to sleep between
    * pictures
    private void animateMeetHazard(int numPics, String picNamePreface,
    int milliSecSleep)
    try
    for (int i = 0; i <= numPics; i++)
    caveCurrentIcon = new ImageIcon(picNamePreface + i + ".gif");
    lblCaveActive.setIcon(caveCurrentIcon);
    Thread.sleep(milliSecSleep);
    catch (InterruptedException e){}
    --A very tired girl.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Something like
    private void animateMeetHazard(int numPics, String picNamePreface,
    int milliSecSleep)
    try
    SwingWorker workHard = new SwingWorker()
    public Object construct()
    for (int i = 0; i <= numPics; i++)
    caveCurrentIcon = new ImageIcon(picNamePreface + i + ".gif");
    lblCaveActive.setIcon(caveCurrentIcon);
    Thread.sleep(milliSecSleep);
    return null;
    public void finished()
    workHard.start();
    catch (InterruptedException e){}
    Not really sure if the Thread.sleep() will throw you out and give you the same problems .. but it mightn't ;)

  • Commandlink in paneltab fail's to navigate for the first time

    Problem Description:
    We have a panelTab which will be rendered based on the parameter passed from the called page. The corresponding showdetailitem will be disclosed based on the parameter value. We have a commandlink that is added to the showdetailitem which is not navigating to the corresponding page for the first time. When we click any other tab and comes back to the current showdetailitem then the commandlink works well
    version:
    Jdev 11.1.1.4
    Sample code:
    <af:panelTabbed id="pt2" binding="#{Bean.tab}">
                    <af:showDetailItem text="tab 1" id="sdi1" dontPersist="ALL" disclosed="#{param.dt ne 'true'}">
                                       <af:region value="#{bindings.taskflow1.regionModel}" id="r1"/>
                                       </af:showDetailItem>
                    <af:showDetailItem text="Tab 2" id="sdi2" dontPersist="ALL">
                    <af:region value="#{bindings.taskflow1.regionModel}" id="r2"/>
                    </af:showDetailItem>
                    <af:showDetailItem text="tab 3" id="sdi3"  dontPersist="ALL" disclosed="#{param.dt eq 'true'}">
                      <af:region value="#{bindings.taskflow1.regionModel}" id="r3" />
                    </af:showDetailItem>
                  </af:panelTabbed>
    artifacts:
    index.jspx - above code is in this file
    taskflow.xml - this will contain navigation from page1 to page2
    Page 1 - having a commandlink and an outputText saying page 1
    Page 2 - having an outputText saying page 2
    Briefing:
    when the page loads, the parameter that is passed to the tab is set to true so that the 3rd tab is disclosed. This is working as expected.
    But when we click the commandlink the navigation is not happening..
    If user clicks on any other tab and goes back to 3rd tab, it displays page2. and from now onwards it works fine.
    Any solution/workaround for this..

    issue resolved..
    Solution:
    setting the param value to the pageflowScope and using it resolved the isssue.
    The reason is, the parameter that you are trying to pass in the URL exists only when you click the "goLink1" link (present in the template)..Once the page shows up, the parmeter will not be there and so when you click the link in the third tab, the framework will try to re-evaluate the tabs disclosure property and will find that the condition is not true and so will not do anything inside the tab...Got the above info from one friend..

  • InDesign problem With Https cURL Seems Very Slow at first time  to handshaking to server

    I am trying to connect the server using cURL from Indesign, but when i am trying to call to server the indesign takes so much time to open and initialize the socket it takes 25 seconds at first time only, but On all subsequent calls it is fast,
    *but when i am tryid that same programe with an c++ empty project it is very fast in 2 second we get a result back,
    *So the Problem With Indesign Socket initialization using https at first time because i have tryid same Curl On Simple c++ program and it is fast at all calls
    Specification:
    I am Currently using
         Indesign cs7 version 9.0
         visual studio 2010
    Can Anyone tell me why It happens,
    my code snippet is as follows please try to find if anyone knows better.
             curl_global_init(CURL_GLOBAL_ALL);
              curl = curl_easy_init();
             struct data config;
          config.trace_ascii = 1; /* enable ascii tracing */
          struct curl_slist *chunk = NULL;
             curl_slist_append( chunk, "Content-Type: application/json");
          curl = curl_easy_init();
          struct AppMemoryStruct chunk1;
             chunk1.memory = (char *)malloc(1);  /* will be grown as needed by the realloc above */
             chunk1.size = 0;    /* no data at this point */
           if(curl) {
                 curl_easy_setopt(curl, CURLOPT_URL, url.GetPlatformString().c_str());
                 curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM");
                 curl_easy_setopt(curl, CURLOPT_SSLCERT, "C:\\test\\omg.aps.net.pem");
                 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
              curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2);
                 curl_easy_setopt(curl,CURLOPT_KEYPASSWD,"");
                 char error[1024];
                 curl_easy_setopt ( curl, CURLOPT_ERRORBUFFER, error );
           /* send all data to this function  */
                 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &AppWriteMemoryCallback);
          /* we pass our 'chunk' struct to the callback function */
                 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk1);
          /* some servers don't like requests that are made without a user-agent
              field, so we provide one */
                 //curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
                 //curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
                 //curl_easy_setopt(curl, CURLOPT_HTTPGET,1);
         //heres the performance get down its around 25 seconds when i am calling The server Using Curl Object Having
         //https url 
                res = curl_easy_perform(curl);
        // till here
                 if(CURLE_OK != res)
                     errorCode = kFalse;
                     if(chunk1.memory)
                         free(chunk1.memory);
                      curl_easy_cleanup(curl);
                   return errorCode;
                 errorCode = kTrue;
                 if(chunk1.memory)
                     returndata.SetCString(chunk1.memory);
                     free(chunk1.memory);
               /* always cleanup */
             curl_easy_cleanup(curl);curl_global_init(CURL_GLOBAL_ALL);
          please try to find a key issue why the performance is very bad using https.
    Thanks,

    I was tempted to move this over to the InDesign SDK forum where there are coders, but there isn't a lot of traffic over there, so I'm going to leave this open here with the advice that you probably won't get an answer from anyone here becasue we are, for the most part, not folks who work with code beyond scripting (and very few scripters hang out here, either).
    You should cross-post over there yourself and hope someone who understnds the qusetion sees it in one place or the other.

  • App freezes when JComboBox.addItem is called for the first time

    I have a Swing app that intermittenly freezes when the users go
    to a certain screen. I've tracked it down to a specific line. There is
    a JComboBox on the screen. The application freezes when the
    app tries to load the first item into the JComboBox using
    myComboBx.addItem(Object o). I pass in an Integer.
    The strange thing is that this only happens once a day, or
    sometimes less, in a group of 4 users. But when it does
    freeze, it always freezes on that line. After freezing, the user
    can go back into the app, and go to the same screen(no
    data has changed), and they can get in without it freezing.
    So it seems to have nothing to do with the data - it's purely
    intermittent.
    The only thing I can think of is that the underlying native peer
    for the JPanel that the JComboBox is on, has not been created
    yet, and I'm trying to load an item into a combo box that doesn't
    really exist yet. Anyone know if this is possible? It may only
    happen when the user's machine is running very slow.
    I've included the relevant code below. Any feedback would
    be greatly appreciated.
    Most of the action happens in the class ICS_COMP_PANEL.
    First, in a different class, an object of type ICS_COMP_PANEL
    is created, and then the method startCompensationScreen is
    called on that object. From then on, methods of
    ICS_COMP_PANEL are called. The app freezes on the
    COMP_NAME.addItem(retObj) call in the method
    addCompensationRecordsToScreen.
    In another class:
    screenComp = new ICS_COMP_PANEL(this);
    screenComp.startCompensationScreen();
    public class ICS_COMP_PANEL extends javax.swing.JPanel
    implements java.awt.event.ActionListener
         , java.awt.event.ItemListener
    //this is the comboBox that's causing the problem
    javax.swing.JComboBox COMP_NAME = new javax.swing.JComboBox();
    public ICS_COMP_PANEL(ICS_FOLDER iFrame)
    COMP_NAME.setEditable(true);
    jpanel1.add(COMP_NAME);
    COMP_NAME.setBackground(new java.awt.Color(204,204,204));
    COMP_NAME.setFont(new Font("Dialog", Font.BOLD, 12));
    COMP_NAME.setBounds(357,7,156,15);
    public void startCompensationScreen()throws GException
    //The line below always gets a non-empty hashtable back
    //from getCompensationRecords().
    Hashtable compList = getCompensationRecords();
    COMP_NAME.removeItemListener(this);
    addCompensationRecordsToScreen(compList);
    COMP_NAME.setSelectedIndex(0);
    loadCompensationRecord((Integer)COMP_NAME.getSelectedItem());
    COMP_NAME.addItemListener(this);
    //the only thing to notice in this function is that it loads a hashtable
    //with Integers as the keys and as elements
    private Hashtable getCompensationRecords()
    Hashtable compList = new Hashtable();
    try{
    String SQLStatement = "select comp_tran_number from comp_tran_record where
    comp_ic_tran_number = " + FOLDER.caseNumber;
    gifts.database.ResultSetCopy rsc =
    gifts.global.standardData.ICSServer.resultSetCopier(SQLStatement);
    while ( rsc.next())
    Integer compNum = rsc.getInt(1);
    compList.put(compNum,compNum);
    catch ( Exception ex){
    GTool.errorMsg(this,ex);
    return compList;
    private void addCompensationRecordsToScreen(Hashtable compList)
    System.out.println("add compensaion:");
    Enumeration e = compList.elements();
    COMP_NAME.removeAllItems();
    while ( e.hasMoreElements())
    Object retObj = e.nextElement();
    if ( retObj instanceof Integer)
    //The next line is where the app freezes
    COMP_NAME.addItem(retObj);
    //This should not get called because the itemListener is removed
    //before the JComboBox is filled.
    public void itemStateChanged(ItemEvent e)
    // This method is derived from interface java.awt.event.ItemListener
    // to do: code goes here
    System.out.println("change Item");
    Object object = e.getSource();
    if (object == COMP_NAME)
    Object retObj = COMP_NAME.getSelectedItem();
    if ( retObj instanceof Integer && COMP_NAME.getSelectedItem() !=
    currentCompensationRecord)
    reloadCompensationRecord((Integer)retObj);
    Thanks,
    Greg Sheridan
    GIFTS Software Inc.
    New York, NY

    I am facing a similar problem with JComboBox. It is responding to the first time when items are added to the combo box. Later on, listener does not seem to listen if items are added to the combo box. Can anyone think of a solutiuon for this problem. (it works fine in 1.3 but does not respond in 1.4)

  • Report which contain subreports is not rendered first time is processed.

    when I try to render report contains subreports from first time is not rendered but when i select regresh button the input screen is promb again and then i fill all input again and submit, as a result the report was rendered.
    why this happen? is this a know issue?

    after more testing that issue i discovered that when i try to render report of type "Table" then the report is rendered fom rthe first time i pass/set the input values of the report, but when i use reports of type "chart" the report is not rendered from first time and it need a refresh and then manually entering the values for the input.
    i am using the folloing version of JRC:
    com.businessobjects.sdks_.jrc_.11.8.0_11.8.5.v1197
    my code is a s follow:
    =========================
    <%@ page contentType="text/html; charset=utf-8" %><%@ page import="com.crystaldecisions.reports.sdk.ReportClientDocument"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.reports.sdk.DatabaseController" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.PropertyBag" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.IStrings" %>
    <%@ page import="com.crystaldecisions.reports.sdk.ParameterFieldController" %>
    <%@ page import="com.crystaldecisions.reports.exportinterface.ExportFormatType" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="java.io.ByteArrayInputStream" %>
    <%@ page import="java.io.FileOutputStream" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.PrinterDuplex" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.PrintReportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.PaperSource" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.PaperSize" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
    <%@ page import="java.io.OutputStream" %>
    <%@ page import="org.t2k.bl.reports.ReportsViewerManager" %>
    <%@ taglib prefix="lms_reports" tagdir="/WEB-INF/tags/lms/reports" %>
    <%!
    Utility method that demonstrates how to write an input stream to the server's local file system.
        private void writeToBrowser(ByteArrayInputStream byteArrayInputStream, HttpServletResponse response, String mimetype, String exportFile, boolean attachment) throws Exception {
            //Create a byte[] the same size as the exported ByteArrayInputStream.
            byte[] buffer = new byte[byteArrayInputStream.available()];
            int bytesRead = 0;
            //Set response headers to indicate mime type and inline file.
            response.reset();
            if (attachment) {
                response.setHeader("Content-disposition", "attachment;filename=" + exportFile);
            } else {
                response.setHeader("Content-disposition", "inline;filename=" + exportFile);
            System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaa");
            response.setContentType(mimetype);
            System.out.println("aaaaa1111");
            OutputStream outs = response.getOutputStream();
             System.out.println("aaaaa2222");
            //Stream the byte array to the client.
            while ((bytesRead = byteArrayInputStream.read(buffer)) != -1) {
                outs.write(buffer, 0, bytesRead);
            System.out.println("bbbbb");
            //Flush and close the output stream.
            outs.flush();
    //        outs.close();
            System.out.println("ccccc");
        /* Include the file AlwaysRequiredSteps.jsp, which contains the code to:
           - Create an Enterprise SessionMgr object
           - Log on to the CMS
           - Create an IInfoStore object
           - Query for and select a report
           - Create an IReportAppFactory object
           - Use the IReportAppFactory object to create a ReportClientDocument object with the IInfoObject that is retrieved from the query
    Logs on to all existing datasource
    @param clientDoc The reportClientDocument representing the report being used
    @param username    The DB logon user name
    @param password    The DB logon password
    @throws com.crystaldecisions.sdk.occa.report.lib.ReportSDKException
        public static void logonDataSource
                (ReportClientDocument
                        clientDoc,
                 String username, String
                        password
                throws
                ReportSDKException {
            clientDoc.getDatabaseController().logon(username, password);
    Changes the DataSource for each Table
    @param clientDoc The reportClientDocument representing the report being used
    @param username  The DB logon user name
    @param password  The DB logon password
    @param connectionURL  The connection URL
    @param driverName    The driver Name
    @param jndiName        The JNDI name
    @throws ReportSDKException
        public static void changeDataSource
                (ReportClientDocument clientDoc,
                 String username, String password, String connectionURL,
                 String driverName, String jndiName
                throws
                ReportSDKException {
            changeDataSource(clientDoc, null, null, username, password, connectionURL, driverName, jndiName);
    Changes the DataSource for a specific Table
    @param clientDoc The reportClientDocument representing the report being used
    @param reportName    "" for main report, name of subreport for subreport, null for all reports
    @param tableName        name of table to change.  null for all tables.
    @param username  The DB logon user name
    @param password  The DB logon password
    @param connectionURL  The connection URL
    @param driverName    The driver Name
    @param jndiName        The JNDI name
    @throws ReportSDKException
        public static void changeDataSource
                (ReportClientDocument
                        clientDoc,
                 String
                         reportName, String
                        tableName,
                                     String
                                             username, String
                        password, String
                        connectionURL,
                                  String
                                          driverName, String
                        jndiName
                throws
                ReportSDKException {
            PropertyBag propertyBag = null;
            IConnectionInfo connectionInfo = null;
            ITable origTable = null;
            ITable newTable = null;
            // Declare variables to hold ConnectionInfo values.
            // Below is the list of values required to switch to use a JDBC/JNDI
            // connection
            String TRUSTED_CONNECTION = "false";
            String SERVER_TYPE = "JDBC (JNDI)";
            String USE_JDBC = "true";
            String DATABASE_DLL = "crdb_jdbc.dll";
            String JNDI_OPTIONAL_NAME = jndiName;
            String CONNECTION_URL = connectionURL;
            String DATABASE_CLASS_NAME = driverName;
            // The next few parameters are optional parameters which you may want to
            // uncomment
            // You may wish to adjust the arguments of the method to pass these
            // values in if necessary
            // String TABLE_NAME_QUALIFIER = "new_table_name";
            // String SERVER_NAME = "new_server_name";
            // String CONNECTION_STRING = "new_connection_string";
            // String DATABASE_NAME = "new_database_name";
            // String URI = "new_URI";
            // Declare variables to hold database User Name and Password values
            String DB_USER_NAME = username;
            String DB_PASSWORD = password;
            // Obtain collection of tables from this database controller
            if (reportName == null || reportName.equals("")) {
                Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
                for (int i = 0; i < tables.size(); i++) {
                    origTable = tables.getTable(i);
                    if (tableName == null || origTable.getName().equals(tableName)) {
                        newTable = (ITable) origTable.clone(true);
                        // We set the Fully qualified name to the Table Alias to keep the
                        // method generic
                        // This workflow may not work in all scenarios and should likely be
                        // customized to work
                        // in the developer's specific situation. The end result of this
                        // statement will be to strip
                        // the existing table of it's db specific identifiers. For example
                        // Xtreme.dbo.Customer becomes just Customer
    //                    System.out.println(newTable.getQualifiedName() + "  -  " + origTable.getQualifiedName());
                        newTable.setQualifiedName(origTable.getAlias());
    //                    newTable.setAlias(origTable.getAlias());
                        // Change properties that are different from the original datasource
                        // For example, if the table name has changed you will be required
                        // to change it during this routine
                        // table.setQualifiedName(TABLE_NAME_QUALIFIER);
                        // Change connection information properties
                        connectionInfo = newTable.getConnectionInfo();
                        // Set new table connection property attributes
                        propertyBag = new PropertyBag();
                        // Overwrite any existing properties with updated values
                        propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
                        propertyBag.put("Server Type", SERVER_TYPE);
                        propertyBag.put("Use ODBC", USE_JDBC);
                        propertyBag.put("Database DLL", DATABASE_DLL);
                        propertyBag.put("JNDIOptionalName", JNDI_OPTIONAL_NAME);
                        propertyBag.put("Connection URL", CONNECTION_URL);
                        propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
                        // propertyBag.put("Server Name", SERVER_NAME); //Optional property
                        // propertyBag.put("Connection String", CONNECTION_STRING); //Optional property
                        // propertyBag.put("Database Name", DATABASE_NAME); //Optional property
                        // propertyBag.put("URI", URI); //Optional property
                        connectionInfo.setAttributes(propertyBag);
                        // Set database username and password
                        // NOTE: Even if the username and password properties do not change
                        // when switching databases, the
                        // database password is not saved in the report and must be set at
                        // runtime if the database is secured.
                        connectionInfo.setUserName(DB_USER_NAME);
                        connectionInfo.setPassword(DB_PASSWORD);
                        // Update the table information
                        clientDoc.getDatabaseController().setTableLocation(origTable, newTable);
            // Next loop through all the subreports and pass in the same
            // information. You may consider
            // creating a separate method which accepts
            if (reportName == null || !(reportName.equals(""))) {
                IStrings subNames = clientDoc.getSubreportController().getSubreportNames();
                for (int subNum = 0; subNum < subNames.size(); subNum++) {
                    Tables tables = clientDoc.getSubreportController().getSubreport(subNames.getString(subNum)).getDatabaseController().getDatabase().getTables();
                    for (int i = 0; i < tables.size(); i++) {
                        origTable = tables.getTable(i);
                        if (tableName == null || origTable.getName().equals(tableName)) {
                            newTable = (ITable) origTable.clone(true);
                            // We set the Fully qualified name to the Table Alias to keep
                            // the method generic
                            // This workflow may not work in all scenarios and should likely
                            // be customized to work
                            // in the developer's specific situation. The end result of this
                            // statement will be to strip
                            // the existing table of it's db specific identifiers. For
                            // example Xtreme.dbo.Customer becomes just Customer
    //                        System.out.println(origTable.getQualifiedName());
                            newTable.setQualifiedName(origTable.getQualifiedName());
                            newTable.setAlias(origTable.getAlias());
                            // Change properties that are different from the original
                            // datasource
                            // table.setQualifiedName(TABLE_NAME_QUALIFIER);
                            // Change connection information properties
                            connectionInfo = newTable.getConnectionInfo();
                            // Set new table connection property attributes
                            propertyBag = new PropertyBag();
                            // Overwrite any existing properties with updated values
                            propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
                            propertyBag.put("Server Type", SERVER_TYPE);
                            propertyBag.put("Use JDBC", USE_JDBC);
                            propertyBag.put("Database DLL", DATABASE_DLL);
                            propertyBag.put("JNDIOptionalName", JNDI_OPTIONAL_NAME);
                            propertyBag.put("Connection URL", CONNECTION_URL);
                            propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
                            // propertyBag.put("Server Name", SERVER_NAME); //Optional property
                            // propertyBag.put("Connection String", CONNECTION_STRING); //Optional property
                            // propertyBag.put("Database Name", DATABASE_NAME); //Optional property
                            // propertyBag.put("URI", URI); //Optional property
                            connectionInfo.setAttributes(propertyBag);
                            // Set database username and password
                            // NOTE: Even if the username and password properties do not
                            // change when switching databases, the
                            // database password is not saved in the report and must be
                            // set at runtime if the database is secured.
                            connectionInfo.setUserName(DB_USER_NAME);
                            connectionInfo.setPassword(DB_PASSWORD);
                            // Update the table information
                            clientDoc.getSubreportController().getSubreport(subNames.getString(subNum)).getDatabaseController().setTableLocation(origTable, newTable);
    %>
        try {
            // Create the ReportClientDocument object.
            ReportClientDocument clientDoc = new ReportClientDocument();
            clientDoc.open("Class Progress by AI.rpt", 0);
            //start sheeet code            -  work
            changeDataSource(clientDoc, "root", "eatmyshorts",
                    "jdbc:mysql://localhost:3306/lms",
                    "com.mysql.jdbc.Driver", "LMS_MySQL5.1");
            ParameterFieldController paramController = clientDoc.getDataDefController().getParameterFieldController();
            paramController.setCurrentValue("", "Type", "en_US");
            paramController.setCurrentValue("", "SchoolName", "general");
            paramController.setCurrentValue("", "StudyClassName", "classss");
            paramController.setCurrentValue("", "SegmentId", 6);
            paramController.setCurrentValue("", "LAID", 30);
            paramController.setCurrentValue("", "AIID", 205);
            paramController.setCurrentValue("", "LOID", 1);
            IReportSource reportSource = clientDoc.getReportSource();
            // Create a Viewer object
            CrystalReportViewer viewer = new CrystalReportViewer();
            // Set the report source for the  viewer to the ReportClientDocument's report source
            viewer.setReportSource(reportSource);
            // Set the name for the viewer
            viewer.setName("Crystal_Report_Viewer");
            viewer.setPrintMode(CrPrintMode.PDF);
            viewer.setEnableParameterPrompt(true);
            viewer.setEnableDrillDown(true);
            viewer.setOwnPage(false);
            viewer.setOwnForm(true);
            viewer.setDisplayToolbar(false);
            viewer.setDisplayGroupTree(false);
            viewer.setHasPageBottomToolbar(false);
            // Process the http request to view the report
            viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
            // Dispose of the viewer object
            viewer.dispose();
            // Release the memory used by the report
            clientDoc.close();
        } catch (ReportSDKExceptionBase e) {
            e.printStackTrace();
    %>

Maybe you are looking for

  • Can not find the radio in the menu on my iMac

    THE RADIO IS NOT SHOWN ON THE ITUNES MENU. SEEMS TO HAVE WENT AWAY AFTER DOWNLOADING UPDATE.

  • AUTO_FILTER in 10g results in NO indexes

    I have a MULTI_COLUMN_DATASTORE associated with my index. One of the columns is a BLOB. I have tested with Word, XML and PPT documents and embedded text in those docs is searchable without me specifying any FILTER parameter during index creation. Whe

  • Wired interface non-functional

    So I have a most unusual problem with a mac mini server that is driving me banana's that I hope someone in the Apple community has run into, and found a decent solution.. The mac mini (2.3GHz quad core i7, late 2012) is running 10.9 and server 3.0.1.

  • Quick question re: port mapping

    Does the 802.11n base station have the same limit as the 802.11g base station regarding the maximum number of ports that the user can map? In other (perhaps more coherent) words: The "g" base station only allows a user to specify a total of 20 ports

  • No sound except for Facetime

    I have no sound coming out of any applications on my iPad except for Facetime which works perfectly.  I also have sound when I use the slidder in Settings/Sound.  But this is it.  No sound (clicks) when I type something in Safari, no sound with Youtu