Need to change query on hgrid at runtime

Hi,
I have created a page with hgrid, that shows quote lines with cost. Since cost is not stored in quoting tables, I've joined cost tables in the VO qurey and in AMImpl, added where condition to the VO for organization_id (since cost can be defined for same item in different orgs). Now, when the page is rendered, for top line, I see the correct organization. But when I click to expand the top line, I get duplicates of child lines as if the query is ignoring organization_id set initially in AMImpl. Is this expected behavior that the sublines would ignore any dynamic where clause additions to the VO query for hgrid block? Is there a way to fix this behavior? For my page, the expected behavior would be to use the same organization_id in the where clause of the sublines, so they would also display cost setup in the same org as top line. Please, any help is greatly appreciated.
Thanks,
Alka

i got this line error help me david
crossfadeFilter.shader.data.frontImage.input = (new menu_pic.source()).bitmapData;
                crossfadeFilter.shader.data.backImage.input = (new ReplObj()).bitmapData;

Similar Messages

  • Need help changing query

    There has been change to requirements and i'm not sure how to change my query to handle the changes.
    The table basically has entries for each end point of a connection and the query combines the from/to row. Now the requirement change is that the connection can have multiple end points with a single "from" end point. SO the result set may be multiple rows for a connection with the same "from endpoint" and the different "to endpoints".
    The query is below ( Sorry about the bad formatting)
    Basically the "seq<=2" is no longer true and there is no finite limit. If there are multiple endpoints, the key is that for each result "row" the "from endpoint" will be same but different "to endpoints"
    I can do a "SIGN(seq-1),1 " to get the multiple rows but don't know how to remove the "max" without getting a "not a GROUP BY expression" error.
    Please help. Thank you.
    SELECT tt.descr TYPE,
           from_id,
           from_name,
           from_ra,
           from_field1,
           from_ran,
           total,
           to_id,
           to_name,
           to_ra,
           to_field2,
           to_ran
    FROM   (SELECT   TYPE,
                     Max(Decode(seq,1,id,
                                    NULL)) from_id,
                     Max(Decode(seq,1,NAME,
                                    NULL)) from_name,
                     Max(Decode(seq,1,ra,
                                    NULL)) from_ra,
                     Max(Decode(seq,1,field1,
                                    NULL)) from_field1,
                     Max(Decode(seq,1,ran,
                                    NULL)) from_ran,
                     Max(Decode(seq,1,total,
                                    NULL)) total,
                     Max(Decode(seq,2,id,
                                    NULL)) to_id,
                     Max(Decode(seq,2,NAME,
                                    NULL)) to_name,
                     Max(Decode(seq,2,ra,
                                    NULL)) to_ra,
                     Max(Decode(seq,2,field1,
                                    NULL)) to_field2,
                     Max(Decode(seq,2,ran,
                                    NULL)) to_ran
            FROM     (SELECT tablew.group                                                     AS group,
                             tablew.id                                                        AS id,
                             s.NAME,
                             Nvl((SELECT t.field1
                                  FROM   tableb t
                                  WHERE  t.NAME = (SELECT NAME
                                                   FROM   tablea
                                                   WHERE  id = another_id)
                                         AND t.field2 = tablew.ra
                                         AND ROWNUM <= 1),'No Data') AS field1,
                             tablew.RANGE,
                             tablew.total                                                     AS total,
                             tablew.ra,
                             tablew.TYPE,
                             Row_number()
                               OVER(PARTITION BY tablew.group ORDER BY tablew.cla, tablew.id) seq
                      FROM   tablew w,
                             tables s
                      WHERE  tablew.id LIKE '"+var1+"%'
                             AND s.id = tablew.id)
            WHERE    seq <= 2
            GROUP BY group,
                     TYPE) c,
           tablec tt
    WHERE  c.TYPE = tt.TYPE;

    Hi,
    Welcome to the forum!
    Sorry, I'm not familiar with your tables or yopur application.
    Can you post a few rows of sample data, and the results you want from that data? For the sample data, executable CREATE TABLE and INSERT statements (or CREAT TABLE AS statements) are best.
    Simplify as much as you can. for example, it looks like you're currently producing two sets of five columns (id, name, ra field and ran). Is it practical to ignore, say, name, ra and field for now? Once you learn how to handle id and ran, you'll probably know how to handle the other columns as well.
    What version of Oracle are you using? (Always post this when you ask a question. You don't want to try an answer that won't work any more than I want to write an answer that won't work for you.)
    user11033180 wrote:
    The query is below ( Sorry about the bad formatting)The query is actually formatted much better than average!

  • Change query during runtime

    Dear Friends,
    I have procedure to retrieve data from tables, this procedure uses cursor to fetch the records into the required data block.
    i need to change the where clause of the query which used to build the cursor during run time based on data will be gathered from another data block. how can i achieve that??
    is there any suggestions???
    thanks in advance
    Mohammad

    Hello,
    Check Re: Control Block
    for changing the WHERE attribute of a block.
    In your case, you want to set the WHERE condition for the cursor and this depends on a value or values you get from another block. In this case, it is best to give the user a way to either enter that condition or store the result you get from the other block in a variable and use that variable in your cursor.
    You can use a parameter to store that condition and this will be local to the current form. If however you need to get that from another module, then you might need to use a parameter list and you can pass the WHERE condition in there to the module that has your cursor.
    Hope this helps.

  • Changing Query Component's criteria items at runtime

    Hi All,
    As per my requirement i am changing query component's criteria items on some user input.
    So initially there were 9 components on query panel form and after user input it will become 7. I programatically used to set this two component's UI Hint as setVisible(false).
    Its working fine but if user input some value in to be removed 2 components it throws an null pointer exception.
    I understood the problem which is:-
    On query form if user input any value it used to persist. for same framework used to store this user entered value somewhere and after refresh it apply this value to the relevant components.
    Since two of the component are missing after refresh. it throws a null pointer exception as it tried to call setValue() method on removed component which is not there.
    After refresh the query panel form is rendered as per defined by QueryDescriptor object.
    Is there any way we can update this QueryDescriptor object with the changes...????

    Hi Simran,
    Yes, it is possible with the help of store procedure. In SQL Server there is a IF-Else Conditional block, which you can use inside store procedure. Create a SP with 2 additional parameter something like FlagReadAgain and KeyField. Pass the flag always as True or False. For the Key field pass the record key which you want to read again if you are passing the Flag as True else pass it as 0 or whatever.
    In the procedure check if the value of flag is True -> If yes, Read the entry with key name specified in where part.
    In the else part put the query which you are using for the normal flow.
    IF (FlagReadAgain) = TRUE
    BEGIN
       SELECT EmpName, EmpAddress
       FROM Employee
       WHERE EmpID = 'E001'
    END
    ELSE
       BEGIN
         SELECT EmpName, EmpAddress
         FROM Employee
         WHERE Status = 'N'
       END
    You may also use the approach which Srini mentioned. Create an application to restore any value to intial stage so that it can be picked up by XI when it poll again.
    Choose any approach which you like.
    Regards,
    Jitender Chauhan

  • To open "CS5ServiceManager" you need to install a Java SE 6 runtime. Won't install? Please advise.

    Hi Apple Support Communities, I need some support.
    After loading Mavericks with lots of happiness primarily to be able to use dictation, see my previous query. Since then I have also had this come up on my Macbook Air everytime I start it.
    To open "CS5ServiceManager" you need to install a Java SE 6 runtime. Would you like to check for and install one? I tried yes (many times over many days).
    Install.
    Finding software. Can't download the software because of a network problem.
    There is no problem with my internet connection & I have Java 7. My apologies that I am just a general user & not up with technical issues, would someone please enlighten me on what to do to fix or remove this error.
    its now become a tiresome thing that together with not being able to use (download) the enhanced dictation & my imail/gmail problems that makes me wanna buy a PC next time. Major bummer.
    Please help. Thankyou in anticipation.

    i had the same problem and i fix it installing ccleaner, it is free and an excellent program. You can download it from: https://www.piriform.com/ccleaner/download
    Once installed, in the tab "Herramientas" (sorry but i have it in spanish) you choose "Inicio" and them you pick CS5ServiceManager then you pick in delete option. Basically you are removing of the startup programs...
    Hoping to be helpful, and excuse my bad english!

  • Advice needed for changing code within the Web IC...

    Hi,
    I need to change some code within the GET_QUERY_RESULT Method, which is found:
    BSP->Z_CRM_IC
    View->AuiSearch
    Controller class ZL_CRM_IC_AuiSearch_impl
    Method do_handle_event
    Method eh_onsearch
    Method get_query_result
    At present the method get_query_result belongs to class CL_CRM_AUI_QUERY_SERVICE.
    I can create a subclass from this and call it ZL_CRM_AUI_QUERY_SERVIC, then redefine the method get_query_class, and then make the appropriate changes. But that may be all uneccessary. What I don't know is how to ensure this modified code can be called.
    I have already made changes for method DO_INIT_CONTEXT, hence the reason the controller class ZL_CRM_IC_AUISEARCH_IMPL is identified. But this was simple because the view linked directly to this whereas you can see the code I need to change is further down in process chain.
    I know that method get_query_result calls a number of BADI's, but these BADI's are too low for the information that I need and therfore really need to make my code changes in the get_query_result method.
    I have been reading as much as I can on this subject, but without much success and therefore really count on experienced developers like yourselves to steer me in the right direction, or give advice.
    Jas

    I will not suggest to put your Enhancements into CL_CRM_AUI_QUERY_SERVICE.
    Rather in  Component BT  -> Class CL_CRM_BTIL .  AUi Query Service will Internally call the BOL Component ( get query result )
    In your Framework Profile Config  , you specify the Component Set  . Ex: ALL
    Component set have a List of Component Ex BP , BT .
      SPRO-> CRM -> CRM Cross Application Components -> Generic Interaction layer -> Basic Settings
    Now you can have your Custom , Component Set ( Ex : ZALL ) and Component ( ( Ex ; ZBT , Totally advisable for CIC Development Framework )
    Have BT Copied into ZBT and  Specify  ZL_CRM_BTIL (  Inherited from CL_CRM_BTIL )
    And in your Custom Component Set , Specify ZBT instead of BT . 
    Now Specify your Custom Component Set in your Framework Profile .
    Now you got the Enhancement Spot in  ZL_CRM_BTIL->GET_QUERY_RESULT
    Let me know if it make sense

  • Change Query for SnapShot in Outlook Express Addon

    Expert,
    I am using SAP 8.8 PL15 and using Outlook Add-On.
    we are using SnapShot for our report also but we need report in specific format,
    can we change query so that report will change and we have our own report format
    Thanks
    Nilesh Shah

    Hi Nilesh Shah,
    You can try under test environment. Then you will know.
    Thanks,
    Gordon

  • Using "Restrict by app" in change query causes issues with Search Results

    Hello!
    I am hoping some experienced SP admin can help me out. I am having issues with the relevance ranking for my search results web part.
    I created a Wiki (OOTB) within a site collection and on the home page of the Wiki I was looking to apply a Search Box and Search Results web part for easy searching. I wanted to ensure the search results were restricted to the scope of the pages within the
    wiki. I did the following after adding the 2 web parts:
    Entered edit mode for the page
    Started to edit the Search Results web part
    Under Properties for Search Results clicked on "Change Query"
    Navigated to BASICS and clicked "Switch to Quick Mode"
    For Select Query, picked "Wiki (System)" option
    For Restrict by app, picked "Specify a URL" and input the wiki URL "http://webapp.com/sites/sitecollection/wiki"
    Click OK
    The web part has 6 automatic results when I hit the page. These are the only 6 pages in my wiki. When I search a word or title of a page, they are not ranked in order or relevance. The ordering is static to what was being shown before the search, but the
    keywords I'm searching are bold. With out the taking the steps above, I can easily search these pages and have them ranked appropriately so I'm not too sure what I'm doing wrong. 
    Other Details
    The pages have been crawled and can be searched from anywhere else in SP.
    I am only a site collection admin for this specific site collection.
    I other than the steps above, I have not made any changes or customization to the search web parts; they are both out of the box SP.
    The SP Farm admin we unable to pin point what the root cause is either.

    Hi Mikael,
    Sorry for the wait, I was unable to post pictures, which i felt would better describe my issue.
    Could you output the query template you are ending up with?
    If you can tell me how to accomplish this, then I can provide it. Please keep in mind that I am only a site collection admin.
    Also, is the ranking/sorting for your webpart set to ranking?
    When looking at the web part settings, I didn't see an option to modify the ranking. Unfortunately, some sites in my intranet are down now so I can't even double check. Once it's back up, I will verify this as well.
    And how do you know they are ranked incorrectly?
    I wanted to display an image showing what I meant by this. As the wiki is down, I'll do my best with words. When I visit the wiki home page, I already have the search and search results web parts there. Without searching anything, the search results
    web part displays 6 pages that are available in the wiki. When I search, I expect to see the most relevant result at the top. similar to the following: 
    *Search result from another section of the intranet site.*
    What I receive instead is the same list of wiki pages, in the same order. The most relevant result
    is not moved to the top like in the image above, but I can see that the word "rush" is highlighted in bold. I hope this helps.
    If you need more of a description, please let me know.
    Thank you

  • FP-module don't use new *.iak when changing to iak-file on runtime

    Hi folks,
    I'm using FP1001 (RS-485) communication modules with a bank of FP-AI-110
    (8 x AI) and FP-SG-140 (8 x StrainGauge) with LabVIEW 6.1.
    Since I need to change input ranges of the modules on runtime
    (autoranging feature) and there is no vi to manage this, I created a
    couple of iak-files with the FP-explorer (V3.02, build 177), where I set
    the approbiate input ranges. My application then monitors the analog
    input data of the modules and changes the used iak-file as needed to
    prevent over- and underranging.
    When changing the iak-file the current session is closed (FP-Close) and
    the next session is opened with FP-Open and Create Tag, continuing with
    FP-read.
    My application does its' job well, since I monitor the currently used
    iak-file, range and the fact that sessions get closed before opening the
    next, but the FP-modules won't restart using the new range settings,
    after the following session is started with the other iak-file. The
    modules allways keep the previous settings.
    So whats wrong?
    Btw.
    I noticed FP-Explorer also has its problems changing module- ranges,
    after loading a new iak-file.
    So I startup the FP-Explorer with a iak-file for a low range setting
    (module input range) and increase the input voltage at the module input
    just as much that a overrange occurs. Then I load another iak-file with
    higher range-settings. FP-explorer shows the higher range in its range
    column, but when monitoring the module input values, overrange is showed
    first. After restarting monitoring, the input values are showed
    correctly.
    Heres' the problem:
    Loading the previous iak-file again, the overrange should show again,
    since the input value was left at the higher value, as set before. But
    no overrange shows! FP-Explorer monitors the higher input value which
    istn't within the input range, showed in the range column.
    So FP-explorer hasn't switched down the modules range!!!
    Restarting monitoring, or reloading the iak-file doesn't change
    anything. Restarting the FP-explorer shows overrange again when starting
    to monitor values. Restarting monitoring lets the FP-explorer continue
    to monitor the higher input value, which is above the range showed in
    the range column.
    The only thing which helps all the time, is to open the devices context
    menu, then to click on "Edit this device", and click on channel
    configuration. Then a pop-up window asks which setting to use (file or
    device). If I click on file, all the settings of the current used
    iak-file are used correctly.
    Ciao,
    Rainer

    Rainer,
    The FieldPoint IAK File is used in application programs (e.g. LabVIEW, LabWindows/CVI, OPC) for channel names, handle information and scaling information. FP Open.vi launches the FieldPoint Server with the specified IAK file, and uses the information in the specified IAK file for scaling (serial modules require scaling on the computer, ethernet modules scale the data in the network module) but does not re-configure the IO modules according to the IAK file. Likewise, opening an IAK file in FieldPoint Explorer does not reconfigure the IO modules to match the IAK file. The only times that settings are synchronized between the IAK and the modules are when a)the Find Devices command is issued (config from modules loaded), b) the Channel Configuration wi
    ndow is opened (file or module config can be choosen) or c) a Snapshot command is issued (current settings of modules are stored).
    Currently, the FieldPoint Server VI's do not allow dynamic re-configuration of ranges. If you wish to dynamically reconfigure your module ranges, you will need to use the FieldPoint Optomux VI's, which are located under the RT sub-palette of FieldPoint. They are installed by default only if you have LabVIEW RT, so you may need to re-install FieldPoint Explorer (custom install) to get them. For more information on the Optomux commands, please see the FP-1000/1001 Programmers Reference Manual.
    Regards,
    Aaron

  • Need to change report data source on reports in a copied universe

    We are setting up a new testing environment.  So I made a copy of our BO universe so we could have two different testing universes.  I then created a copy of the data source database that will be used as the data source for the reports in the copied universe.  The two different databases have the exact same tables, columns and indexes as the development database.   The only difference will be the data inside the tables. 
    I now need to change the reports to use the new universe since the reports were written using the universe instead of using the database.  I am not changing anything else in the reports.  I just need them to run against a different Oracle database. 
    So I go into Crystal Reports version 11.5.0.313 and open the report up.  I then go into Database fields in Field Explorer to change the data source.  I then go to the Set Datasource Location screen.  I open up the universe label by clicking on the plus sign and I select the copied universe.  When I do that, the Business Objects Query panel screen opens up.  Because I have switched universes, Crystal Reports wants me to reselect the columns and rebuild the query.
    We have over three thousand reports so we are trying to avoid rebuilding them.  I am looking for a better way to change what database a report runs against. 
    Note: All of the reports will be run ion demand.  Nothing will be scheduled.
    Any suggestions and information will be greatly appreciated. 
    Has anyone run into this?   What was your solution to this problem?

    Hi Joe,
    Moved your post to the Universe Forum.
    First you are using the original release of XI R2. You need to upgrade to Service Pack 6 by:
    Run License Manager first to get the keycode if you don't have it on paper somewhere.
    Then download these and uninstall then run full build first:
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Try again
    Don

  • SQ01 - need to change selection screen text of parameters

    I am using KNA1 table in my SQ01(Abap query) and am having Kunnr as the selection screen parameter .The default text of Kunnr coming from KNA1 is 'customer number 1'.I need to change this to show it as 'customer number'.
    I changed the text in infoset in long text and header value,but it still does not work out. Any suggestions ??.Pls let me know.

    Hi,
    When you define the selection screen fields in the info set..There will be text box for selection text..There you can give the text..
    I tried this..And it worked for me..
    Thanks,
    Naren

  • Change query using abap

    hi all,
    i find a situation when i need to change many queries to include a common variable of a characteristic. is it possible to create a program to change query? are there any function modules for this?
    thanks.

    Hi,
    You can run or get an URL for query with ABAP Function modules. but for creation, it may not possible.
    As this is a different tool.
    Regards,
    Ravi Kanth

  • Need to change Pipeline URL

    Hello,
    I need to change the pipeline url for my XI. I did changed it in SLD -> Business System and in SXMB_ADM -> Integration Engine Configuration. But when I check the configuration in SXMB_ADM (F7), it seems that everything is not correct:
    Yellow triangle and this message: "Corresponding Integration Server: Current Configuration <> System Landscape"
    What can I do to force the new pipeline url to be used ? Restart something, refresh something ? I did refresh everything I can, but it didn't fix the problem.
    Please be specific in your directions, my XI administrative knowledge is limited.
    Thanks
    Jerome

    Hello,
    First thanks everyone for your help. Now Pipeline url are the same everywhere.
    However, the server seems to still listen on the old url... Just to give you the context, the old and new url are almost the same, I just changed the port. Currently, old url still returns "Empty HTTP query received" and new one return "http error 404".
    I did restart all instances in sapmcc  to try to force the change, but it didn't help.
    What should I try next ? Change another setting, refresh/restart something ?
    Thanks again,
    Jerome

  • Changing socket server config at runtime

    Is it possible to modify properties of a socket server at runtime without needing to change the xml? For example, if I wanted to change something like connection-idle-timeout-minutes from 120 to 60, could I do it without modifying the following xml block in services-config.xml and redeploying?
         <server id="my-nio-server" class="flex.messaging.socketserver.SocketServer">
                <properties>
                    <connection-idle-timeout-minutes>120</connection-idle-timeout-minutes>
                    <socket-keep-alive-enabled>true</socket-keep-alive-enabled>
                    <max-worker-threads>200</max-worker-threads>
                    <min-worker-threads>200</min-worker-threads>
                    <accept-thread-priority>7</accept-thread-priority>
                    <accept-backlog>25</accept-backlog>               
                </properties>
            </server>
    I ask because our application is large enough that off cycle deploys or downtimes are rarely feasible, and it would be convenient if there were a way to change these values at runtime.

    It looks like it might be possible although none of the APIs you need to do it are published.
    I can tell you what the APIs are if you want to give it a try and see if it works for you.
    The flex.messaging.socketserver.SocketServer class has a setConnectionIdleTimeoutSeconds(int value) method that you can call to change the connection idle timeout. It looks like this is thread safe so you should just need to get the SocketServer at runtime and call the method.
    NIO endpoints that extend from flex.messaging.endpoints.BaseSocketServerEndpoint have a getSocketServer() method you can use to get the SocketServer.
    You can get an NIO endpoint from the MessageBroker by calling getEndpoint(String) and passing in the endpoint id or getEndpoints() to get a Map of all the endpoints.
    So, to sum up, you should be able to first get the MessageBroker. For example, in a servlet you can call FlexContext.getmessageBroker() to get it. Next, you would get the endpoint from the MessageBroker and then get the SocketServer from the endpoint. Once you have the SocketServer, you should be able to call setConnectionIdleTimeoutSeconds to change the connection idle timeout.
    Hope that helps.
    -Alex

  • *** Canu2019t Change ServerName or DatabaseName At Runtime In Crystal Report!!!

    Canu2019t Change ServerName or DatabaseName At Runtime In Crystal Report. Why?
    HI thereu2026 This is just a simple Winform(not ASP) with a Crystal Report Viewer control on it that was called by another simple WinForm. Iu2019m trying to simply change the Server Name for a Crystal Report at runtime and it will not let me. Hereu2019s the code below. The database is identical to my development server database. This should be easy to do as I did below. I use SQL Server 2005(SPK 2) and Visual Basic 2008. I use the Crystal Reports 2008 standalone designer(seperate program), not the older one in the VS IDE. When I run the code it accepts changes to the user name and password but ignores any change to the ServerName or DatabaseName. Why?
    Mike in Los Angeles, Calif, USA
    Imports CrystalDecisions.CrystalReports.Engine
    Public Class CrystalReportForm2
        Private Sub CrystalReportForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            CrystalReportViewer1.LogOnInfo = New CrystalDecisions.Shared.TableLogOnInfos()
            Dim LogonInfo As New CrystalDecisions.Shared.TableLogOnInfo
            LogonInfo.TableName = "clients"
            'Force crystal report to use a different server AT RUNTIME than the development server!
            LogonInfo.ConnectionInfo.ServerName = "DATASERVER2"    u2018<- ignores changes to this!!
            LogonInfo.ConnectionInfo.DatabaseName = "CMSDATASQL"   u2018<- ignores changes to this!!
            LogonInfo.ConnectionInfo.UserID = "SQL_USER"           u2018<- accepts changes to this!!
            LogonInfo.ConnectionInfo.Password = "34567WERTD"       u2018<- accepts changes to this!!
            CrystalReportViewer1.LogOnInfo.Add(LogonInfo)
            'Testing only below!
            ' MsgBox("ServerName =" & CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.ServerName)
            'MsgBox("DatabaseName =" & CrystalReportViewer1.LogOnInfo(0).ConnectionInfo.DatabaseName)
            CrystalReportViewer1.SelectionFormula = "{openclientsquery.lastname} like  'c*'"
            'CrystalReportViewer1.SelectionFormula = "{clients.clientid} = '1111111'"
            CrystalReportViewer1.Refresh()
        End Sub
    End Class
    Edited by: Mike JJJ on Dec 25, 2008 7:26 PM
    Edited by: Mike JJJ on Dec 25, 2008 7:30 PM

    Yes, you have to simply loop through all the tables in the report and assign each one the same logon info and then reassign the report and refresh the report viewer. No need to use a .Net Dataset here. Eventhough I got the answer myself from studying the Crystal API reference thanks to all that answered! Hopefully this will help others. Mike in Los Angeles, Calif, USA.
    Imports CrystalDecisions.CrystalReports.Engine
    Public Class CrystalReportForm2
        Private Sub CrystalReportForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim MyReport As New Clients 'Instance of report!!!
            Dim myLogonInfo As New CrystalDecisions.Shared.TableLogOnInfo
            Dim myTable As Table
            For Each myTable In MyReport.Database.Tables
                myLogonInfo = myTable.LogOnInfo
                myLogonInfo.ConnectionInfo.ServerName = " DATASERVER2"
                myLogonInfo.ConnectionInfo.DatabaseName = "CMSDATASQL"
                myLogonInfo.ConnectionInfo.UserID = "SQL_USER"
                myLogonInfo.ConnectionInfo.Password = "34567WERTD"
                myTable.ApplyLogOnInfo(myLogonInfo)
            Next myTable
            CrystalReportViewer1.ReportSource = MyReport
            CrystalReportViewer1.SelectionFormula = "{openclientsquery.lastname} like  'c*'"
            CrystalReportViewer1.Refresh()
        End Sub
    End Class
    PS - Hopefully, in the future Microsoft will improve(and document) its own report control and designer. Right now it's still crude and needs a lot more development to approach the usefulness that the Access Report Designer has. It's rediculous to depend on a third party reporting control(all business programs require reporting) when Visual Studio should have had/built one included from day one.

Maybe you are looking for

  • Open items not considering in credit check.

    Dear Experts, We have implemented credit management in our new role out company code with the same credit controlling area for both company codes. As per our configuration at the time of sales order creation, credit limit has to be checked and check

  • Setting up haskell

    I am a new Arch user, and I'm trying to setup a haskell dev environment, but I'm running into a few problems.  In most other distributions I would install the latest haskell platform, but I can't seem to find it.  I see ghc as well as a few other has

  • BP: Only continue when number of records is greater zero

    Hi everybody! In my business process I have a decision step which should end the process if a synchronous send step does not yield a result. I thought this could be achieved using an XPATH syntax like so: count(/p1:data/p1:records/p1:PKEY) Using a co

  • Connecter un sonde de température LM35 à un noeud de mesure

    salut je un probléme pour la probriéte du noeud ni 3226 est qu'il posséde un conditionnement de signaux integré ou bien je suis obliger d'utiliser le carte daq ? quelle est la differance entre le noeud 3226 et le noeud 3202 ? comment je veux connecte

  • Had to reset touch & now it wiped clean and cant sync

    itunes said i had to reset my itouch so i did and it wiped my touch clean of everything including software upgrade but i still have everything on my itunes. when it was done resting it i got a screen and i clicked my touch icon and it say "set up ipo