LOV in select box based off of the group the current user is in

Hi,
I need a drop down to display status codes for a user but it that user is a manager then I only need the approval codes to show up. IE: A user will create a record and slect New, Pending Approval, Inprocess and Completed. A manager will see the coes to Approve or Reject. At least that's what I need to happen.
I have been trying to do something like this in a selection list(drop down) in it's LOV section:
DECLARE
VAL BOOLEAN;
BEGIN
VAL := APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=>'Managers');
if VAL = true then
select CODE display_value, STATUS_CODE_ID return_value
from STATUS_CODES
where STATUS_CODE_ID in (3, 4)
order by 1;
else
select CODE display_value, STATUS_CODE_ID return_value
from STATUS_CODES
where STATUS_CODE_ID in (1, 2, 5, 6, 7, 8)
order by 1;
end if;
END;
When I run the page it pukes all over itself. Can anyone help me please? Here's the errors:
So for the 1st error, I take it I need a variable to hold each value it's going to return? Is there any easier way to do this? Even if I do change the declarations and add more value holders and change the select statement to stuff the values "into" the variables I declare, how do I return them to the DISPLAY & RETURN values that a LOV expects? IE: get them out of the anonymous block?
ORA-06550: line 1, column 182: PLS-00428: an INTO clause is expected in this SELECT statement ORA-06550: line 1, column 345: PLS-00428: an INTO clause is expected in this SELECT statement.
Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin DECLARE VAL BOOLEAN; BEGIN VAL := APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=>'Managers'); if VAL = true then select CODE display_value, STATUS_CODE_ID return_value from STATUS_CODES where STATUS_CODE_ID in (3, 4) order by 1; else select CODE display_value, STATUS_CODE_ID return_value from STATUS_CODES where STATUS_CODE_ID in (1, 2, 5, 6, 7, 8) order by 1; end if; END; return null; end; begin wwv_flow_utilities.g_query := x; end;".
Error: ORA-01403: no data found performing List of Values query: "DECLARE VAL BOOLEAN; BEGIN VAL := APEX_UTIL.CURRENT_USER_IN_GROUP(p_group_name=>'Managers'); if VAL = true then select CODE display_value, STATUS_CODE_ID return_value from STATUS_CODES where STATUS_CODE_ID in (3, 4) order by 1; else select CODE display_value, STATUS_CODE_ID return_value from STATUS_CODES where STATUS_CODE_ID in (1, 2, 5, 6, 7, 8) order by 1; end if; END;".
Thanks for your help in advance!
Dave

But, when I run it in toad(im in our apex db), it throws an error.
No, it raises an exception, just as it would in SQL*Plus.
I take it APEX text boxes where you enter code in, are somehow specially parsed?
In most places in Application Express where it lets you enter anonymous blocks, it puts more code around it to be able to use it in the intended context. Sometimes that means treating the code as a boolean function, sometimes it does other stuff. In this case it has to turn the block into a function that returns a SQL query which can then be parsed.
Scott

Similar Messages

  • After creating a searchable database I am unable to search documents based off of the bates number.

    I just finished creating a searchable database in Adobe Acrobat Pro and it finds documents based off of search terms fine. It does not however locate documents based off of the Bates number that I am using as a search term. Why won't it let me do this?

    Hi Dodu.NET,
    Please refer the Kb Doc : http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.
    Please see Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs
    In addition you cna try these steps :
    > Enable the hidden Admin Account on Windows 7 ( Ref :  http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/ )
    > Disable all Non-Microsoft Startup Services. (Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
    > Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
    Reboot and try installing in the new enabled Admin user account and check.

  • I just bought a macbook pro and want to use my own iCloud account for my iPhone. How do I sign off of the current account on my iPhone and sign in with my own iCloud account?

    I just bought a macbook pro and want to use my own iCloud account for my iPhone. How do I sign off of the current account on my iPhone and sign in with my own iCloud account i set up my mac?

    On your phone, Go to "Settings", "iCloud", scroll to the bottom and "sign out."  Assuming you have the the account password/security info of the current account, it will delete everything iCloud related upon your approval (don't worry, everything will remain in the cloud.)  Once signed out, in the same settings location (under "Settings", "iCloud") sign in using your Apple ID and Password.
    Hope this helps.

  • Query to get objects list for which the current user has 'SELECT' privilege

    Hi,
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
    USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
    ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
    If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
    If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
    From these findings, I have composed below query
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
    Have I got user's all prvilege details? should I look some other system views?
    How to exclude system table privileges details?
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
    What about Public role in Oracle? Should I consider public role here?
    Oracel Version :11g
    I want make this query to work on Oracle 8i or above version
    Thanks

    >
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
    >
    You will need a hierarchical query to do that.
    Try this script for Listing privileges recursively for Oracle users
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html

  • The selected folder does not contain the current site's homepage

    dreamweaver displays the following message when editting some
    sites:
    "WARNING: The selected folder does not contain the current
    site's homepage. The site map cannot be built."
    Then my remote info is cleared!
    I know I'm obviously not doing something, but there is no
    need to clear my remote info!!
    edit: I've selected my home page, but this still doesn't
    explain why Dreamweaver feels the need to erase my remote
    info!!!

    > Then my remote info is cleared!
    Huh?
    This only means that you have not told DW which page is your
    home page.
    Find it in the local file list, and use the right-click
    context menu to so
    designate the file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ogre11" <[email protected]> wrote in
    message
    news:f2293h$7lg$[email protected]..
    > dreamweaver displays the following message when editting
    some sites:
    >
    > "WARNING: The selected folder does not contain the
    current site's
    > homepage.
    > The site map cannot be built."
    >
    > Then my remote info is cleared!
    >
    > I know I'm obviously not doing something, but there is
    no need to clear my
    > remote info!!
    >

  • Microsoft Word Has Not Been Installed for the Current User

    Hi, everybody
    I'm just starting our attempt to put together ZfD app packages for MS Office 2007. I've tried 2 different route with poor results for each. I'm looking for guidance and suggestions and, hey really, the simple final solution. :)
    Objectives: Each app package will install locally one of the Office apps (e.g., Word) if it is not installed and then launch it, otherwise it will launch it. It gets installed locally to the C: drive using all the MS default choices, but runs from the desktop ZEN/NAL shortcut. All desktops are XP, not Vista or W7.
    Routes tried and failed...
    1) Simple app, uses distribution and run scripts to figure out if already installed, then installs using network shared drive and config.xml file for just the one app. The result ought to work -- no particular error in the package, those are fixed -- but what happens is something different each time with the MS setup.exe, and it never does complete without its own error (various and different each time). So, this appears to be completely unreliable because launching MS's setup.exe from a simple app is unpredictable and incomplete.
    2) Snapshot of a successful setup.exe and config.xml install. This ALMOST works... well it does in fact work but the snapshotted app gives an error once it finishes launching -- "Microsoft Word Has Not Been Installed for the Current User" -- and exits. From the research I've done on this message, the MS program sees the "wrong" Windows profile on the destination environment, compared to that in the snapshot, and figures it's now been installed from a bootleg copy of Office 2007.
    At this stage all I can think of is expletives. We've paid for everything, I've followed all the usual and customary steps, played by the rules, been polite (and also used the necessary computer swear words), and now I just want to insult everyone in Microsoft's marketing department for ruining everyone's life yet again. Can't we just do this, is it too much to ask!?!
    Please help me. What is really going to work for distributing and maintaining Office 2007 apps using our ZfD environment? ALL USEFUL SUGGESTIONS WELCOME. Thank you. Bless you.
    -Kent S.
    Be strong as a ship and wise as a whale

    These questions are really best in the Microsoft Office Forums.
    These are MS Office Questions not ZEN Questions.
    Novell did not design Microsoft's Office Install.
    I have nothing against snapshots, but it does not work great with the Office
    installs, which you yourself know since you are posting here with problems
    based on that.
    And your other method you are trying with the break out is not working well.
    We also know that from experience.
    We can tell you that the way most people install it and the way most people
    succeed doing it, is by doing it the way recommended and designed by
    Microsoft.
    ZEN does that just fine.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.
    "KentFSmith" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Thank you, Grimlock (-Grimlock?-)
    >
    > Through a google search I encountered a very close suggestion, and the
    > poster said they couldn't remember the name of a MS utility but that
    > there was one that would break out the individual MSIs from the Office
    > 2007 setup.exe bundle. The dependent app appears to be a simple and
    > possibly elegant solution, but without a good way to break out the MSIs
    > I don't see how to do anything other than with a config.xml ('Config.xml
    > file in the 2007 Office system'
    > (http://technet.microsoft.com/en-us/l.../cc179195.aspx)).
    >
    > Do you know of that utility and where I can find it?
    >
    > There is a lot of history here now of just doing the individual
    > applications. Everyone gets Word and Excel, but much fewer get
    > PowerPoint and Access. All other reasons aside, a compelling one is the
    > reduced number of help calls to the Help Desk here. Occasionally we
    > also just run the whole Office install for someone who needs some of the
    > odd utilities, but that is easily cost-justifiable for us to break them
    > out as exceptions. Otherwise, we focus 90% of our support on just Word
    > and Excel and it pays off nicely.
    >
    > If we switch to putting full Office 2007 on all PCs then there may be a
    > better approach that include other tools than ZfD, such as the fact that
    > we replace 1/3 of all PCs in the organization each year (so that no
    > hardware is more than 3 years "behind"). We could put 1/3 of all Office
    > 2007 installs into the new PC image. But we still need to support all
    > the use of the apps after the install, so ZfD MUST work well, it simply
    > MUST work well or we're screwed, to use the vernacular. Also, just
    > switching from what we've been doing for years -- single app orientation
    > -- means introducing new-ish issues that have to discover and explain to
    > our comrades, and to adjust our orientation with unknown future costs.
    >
    > But that may end up being the simplest adequate solution. And that's
    > what I want.
    >
    > -K
    >
    > grimlock;1883526 Wrote:
    >> Craig Wilson wrote:
    >> > You should really focus on #1.
    >> > Snapshot is not the way to go.
    >> >
    >> > Details about what is Not working or what random behavior may help
    >> folks.
    >> > Ask in the MS forums may help too. dont' mention zenworks.
    >> > Just say you are installing as Administrator from a share and getting
    >> these
    >> > errors.
    >> >
    >> > While not 100% accurate, it should be good enough to get some good
    >> feedback.
    >> >
    >>
    >> Nor is installing 1 app at a time. Install the whole suite, have an
    >> icon for each app that runs the exe for that app with a dependency on
    >> the another app that points to the installer msi.
    >>
    >> If any user runs any app, it will run if the executable is there
    >> (meaning it's been installed). If the executable is not there then it
    >> calls the dependent application (the installer app) and installs it,
    >> and
    >> then runs it.
    >
    >
    > --
    > KentFSmith
    > ------------------------------------------------------------------------
    > KentFSmith's Profile: http://forums.novell.com/member.php?userid=2927
    > View this thread: http://forums.novell.com/showthread.php?t=391573
    >
    >

  • How to get the current User Id

    Hi,
    is there any system variable containing the current "user code"
    because, based on current user code, i would like to get the branch from OUSR, so that, one query can display only those records pertaining to that branch.
    Thanks & Regards,
    Kr

    Hi
    You can create a formatted search to get and the following query:
    SELECT T0.U_NAME FROM OUSR T0 WHERE INTERNAL_K = $[USER]
    Paulo Calado
    SAP Business One Forums Team

  • How to get the Current User on the UI page?

    All,
    Could you please let me know how to get the Current user on the UI input page , i need to display the current user ID when some one clicks the submit button, i want o get the current user to display in the javascript alert box.
    Edited by: 951930 on Oct 24, 2012 12:21 PM

    lucky,
    my schema has already defined for
    <user mapField="USER_ID" default="%CurrentUser"/>
    and in my UI page
    <td oraLabel="user"></td><td oraField="user" id="userId" ></td>
    and my javascript
    function showUserId () {                        
    var curUser = document.getElementById('userId').value;
    alert(curUser);
    and i have called this function on my submit button, but i am not able to get Current Logged User ID value to show in the alert nor able to show the current logged user on the UI page.
    my requirement is on custom UI page i need to show Current Logged User in one corner of the page and also need to show the same user in alert when he submits the button.
    Appreciate for the help.
    Edited by: 951930 on Oct 25, 2012 8:42 AM
    Edited by: 951930 on Oct 25, 2012 9:06 AM

  • Using the current user in a Report Trigger (After Param)

    I'd like to give certain access based on the user that is currently logged into the report. We want admin users to have full access while lower users to have access up to a certain date. I'd like to bring the user that is currently connected to be able to be brought in for code comparison.
    I'd like to following code to only apply to certain users:
    DECLARE
    currDate date := to_date(SYSDATE, 'DD-MON-YY');
    currDateMinusMonth date;
    currDay number := to_number(to_char(sysdate, 'DD'));
    currMonth number := to_number(to_char(sysdate, 'MM'));
    currYear varchar2(20) := to_char(sysdate, 'YYYY');
    beginDateInSamples date;
    endDateInSamples date;
    MaxDateOutSamples date;
    BEGIN
    currDateminusmonth := (currDate - 30);
    if(currDateminusmonth >= to_date('01/01/' || currYear, 'mm/dd/yyyy') and (currDateminusmonth <= to_date('03/31/' || currYear, 'mm/dd/yyyy'))) then
    MaxDateOutSamples := to_date('12/31/' || (currYear -1), 'mm/dd/yyyy');
    elsif(currDateminusmonth >= to_date('04/01/' || currYear, 'mm/dd/yyyy') and (currDateminusmonth <= to_date('06/30/' || currYear, 'mm/dd/yyyy'))) then
    MaxDateOutSamples := to_date('03/31/' || currYear, 'mm/dd/yyyy');
    elsif(currDateminusmonth >= to_date('07/01/' || currYear, 'mm/dd/yyyy') and (currDateminusmonth <= to_date('09/30/' || currYear, 'mm/dd/yyyy'))) then
    MaxDateOutSamples := to_date('06/30/' || currYear, 'mm/dd/yyyy');
    elsif(currDateminusmonth >= to_date('10/01/' || currYear, 'mm/dd/yyyy') and (currDateminusmonth <= to_date('12/31/' || currYear, 'mm/dd/yyyy'))) then
    MaxDateOutSamples := to_date('09/30/' || currYear, 'mm/dd/yyyy');
    end if;
    dbms_output.put_line('currDate' || '=' || currDate);
    dbms_output.put_line('currDateMinusMonth' || '=' || currDateMinusMonth);
              dbms_output.put_line('MaxDate' || '=' || MaxDateOutSamples);
    dbms_output.put_line('currMonth' || '=' || currMonth);
    dbms_output.put_line('currYear' || '=' || currYear);
    dbms_output.put_line('currDay' || '=' || currDay);
                   if :INEDATE > (MaxDateOutSamples) then
              srw.message (200,'Please run this report with begin date after'|| MaxDateOutSamples);
                   return (FALSE);
              elsif :INEDATE < (MaxDateOutSamples) then
              return (TRUE);
              end if;
    END;
    Any and all help is MUCH APRRECIATED!!!!!!!!!!!
    Thanks,
    Mike M

    to get the login of the current user you just use USER like:
    IF USER='MYLOGIN' THEN
    .. do some stuff
    END IF;btw.: What do you except your dbms_output.put_line to do ? This will not show anything to the screen.

  • How to reference the current user ID in an URL  iView

    Hi
      I have created an iview based on URL iview.
      I need to pass the logged on portal user id as parameter to a url.We are using EP6 SP2.
    Can any body help me in this regard.
    Regards
    Sayantan

    Hi SAYANTAN,
    You can create a dynpage that takes the current user id, use it to construct the url,
    and redirects to that url in doProcessBeforeOutput():
    public void doProcessBeforeOutput() throws PageException {
       Form myForm = this.getForm();
       IPortalComponentRequest request = (IPortalComponentRequest)this.getRequest();     
       IUser currUser = (IUser)request.getUser().getUser();
       String userid = currUser.getId();
       String url = "http://myUrl.com?userid="+userid;
       myForm.addRawText("<script>");
       myForm.addRawText("open(""+url+"","_self");");
       myForm.addRawText("</script>");      
    Hope that helps,
    Yoav.

  • Displaying the current users information instead of the value of the person who completed the form in the first place.

    I found this fantatic post regarding querying the user profile service 
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx?pi47623=2#comments 
    However i have an issue whenever the form is opened again either to view or edit, it displays the current users information
    instead of the value of the person who completed the form in the first place.
    Please help me, I'm turning more grey each minute

    I think it is how the current user information is stored based on your logic.
    You might be quering current value again when loading the form (Form load Rule).
    you have to tweak your logic, after the user submits the form you can set the username to the one who saved it.
    or in form load, write a logic to see if the form was not saved before and then query the username( by using internal field like "formstatue")
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • The current user username has not been granted the ADVISOR privilege despite having it !

    Hi,
    I'm trying to follow ML note 2499931.1 'Using Dbms_Advisor.Tune_Mview To Optimize Materialized Views For Fast Refresh' and am receiving an error suggesting the user4 does Not have the Advisor privilege
    despite the fact that it does. What am I missing ?
    Every note I've found so far suggests granting the privilege is the fix.
    I have and continue to receive the error.
    Version 11.2.0.3 on Redhat 5
    select * from dba_sys_privs where grantee = 'SOAUSER';
    GRANTEE                        PRIVILEGE                                ADM
    SOAUSER                        CREATE MATERIALIZED VIEW                 NO
    SOAUSER                        CREATE VIEW                              NO
    SOAUSER                        CREATE PUBLIC SYNONYM                    NO
    SOAUSER                        SELECT ANY DICTIONARY                    NO
    SOAUSER                        ON COMMIT REFRESH                        NO
    SOAUSER                        CREATE ANY DIRECTORY                     NO
    SOAUSER                        CREATE DATABASE LINK                     NO
    SOAUSER                        SELECT ANY TABLE                         NO
    SOAUSER                        ADVISOR                                  NO
    SOAUSER                        UNLIMITED TABLESPACE                     NO
    SOAUSER                        CREATE SESSION                           NO
    Error at line 2
    ORA-13616: The current user SOAUSER has not been granted the ADVISOR privilege.
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4869
    ORA-06512: at "SYS.DBMS_ADVISOR", line 1969
    ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 490
    ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 970
    ORA-06512: at "SYS.DBMS_ADVISOR", line 739
    ORA-06512: at line 3
    Thanks in Advance
    Ken

    Sorry, but the code I was receiving the error message for is essentially   the same as the example in the note. Assumed people would have access to the note.
    The statement is:
    variable foo varchar2(20);
    declare foo varchar2(20) := 'ken_foo';
    begin
    dbms_advisor.tune_mview(:foo,
    'create materialized view ken_foo
    as
    select 
    papf.rowid R_papf,
    paaf.rowid R_paaf,
    gcc.rowid R_gcc,
    papf.employee_number,
    gcc.segment4 cost_center
    from hr.per_all_people_f@atc_pp_to_ebs_atcllc papf,
         hr.per_all_assignments_f@atc_pp_to_ebs_atcllc paaf,
         gl.gl_code_combinations@atc_pp_to_ebs_atcllc gcc
    where papf.person_id = paaf.person_id
    --and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    --and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
    and paaf.default_code_comb_id = gcc.code_combination_id');
    end;
    Per another forum the answer appears to be that sys didn’t have the advisor privilege.
    Granted advisor to sys and ran the statement again as soauser and no error.
    Thanks
    Ken

  • Custom Search Results web part: show only sites wherein the current user has access

    Hi,
    I'm trying to create a custom Search Box and Search Results web part in one of my web application. The search result should show only sites wherein the current user only has an access. Do you have an idea how to implement this? Thanks. :)
    Regards,
    Napster

    Hi Napster,
    From my experience, we can only search the result which we have view permission at least.
    Please provide more information about your requirement if there is misunderstanding.
    More information about search result web part:
    http://technet.microsoft.com/en-in/library/gg549987(v=office.15).aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Get the last query from the current user

    Is there a way to get the last query of the current user, so every query could be log with a database trigger?
    Let's just say I execute:
    DELETE xxxx;
    I tried :
    SELECT T.SQL_TEXT FROM V$SQLAREA T where ADDRESS=(SELECT prev_sql_addr FROM v$session where audsid=userenv('sessionid'));
    But the result of this query is :
    'SELECT T.SQL_TEXT FROM V$SQLAREA T where ADDRESS=(SELECT prev_sql_addr FROM v$session where audsid=userenv('sessionid'))'
    Is there a way to execute a query that would return :
    'DELETE xxxx'
    Thanks

    You could join SQL_ADDR in v$session with ADDRESS in v$sqlarea to determine the SID that executed that SQL statement last. Note that PREV_SQL_ADDR in v$session will indicate the previous SQL he executed. Though you would have to look at these tables very often to get all SQL statements issued. One note here, I think if a different user ran the SAME SQL with just bind var differences the SQL_AREA will only show the last user’s information that executed it.
    BTW - it will show deletes also...

  • Testing a user group field with the current users group

    I have a list which has a column which contains groups.
    I want to create a view with a condition that the current users group should match the group of that field.
    for testing against current date, its [today]
    for testing against the current user, its [me]
    is that a standard way of testing against the current user.
    Tnx 

    Hi,
    According to your post, my understanding is that you want to create a standard view to filter on the current user’s group.
    Per my knowledge, it’s by designed that the [Me] function is only supported to filter on the current user in a SharePoint list view.
    If you want to filter on the current user group in the list view, I recommend that you can try to use the following methods to implement it in your environment.
    1.  Modify the query on a web part in SharePoint Designer:
    http://www.makdeniz.com/how-to-filter-sharepoint-2010-tasks-which-are-assigned-to-you-and-the-group-your-are-member-of/
    2.  To create a custom web part filter that will dynamically filter your content.
    http://christopherclementen.wordpress.com/2012/04/02/filter-a-list-dynamically/
    Whatever your choice, the query will be the following:
    <Or>
    <Membership Type=”CurrentUserGroups”>
    <FieldRef Name=”AssignedTo”/>
    </Membership>
    <Eq>
    <FieldRef Name=”AssignedTo”/>
    <Value Type=”Integer”>
    <UserID/>
    </Value>
    </Eq>
    </Or>
    For more information, you can refer to:
    http://christopherclementen.wordpress.com/2013/05/20/filter-on-current-user-and-current-user-groups/
    http://go.limeleap.com/community/bid/297846/Custom-List-View-Based-on-Current-User-Using-SharePoint-Designer
    http://spuser.wordpress.com/2012/01/13/filtering-list-items-in-sharepoint-based-on-current-user-and-current-user-groups/
    http://techtrainingnotes.blogspot.com/2012/10/sharepoint-filtering-view-by-group.html
    Best Regards,
    Yumi Fu

Maybe you are looking for