Data subsetting depending on connected user

hi there.
It is possible to define parameters in the where clause when defining a publication item. This parameter is resolved at runtime which provides the possiblity to send just a subset of the data of the given publication item back to the remote client.
In my case the subset is driven by the connected user. How can I configure this requirement. Do I need to define a own MyCompose class or even an own queue for this purpose?
thx for any hints.
j.

Here is a section on shared maps from the documentation. You accomplish your task by assigning the user to a group.
It is very common for publications to contain publication items that are used specifically for lookup purposes. That is, a publication item that creates a read-only snapshot. The server may change these snapshots, but the client would never update them directly. Furthermore, many users often share the data in this type of snapshot. For example, there could be a publication item called zip_codes, which is subscribed to by all Mobile users.
The main function of Shared Maps is to improve scalability for this type of publication item by allowing users to share record state information and reduce the size of the resulting replication map tables. By default, if you have a non-updatable publication item, it defaults to using shared maps.
Note:
Shared Maps can also be used with updatable snapshots if the developer is willing to implement their own conflict detection and resolution logic; however, normally shared maps are only for non-updatable snapshots.
Shared maps shrink the size of map tables for large lookup publication items and reduce the MGP compose time. Lookup publication items contain read-only data that is not updatable on the clients and that is shared by multiple subscribed clients. When multiple users share the same data, their query subsetting parameters are usually identical.
For example, a query could be the following:
SELECT * FROM WHERE EMP WHERE DEPTNO = :dept_id
In the preceding example, all users that share data from the same department have the same value for dept_id. The default sharing method is based on subscription parameter values.
In the following example, the query is:
SELECT * FROM WHERE EMP WHERE DEPTNO = ( SELECT DEPTNO FROM EMP WHERE EMPNO = :emp_id )
In this example, users from the same departments still share data. Their subsetting parameters are not equal, because each user has a unique emp_id. To support the sharing of data for these types of queries (as illustrated by the example), a grouping function can be specified. The grouping function returns a unique group id based on the client id.
There is also another possible use for shared maps. It is possible to use shared maps for shared updatable publication items. However, this type of usage requires implementation of a custom dml procedure that handles conflict resolution.

Similar Messages

  • Data Subsetting for users at runtime

    Hi all
    I have a requirement that I define data subsetting rules for the users based on some conditions which would be done at runtime.
    For ex. I want that whenever the user synchronizes the user should get the data for the last 60days which have been assigned to him.
    Can I have such policy defined.
    If anybody have implemented such thing, kindly let me know.
    thanx
    ramchow

    Hi Shaun
    Thanks for your prompt reply.
    I know this functionality and have been using it in my application from the beginning.
    But I have a requirement that instead of setting values through the control center which is more like static values for each user and application I could allow users to when they synchronizes then they should have the privilege to download on their conditions.
    For example user might say I want to download data for the last 60days.
    I appreciate your prompt reply but that did not solve my problem.
    Waiting for prompt reply again.
    Thanx and regards
    ramchow

  • History of number of connected users

    Hello,
    Do you know how to have the history of the connected users (the number )
    => The average of connected users, and why not the max number of users for a day.
    Thank's and regards
    Laurent

    Hi,
      generally this transaction is a little different in  use depending of SAP release you have, what you have to do is to open "Concurent User" MTE and in MTE details look on history data.
      But I guess I found better way to check same data -- just go to workload analysis (ST03N) -- there you can check value "Users per Instanse" for different periods what actually deliver the same data like RZ20 but in more convinient way (to my opinion)
    BR, Artem
    Remeber points

  • Data Subsetting using MDW

    I am using Mobile Data Workbench to create data publications for users on win32 laptops.
    While creating publication items, I would like to use parameters whose values I would like to specify using some variables, instead of manually keying them in for each user. Is there some way that I can specify the user name as the value for the parameter? Then I can use the same publication for multiple users and the data subsetting is done by the variable which gets its value dynamically from the user name to whom it is published.
    Thanks for your replies

    I have not done this with MDW as such, but to include user based data subserring do the following
    1) work out how you are going to identify the records for a particular user for the publication items in question. I know this sounds a bit obvious, but it is worth giving this some thought. Is the data directly in the table/view the publication item is based on? do you need to include some subselect to obtain the correct values (consider building a database view to help with this)? are the columns and joins all indexed (otherwise you will have performance problems in the compose process/download)
    2) the basic template given by the system for a publication item is 'SELECT * FROM <schema_owner>.TABLE' change this to something like one of the following (dependant on circumstance)
    'SELECT * FROM <schema_owner>.TABLE where USER=:user'
    'SELECT * FROM <schema_owner>.TABLE where ID IN (select id from <schema_owner.view where USER=:user)'
    'SELECT t.* FROM <schema_owner>.TABLE t, <schema_owner>.TABLE2 t2 where t1.ID=t2.ID and t2.USER=:user'
    all of these will work.
    NOTE <schema_owner> is needed for ALL objects included in the template
    NOTE the colon (:) used to identify the bind variable
    3) publish the new/altered publication items, and you will find in the mobile manager that under the users>applications tab, there will be a link in the data subsetting tab (probably called the oracle lite client type). click on this and you will get a screen with all of the bind variables you have defined for the application, with a place to add in the values for that user.
    Couple of points
    a) all bind variables (or data subsetting parameters) are held and tested as VARCHAR2. If you are matching to numerics in the base tables, do 'where ID=TO_NUMBER(:user)' otherwise you will get typecasting and this will affect your performance
    b) run conspef on the resultant publication items and check all parts for performance. The apply process uses the publication item priimary key for its selection, whilst the compose uses the selection criteria. You may need to tune for both options
    c) you can include multiple subsetting parameters for an application, but this may give more of a maintenance overhead
    d) the subsetting parameters are part of the application. If you have two or more applications being used by a user, you will have to include them in each
    e) the subsetting parameters can be included in the user setup ini script run by wsh as well
    [DATABASE]
    TYPE=ORACLE
    [USER]
    NAME=NBURROWS
    PASSWORD=NBURROWS
    ENCRYPTED=FALSE
    FULLNAME=NBURROWS
    PRIVILEGE=C
    [USER]
    NAME=CTOMKINSON
    PASSWORD=CTOMKINSON
    ENCRYPTED=FALSE
    FULLNAME=CTOMKINSON
    PRIVILEGE=C
    [ACL]
    APPLICATION=/fusionbci
    ROLE=DEFAULT ROLE
    USER=NBURROWS
    ACCESS=ENABLED
    ROLE=DEFAULT ROLE
    USER=CTOMKINSON
    ACCESS=ENABLED
    [SNAPSHOTVAR]
    NAME=V_PDA_FBS_SITE_DRIVER
    PLATFORM=WIN32
    VIRTUALPATH=/fusionbci
    USER=NBURROWS
    VAR=BI_ID,124547
    USER=CTOMKINSON
    VAR=BI_ID,119489

  • I've jail break Iphone 3GS. i tried to restore setting (erasing all data and media) without connecting to computer/itunes. When it starts it freezes by showing apple logo only. what is the solution.

    i've jail break Iphone 3GS. i tried to restore setting (erasing all data and media) without connecting to computer/itunes. When it starts it freezes by showing apple logo only. what is the solution. please help me out. Here i don't have iphone service center too.

    Although not illegal, Apple discourages a user from modifying the iPhone OS in any manner, including "jailbreaking".  Apple feels so strongly about this that discussing methods to assist a user trying to either jailbreak or "unjailbreak" an iPhone are prohibited.

  • How to set Data Subsetting Parameters in MOBILE SERVER

    Hello.
    How can I set data subsetting parameters in Mobile Server with patch 5.0.2.10.0 NLS.
    From Mobile Server "Control Center" -> "Applications" it's not appears at left screen the following field:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser appears this error message:
    "http://120.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp"
    Have you any idea for this problem?
    Thanks All.

    Thanks Oliver,
    I have to go in control center in "applications tab" then i have the list of application and i edit one of them, on the left clic Data Subsetting it's not appears.
    The following it not appears:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser (internet explorer) appears (at buttom on the left browser) this error message:
    "error http://127.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp missing link".
    Whereas (Oliver's solution) in Mobile Server "Control Center" -> "Users Tabs"
    i have the list of users go and i edit one of them, on the left clic Data Subsetting then clic on the right pan platform and then i see but not parameter are definited.
    Help me please.

  • Using 2 data (SAP Netweaver BW) connections in Xcelsius dashboard

    I have a situation when using 2 data (SAP Netweaver BW) connections in Xcelsius dashboard.
    Break-down of issue:
    I have a toggle button in our Sales dashboard which displays Top Ten Customers versus Bottom Ten Customers.  I use the value of the toggle button to trigger the data connections.  When a user clicks the toggle button for Top Ten Customers the value of the toggle button would be a 1 which would trigger a BW query to capture sales data for the Top Ten Customers.  When a a user clicks the toggle button for Bottom Ten Customers the value of the toggle button would be a 0 which would trigger a BW query to capture sales data for the Bottom Ten Custoemrs.  NOTE: all the key figures in both querys use a scaling factor of 1000.  So for example, if invoiced sale has a value of 100,000 the scaling factor of a 1000 would display this key figure with a value of a 100.  The issue I am having with the dashboard is when I click the toggle botton for the Top ten Customers, the value shows as 100 and if i click the toggle button for Bottom ten Customers the value would show as 100,000.  I need the toggle button to show the values using the scaling factor coming from the BW queries for both Top Ten Customers and Bottom Ten Customers. It's only using the 1000 scaling factor coming from the Top Ten Customers.
    Any help on this issue would be graetly appreciated... 
    Thanks,
    Joe

    Hi, I get both. I think the errors are connected. On the one hand it is not possible to create any SAP NetWeaver BW connection, because you cannot enter the connection details- just as in the screen above. The only option you have is to use the "browse" button, but then the blank error appears.
    When trying to open a Dashboard from Portal you have to use SAP->Open and then SAP GUI should appear, but here I get the error "Could not open from SAP" instead. I have installed BEx and SAP GUI of course, reinstalled all of them two times just as recommended above, also reinstalled MS Excel, Flash, Java. Furthermore I tried to repair the installation and to change between different editions, personal, departmental etc.
    In the meantime I think it should not be possible at all to connect to BW with the departmental license key. Can somebody confirm that?

  • Data subsetting setting parameters

    I'm new to Oracle and have just taken over a project using Oracle Lite 10g.
    I'm trying to implement data subsetting. I've set up the snapshot using the packaging wizard:
    SELECT * FROM DEVELOPMENT.PERSONNEL p WHERE p.TestingCompanyUniqueID = TO_NUMBER(:companyID)
    where companyID is the parameter I want to use. I now want to set values for that parameter for each user. When I go into the web to go interface, this parameter does not appear. From my understanding it is created up when the application is published. Am I missing something here?
    Thanks
    Lynne

    I don't know if subscription parameters are supported in the MDW (mobile database workbench), I don't use it, but you can try it.
    But the most reliable method IMO is the Java API (you can find the API documentation in olite\Mobile\doc\javadoc directory). To create and set a parameter for given user, try to use this method:
    ConsolidatorManager CM = new ConsolidatorManager();
    CM.openConnection(CONS_SCHEMA, PASSWORD, JDBC_URL);
    CM.setSubscriptionParameter(publication, clientid, param_name, param_value);

  • How to control the data to display for every users?

    Hello Experts,
    Im creating a module in ORACLE forms6i and I want to control all the data to display for every USERs. I have 1 Table and it has 5 columns.
    My module has 5 columns and 5 rows of records to display.
    Problems:
    For USER1, I want to display all DATA in column3 and column4 only and all remaining columns shoud be null.
    For USER2 , I want to dislplay all data in Column1 only and all remaining columns should be null.
    How can i control all the data to display for each columns? Can you help me please. Im using the Clear_Items but its not working only the first row are null but the remaining
    rows has its records.
    Thanks.
    Lala

    I understand that you want certain columns not to show at all on the canvas when a certain user opens the form. Then, in the when-new-form-instance trigger, you should set_item_property(x_item, visible, property_false) for each item you do not want to be dislayed, depending on the user.

  • Oracle Lite: How to create data subsetting parameters?

    I need to know:
    how to create data subsetting parameters?
    I need these parameters for use of a restricting predicate in an item publication.
    I were looking the forum and i found topics about "how to set?" but i don't found how to create a data subsetting parameter.
    I am replacing SQL server 2000 and SQL server CE by oracle 9i and oracle lite 5.0.2.
    Thanks in advance.
    PCID

    Had problems with the parameters shown on pages webtogo in the datasubsettings section because none of them were "defined", but in sections 1.4.1.2 I found these lines:
    Template: select * from master.task where CustCity = :city
    Then click OK. This brings you back to the previous screen. The template query contains a variable (subscription parameter) named "city". Later, when you provision the application to a user, you will be prompted to enter the value for it.
    I found out how to put a parameter to restrict registries that download to the pocket pc from each user.
    Thank you very much!!!

  • Data Subsetting parameters

    Hello,
    Where does Oracle store the data subnetting parameters in the "Mobileadmin" schema? I'd like to know so I can validate the parameter for each user without having to go through each one on the Mobile Manager.
    Thank you.

    The data subsetting parameters used in each publication item are stored in c$all_pub_params.
    The values for each user are in c$all_subscription_params
    NOTE do not change directly through the database, as this would not work correctly. these tables do not have public grants by default, so if you want to examine the data programatically (we do as part of application publishing), then you will need to grant access/create synonyms if you code does not run as mobileadmin

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • One connection user with full rights for a bunch of schemas

    How can I give all rights of one user to another without declaring each object privilege one by one? For my application I would like to devide the data to maintain into four different schemas to. Never the less I would like to connect to the db by one account and have full access to all of the four schemas. My client denies to give the connect user DBA rights. The connection user is not allowed to have "ANY" grants, either. But my application often creates tables, views etc. and drops it when they aren't usefull any more. So it is nearly impossible to manage the grants on each db object one by one. So, how can I give a user all rights for a bunch of others?

    My program uses logical "firms" to allow separation of clients client data. Sounds like Row Level Security - or even Views - would be saving you some grief here.
    The most dynamic created tables are used to optimize performance for (sub-)queries builded at runtime by the user. Do you really have benchmarks to prove that building tables through dynamic execution of DDL results in faster response times than plain queries? Are the query structures some various that temporary tables won't do?
    Cheers, APC

  • How can we customize notification jsp according to connected user?

    We need to customize notification jsp according to connected user.
    we are trying get user method of (IWorkflowContext)httpSession.getAttribute("workflowContext")
    but (IWorkflowContext)httpSession.getAttribute("workflowContext") returrn null
    Jdev 10133 and soa suite 10131 on windows.
    our code fragment is
    HttpSession httpSession = request.getSession(false);
    if (httpSession != null) {
    IWorkflowContext ctx = (IWorkflowContext)httpSession.getAttribute("workflowContext");
    try
    if (ctx != null) {
    String bpmUser = ctx.getUser();
    out.println( bpmUser );
    else
    out.println("authFailed dididididi");
    Thanks for your help...

    Infact we need to Change Format/data of the pdf file wich comes with Workflow Notification PO "Response Required for PO Approval".
    I the pdf file attached is generated by "PO Output for Communication" Concurrent Program.
    Executable is "POXPOPDF" Execution File name is "PoGenerateDocumentCP" which is a java program.
    This prgram uses the following files to generate pdf output of draft PO output.
    DATA FILE:
    PO_STANDARD_PO.xml
    PO_STANDARD_PO.xsd
    TEMPLATE:
    PO_STANDARD_XSLFO.xsl
    I need to know any visual layout editor available to change contents/layout/data of this pdf.
    Regards,
    Usman
    Edited by: user10518960 on 01-Feb-2013 07:18

  • Master data time dependency

    Hi if i put the manager as employee in cube then we are loading the data from flat file full load then it will overwrite the manager name in cube for last month
    say i have manager name john for month 08
    i load the trans data from flat file it will take it
    now next manager name john now if i load the data it will overwrite, user want to maintain the history so that if i run the query for month 08 it should show me manager name john and if i run the query for month 09 it should show me manager name john. please help how to resolve this
    since making too many time dependent master data will over load the system so user do not want that. also is there any way to load delta from flat file in bw version 3.0
    i will reward 100% point if anybody can clarify the approach to make this happen
    soniya

    Hi,
    If you set the master data attribute as "time dependent" it will track such changes as well as validity dates.
    Of course, you would not make even the majority of master data time-dependent, but in cases where modeling calls for it (such as this), it probably should be utilized.  It will not "overload the system".
    Please be clear - while master data InfoObjects contain over-write functionality, an InfoCube does not.  Data loaded into a cube simply is an "insert".
    For your generation of delta, note that the ODS object contains a change log mechanism.  This change log can generate a "delta" from a flat file load or any kind of load.  This delta can then be used in other data loads sourced from the change log.
    Also, you might consider a technique to load a complete history of master data into an ODS object.  You can model an ODS without any key figures, but be aware the defauly will be "update", where the only complete history is in the change log.  You could implement a "technical key" in update rules, so that each record gets a unique identifier, preventing over-write.  Alternatively, if you are on BI in SAP NetWeaver 2004s, you can use a write-optimized DataStore object, which automatically assigns a unique technical key to each record (so that you have complete history), but has no change log.
    Thanks for any points you choose to assign -
    Ron Silberstein
    SAP

Maybe you are looking for

  • 'Disk full' message even though 14gb is shown as available by Finder

    I've started to receive a 'Disk full' message when every indication shows that I still have over 10GB of hard drive space available.  The bar at the bottom of the Finder window, the 'Get Info' screen, and Disk Inventory X all show that my space usage

  • UNAUTHORIZED:401

    Hi Experts, We are getting failed messages for the below error in integration engine .After manually restarting the messages processed successfully from integration engine .I am using PI7.1 version . Please suggest me any parmanent solution for this

  • Screws for Mac mini

    Does anyone know what size the four screws are for the Mac mini and if they are available anywhere ? There are three (3) short screws and one (1) longer one that connect the drive cage (DVD/HD) to the systemboard.

  • Intregration Scenario in Repository

    Hello all- I am very new to XI and i don't know if my question really makes sense,is it compulsary to create integration scenario for every collaboration that we plan,the reason being i have created all the message interfaces,mappings in my Integrati

  • Auto-detect displays not working in mountain lion

    I keep a VGA projector connected to my laptop and Mountain Lion seems to believe that it is on all the time. Thus, I'm stuck with windows off screen. Anyone discover any fixes? No menu bar monitor ajustment preferences appear, nor does detect display