Best way to have Grouping in Report(rld) completely independent of rld file.

hi,
I have reports which are used by me multiple clients. Reports have parameters like Group1 which are multi-value. e.g : Group1 has firstname,lastname and fullname values. Table in report has group expression
=Fields(Parameters!Group1.Value).Value
Now client can group report by firstname,lastname or fullname. Different client wants different default value for Group1 parameter.
E.g : Client1 wants to view report grouped by firstname and client2 wants to view report grouped by Fullname. Now the problem is maintaining different rld's with different default parameters for each client. If report needs to be modified then all copy of
reports need to modified.
One possible solution is to move all grouping values into database table and fetch data(all possible group parameter values and default value for group parameter) through stored proc and bind to parameter. Data will be fetched for specific client filtered
by client name. 
I want to know is there any other solution to this problem? What should be the best approach so that one copy of rld is enough?
 Thanks in advance

Hi ANREV107,
Based on your description you have three kind of tables both have the field for the client name but the they have different names in DB: fistname,lastname and fullname. The report display the name column based on the paramters:group1, now the problem
is  about the parameter group1 can’t provide dynamic default values according to different clients, right?
I have tested on my local environment and we can recreate the parameter group1 to by adding an dataset which will get the dynamic column name based on the client and then specify the parameter’s default value using “Get values from a query”, then we could
maintaining different rld's with different default parameters  dynamically for each client with do modification for different client.
Details information for you reference:
1.  Create an new dataset to get the Dynamic name fields, query like below(Two method to get   the dynamic name fields, just need to replace the ‘Tablename’ to your table ):
Query 1(Three tables for three different client have the same table names):
SELECT name AS 'Group1'
FROM sys.columns AS c
WHERE (object_id = OBJECT_ID('TableName'))
and name in ('firstname','lastname','fullname')
Query2(Three tables for three different client have the three different table names):
select(
case when
'firstname' in (SELECT name AS 'ColumnName'
FROM sys.columns AS c
WHERE (object_id = OBJECT_ID('TableName1'))) THEN 'firstname'
when
'lastname' in (SELECT name AS 'ColumnName'
FROM sys.columns AS c
WHERE (object_id = OBJECT_ID('TableName2'))) THEN 'lastname'
when
'fullname' in (SELECT name AS 'ColumnName'
FROM sys.columns AS c
WHERE (object_id = OBJECT_ID('TableName3'))) THEN 'fullname'
END) as Group1
2.  Modify the parameter “Group1” and change to “Get Values from a query“:
3.  Now Using this expression to display the name will not need the change the default value anymore:
     =Fields(Parameters!Group1.Value).Value.
If you still have any question, please feel free to ask.
Regards
Vicky Liu

Similar Messages

  • Infoview - What's the best way to have Shortcuts to Reports?

    Our Infoview users create shortcuts to reports that are in the Public Folders area
    by selecting the check box next to the report and then selecting organise and add to my favourites.
    This is placing what we thought was a shortcut to the file in My Folders > Favourites
    The problem is that this is not creating a shortcut to the report but making a copy of it and placing in My Favourites area.
    When the original report is altered then the copy obviously is not and is causing issues.
    My question is what is the best way of just making a shortcut to the actual report and not a copy.
    I understand there is also a categories area that may be able to add shortcuts but donu2019t have much info on this.
    Is anyone able to let me know how this can be done and some steps in doing this?
    Thanks for your help.

    If it's CR, then change it under the CR Job server.  If it's webi then under the Adaptive Job server if in XI 3.1 or in XIR2 under Webi job server/destinations/inbox.

  • How is the best way to have Itunes notice your app or drive traffic to the app store?

    How is the best way to have Itunes notice your app or drive traffic to the app store? What are the best ways based on experiance that works to drive traffic to your app as a paid game for .99?

    Write an app people want to buy and rate highly.

  • What is the best way to have access to OSX and OS9 from the same machine?

    What is the best way to have access to OSX and OS9 from the same machine?
    Do I need to partition the hard drive? Installed both Tiger and OS 9 on the G5 and it is having problems starting up properly.
    G5   Mac OS X (10.4)  

    And here is the prove for Edwin's message: Macintosh: Some Computers Only Start Up in Mac OS X

  • What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change? When we 1st got our Macbook we unknowingly set it up wrong--as 2 separate users, with separate everything. Good for contacts and email, bad for calendar, photos, music.

    What is the best way to have Mac setup for sync-ing 2 calendars?  Any way to change?  When we first got our Macbook we unknowingly set it up as 2 separate users, with separate everything.  Now I have an iphone and I want to sync calendars but not contacts or email.  Any direction you could give would help! thx

    Anyone...anyone? Bueller...Bueller?

  • Best way to have only one  instance of an object in web application.

    Hello,
    I defined a class that provides services to my web application: subscribes user, check if user already subscrubed etc. The objects don't need to save any session information. So it is like a Stateless Session Bean (from what I've read about Session beans).
    The webapp is small and I don't want to use EJBs.
    What would be the best way to have one instance of the above class in my webapp ?
    Would making the class static be a good method ? Using a factory ?
    Is there a way to put in web.xml something that asks the container to instantiate an object that is not a servlet and place it in Application scope, so that I cann retrieve it whenever required in my app ?
    Other suggestions ?
    Thank you,
    Vlad.

    Hi
    The best way to have only one instance is use the singleton pattern. The idea is : the class has a private
    contructor, a public static method that returns an instance of this object and a static member that is false if not any instance and true if there si an instance.
    To obtain one instance you can do some like
    MyObject ob=MyObject.getIntance();
    this method inspect the static member and returns null if true. If false set to true and return the object
    via the private constructor.
    You can lear more at book of Gramma .... (gang of four)
    Hope this helps

  • What is the best way to export the data out of BW into a flat file on the S

    Hi All,
    We are BW 7.01 (EHP 1, Service Pack Level 7).
    As part of our BW project scope for our current release, we will be developing certain reports in BW, and for certain reports, the existing legacy reporting system based out of MS Access and the old version of Business Objects Release 2 would be used, with the needed data supplied from the BW system.
    What is the best way to export the data out of BW into a flat file on the Server on regular intervals using a process chain?
    Thanks in advance,
    - Shashi

    Hello Shashi,
    some comments:
    1) An "open hub license" is required for all processes that extract data from BW to a non-SAP system (including APD). Please check with your SAP Account Executive for details.
    2) The limitation of 16 key fields is only valid when using open hub for extracting to a DB table. There's no such limitation when writing files.
    3) Open hub is the recommended solution since it's the easiest to implement, no programming is required, and you don't have to worry much about scaling with higher data volumes (APD and CRM BAPI are quite different in all of these aspects).
    For completeness, here's the most recent documentation which also lists other options:
    http://help.sap.com/saphelp_nw73/helpdata/en/0a/0212b4335542a5ae2ecf9a51fbfc96/frameset.htm
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

  • What is the best way of returning group-by sql results in Toplink?

    I have many-to-many relationship between Employee and Project; so,
    a Employee can have many Projects, and a Project can be owned by many Employees.
    I have three tables in the database:
    Employee(id int, name varchar(32)),
    Project(id int, name varchar(32)), and
    Employee_Project(employee_id int, project_id int), which is the join-table between Employee and Project.
    Now, I want to find out for each employee, how many projects does the employee has.
    The sql query that achieves what I want would look like this:
    select e.id, count(*) as numProjects
    from employee e, employee_project ep
    where e.id = ep.employee_id
    group by e.id
    Just for information, currently I am using a named ReadAllQuery and I write my own sql in
    the Workbench rather than using the ExpressionBuilder.
    Now, my two questions are :
    1. Since there is a "group by e.id" on the query, only e.id can appear in the select clause.
    This prevent me from returning the full Employee pojo using ReadAllQuery.
    I can change the query to a nested query like this
    select e.eid, e.name, emp.cnt as numProjects
    from employee e,
    (select e_inner.id, count(*) as cnt
    from employee e_inner, employee_project ep_inner
    where e_inner.id = ep_inner.employee_id
    group by e_inner.id) emp
    where e.id = emp.id
    but, I don't like the complication of having extra join because of the nested query. Is there a
    better way of doing something like this?
    2. The second question is what is the best way of returning the count(*) or the numProjects.
    What I did right now is that I have a ReadAllQuery that returns a List<Employee>; then for
    each returned Employee pojo, I call a method getNumProjects() to get the count(*) information.
    I had an extra column "numProjects" in the Employee table and in the Employee descriptor, and
    I set this attribute to be "ReadOnly" on the Workbench; (the value for this dummy "numProjects"
    column in the database is always 0). So far this works ok. However, since the numProjects is
    transient, I need to set the query to refreshIdentityMapResult() or otherwise the Employee object
    in the cache could contain stale numProjects information. What I worry is that refreshIdentityMapResult()
    will cause the query to always hit the database and beat the purpose of having a cache. Also, if
    there are multiple concurrent queries to the database, I worry that there will be a race condition
    of updating this transient "numProjects" attribute. What are the better way of returning this kind
    of transient information such as count(*)? Can I have the query to return something like a tuple
    containing the Employee pojo and an int for the count(*), rather than just a Employee pojo with the
    transient int inside the pojo? Please advise.
    I greatly appreciate any help.
    Thanks,
    Frans

    No I don't want to modify the set of attributes after TopLink returns it to me. But I don't
    quite understand why this matters?
    I understand that I can use ReportQuery to return all the Employee's attributes plus the int count(*)
    and then I can iterate through the list of ReportQueryResult to construct the Employee pojo myself.
    I was hesitant of doing this because I think there will be a performance cost of not being able to
    use lazy fetching. For example, in the case of large result sets and the client only needs a few of them,
    if we use the above aproach, we need to iterate through all of them and wastefully create all the Employee
    pojos. On the other hand, if we let Toplink directly return a list of Employee pojo, then we can tell
    Toplink to use ScrollableCursor and to fetch only the first several rows. Please advise.
    Thanks.

  • What is the best way to display a Interactive Report having 20 columns

    Hi,
    I am having a Interactive Report having many columns (around 20).
    What is the best way to display that report...by default we have to scroll it horizontally to see all the columns.
    I want to avoid Horizontally Scrolling.
    Thanks,
    Deepak

    Hello Deepak,
    You mean apart from using a smaller font size or a bigger monitor?
    You can think about combining / wrapping columns (so more data in one column).
    Or hide some less important data and show that only on demand.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Best way of making filter in report!

    I have a report! And I need make some filter tool!
    What is the best way to do this? Is there any APEX tools to do this?
    Regards,
    Kostya

    I have a report! And I need make some filter tool!
    What is the best way to do this? Is there any APEX tools to do this?
    Regards,
    Kostya

  • What is the best way to have multiple devices on the same account so we can still share the same library.  Right now I have 7 and I believe it's causing them to malfunction.

    I have multiple devices on the same itunes library and they all starting to have the same issues.  Not recognizing numbers previously stored, not sending/receiving tests.  Do I need to get everyone separate itunes accounts? 

    What is the best way to set up itunes on our home network? 
    One iTunes library per person.  One iTunes account per person.
    If people wish to share songs, they can make copies.
    When the inevitable day comes when the kids get older, you will not have to come back here and post asking how all that stuff can get separated!

  • Best way to have multiple arrangements in one project file?

    Hello everybody,
    I am trying to figure out a smart way of having multiple arrangements associated with one project. More importantly, this would allow me to have multiple arrangements associated with the same pool of audio files in one audio window -- without needing to import/export audio.
    In DP this is achieved with multiple "sequences". I am aware this feature is not in Logic. However, perhaps there is a way to achieve a similar process?
    I guess a not-so-elegant approach would be to simply save a new song; however, if I want to use new song audio files in the old song, i'd have to import the new song audio files to the old song. Not a big deal, I guess.
    Thanks,
    D
      Mac OS X (10.4.5)  

    Thanks for responding Justin & David,
    Let me to try to better explain what I am trying to achieve.
    (Currently my problem is that I am thinking in the "workflow language" of DP, trying to figure out an analogous "translation" in Logic. For those familiar with DP, I am simply wanting to create a new sequence, within the same "song" file.
    Let's say I create a bunch of audio tracks, and compile them into arrangement A. I would like to work on a new idea that may be part of the final piece; So, I would like to have a clean, new arrangement page where I can put some of the previous audio files generated & used in arrangement A, as well as make some new ones. I'll call this arrangement B. So, in other words, arrangement B is a fresh new arrangement page that uses audio files from arrangement A as well as new ones.
    If any previous/current DP users know the best way of approximating DP's use of multiple sequences, I'd love to know what you do.
    I will explain what I am able to do if I were in DP (for the sake of communicating my problem, but not intended to begin a DP vs. LP thread).
    I will use Logic terminology, but DP concept:
    In DP, one can have multiple Arrangement windows that share a pool of audio files from one Audio Window. This allows one to try different arrangements, without keeping track of new/old audio files; and without needing importing and exporting them between songs.
    I have been reading the Project Manager section in the Logic manual. (By the way, I am not seeking a DP functionality in Logic; I am seeing how one achieves a similar workflow approach in Logic.)
    I realize I cannot even explain myself well. Perhaps I should consider the concept of sub-arrangements, and master arrangement. I guess, sub-songs, and work-in-progress master song. The master songs should have all audio files, and sub-songs have whatever audio files were created while working on that particular sub-song. So, with this, whenever I want to go back to master song, I've got to import the audio files from the sub-song.
    This may make sense - & may work smoothly. I've got to try it out.
    (Btw, David, I captured a screen shot, but I don't know where/how to post it.)
    A major thanks to all who have the patience to read so many words for a one word sentence.
    Thanks,
    Danny

  • Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic. can anyone tell me what is the best way to clone the environment, can I just tar the weblogic file syste

    Hi, we need to create the test environment from our production for oracle AP Imaging. we have soa,ipm,ucm and capture managed servers in our weblogic..
    Can anyone tell me what is the best way to cloning the application from different environment, the test and production are in different physical server.
    Can I just tar the weblogic file system and untar it to the new server and make the necessary changes?
    Can anyone share their experiences and how to with me?
    Thank in advance.
    Katherine

    Hi Katherine,
    yes and no . You need as well weblogic + soa files as the database schemas (soa_infra, mds...).
    Please refer to the AMIS Blog: https://technology.amis.nl/2011/08/11/clone-your-oracle-fmw-soa-suite-11g/
    HTH
    Borys

  • Best way to have internet only wireless network

    Our current way of configuration for this is standalone ap's with multiple ssid's. The main network ssid's are on the 10.0.0.0 networks. The internet only ssid is on the 192.168.1.0 network. ( this is a wireless network only,no wired) They all get there dhcp address from a layer 3 switch. To prevent the wireless 192.168.1.0 intenet only network from getting to the 10.0.0.0 networks, we just put a simple source & destination deny acl on the in vlan interface of the 192.168.1.0 network on the layer 3 switch.
    Now that we are impementing a Cisco 2504 controller, the management and ap manger are both on the 10.0.0.0 network.( both on port 1 with dynamic ap manager enabled)  I can setup as many ssid's on the 10.0.0.0 network and they all work fine. But when I setup the 192.168.1.0 internet only ssid it will not connect. I'm assuming that its because the 192.168.1.0 network or anyone trying to connect and use that network has to go through the controller located on the 10.0.0.0 network. I'm thinking that the acl on the vlan interafce is the problem.
    Please correct me if i'm wrong here on any of the above thinking. So, if I'm correct, what is the best way to setup a separate internet only network through the private networks? I'd appreciate any advice on this subject as I'm new to the lan controller way of doing things.
    Thanks

    So it should be working, you may need to disable proxy on the WLC.  Controller > Advanced > DCHP and uncheck the proxy box.
    If you do this, you need to make sure you have ip helper-address configured under the L3 interfaces
    HTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered

  • Best way to have an iMac second monitor and Thunderbolt daisy chain?

    I'm getting new iMacs for my school lab & wish to daisy chain with Thunderbolt cables into pods of 6 for backing up. I also want to run a second monitor with each iMac. What is the best way to do this since both Thunderbolt ports will be used? USB 3.0 to HDMI?

    Canadian Tech Teacher wrote:
    By "pods" I had meant creating little LAN's of 6 computers connected to a Thunderbolt drive but I've been doing a lot of reading and now I'm wondering about whether that can actually be done?
    The only Mac to Mac connections that Thunderbolt supports that I know of are target disk mode & target display mode, neither of which supports a daisy chain topology or is suitable for a multi-host LAN. (Only one Mac can be the host in either of these modes.)
    However, if you want to crete six computer LANs for backups, you could use traditional Ethernet or WiFi LANs & (for instance) a large NAS drive array, or Airport Extreme Base Stations with one or more USB drives attached to them. You could also use Time Capsules, but that is more expensive than going with AEBS's & attached drives. Obviously, wired LAN's would be more suitable for multiple "pods" of six Macs, both because of better reliability & elimination of WiFi channel contention that would show down wireless throughput.
    Of course, this isn't as fast as a Thunderbolt drive connected directly to a Mac, but the only way I know of to do that is by connecting to one Mac at a time, which probably would negate any backup copying speed advantage.
    Thunderbolt drives (& cables) are expensive so their use is really only justified where very high speed data transfers are necessary. If you don't need that, you might consider a simpler solution of one (or for redundancy two) USB 3.0 drives per iMac, since they are relatively cheap & still offer high speed data transfers.

Maybe you are looking for

  • ~~~how can i view a pdf file in a servlet?~~

    hi.. i just need to view the .pdf files in a servlet page.all the pdf files are stored in my web module(i am using the glassfish server).can anybody tell me how to do it? thanks a lot....

  • Anchor objects on spread don't appear in pdf

    CS5 / Mac 10.6.4. Bug? I have multiple anchored objects in a long document. If the anchor reference is on the same page as the anchor object, all is fine on the pdf. If the anchor reference is on the opposite page (of a spread) then the anchored obje

  • Can i use the bridge outside my wifi connecion?

    can i use the blackberry bridge outside my wifi connection? because i am buying a playbook and i want to understand if you can do that please help me... thank you

  • Mac wont boot up

    When i turn the mac on it freezes and the boot loading is continous, but it isnt the boot load at the bottom of  the screen its like the one that cirles, i don tk oiw what too do, im writing from the reboot help link but other than this i cannot acce

  • Mail delivery error with 5510 e-print. updates and connection are ok. friend has same problem.

    I have checked all of the updates and connections for my new printer.  As far as I can tell, I've checked everything that needs to be checked and all is good.  But, I still get the Mail Delivery error when e-printing.  And my friend has the same prob