Form Query button only returns current user's entries.

Hello.
I've built a simple form that admins will use to insert some simple information into a table with. They'll insert the names of users, passwords, company info, email, logged in data and created time/by, updated time/by info. The inserting part works fine, but when they query the form, all they get are the records that they've entered. Any records that another user has entered do not show up. A report based on the same table shows all users in the table. The only thing I'm doing that may be of any problem is inserting created by and updated by as a hidden field and defaulting that value to wwctx_api.get_user. I don't see why that should be a problem. Is this a table permissions issue? I've provided manage access to all users of the form.
Thanks.
Kurt

Ton,
Shouldn't I be able to run that api as a default value for hidden fields, without it impacting the query? I've only attached that value to the created by and updated by columns and made the first insertable only and the second updateable, insertable. I guess I understand. I thought the default value would only be used for new entries, not for all queries. I guess I need to put in a request to our data modeler to add a trigger to the table (my hands are tied for table creation). Actually, I should be able insert some pl/sql code to the portlet to do this. Something to do with the ...after the processing the form option? After inserting the new record through the form, insert created by, created date or update updated by updated date. One thing I still don't get (having only worked with Portal a few days) is how do I make sure I'm associating this insert with the proper record? Thanks.
Kurt

Similar Messages

  • Display Community Names, only when Current User is a Member of that Community

    Greetings,
    I have a Community Site Collection(say ABC). Within that I have many Community Sub-sites(say X,Y,Z). I want to display the Community Sub-site Names in Community Home-page for the Condition,
                      When Current User name Exists in "Community Members".
    1.For that i have to access "Community Members" list from all Sub-sites(say X,Y,Z) within Community Site Collection(say ABC).
    2.Display Community Sub-sites Name Queried for Current-user Name Exists in "Member" Column of "Community Members" List
    Is this the Correct Solution for my Requirement? Or any Best Practice available? 
    Thanks in Advance for help

    Thanks for your Reply
    You mean I need to use Custom Webpart and Content Editor in my Community Homepage.
    1.Custom Webpart for displaying all Subsites within SiteCollection and
    2.Content Editor to hide Community name(By Using JavaScript)
    I can display all Subsites within SiteCollection using Spweb.getsubwebsforcurrentUser()
    But it seems complex to hide non-member community names. The reason is that for a particular user itself i need to filter out "Is this Current User Member of this Community?" for all Subsites
    Any better Solution? Hope it would be
    Thanks,
    Vinnarasi

  • Query that only returns items that will produce a result

    Thanks to Mack for his help yesterday.  I would really appreciate some help from anyone who is more SQL competent than I am.  I have an SQL problem that is just completely over my head.  I've created a nifty tagging system for the blog, that sorts by tags and by multiple tags, check out the beta here: http://committedsardine.com/blog.cfm
    When a user selects a tag, it adds it to the value list SESSION.blogTags.  If the selected tag is there already, it removes it.  When the list for tags pops up, I output all the tags, and show their state.  You'll see what I mean if you try it.
    What this leads to is the ability to select a group of tags for which there are no query results.  What I want to do is only show those that will generate results and how many results they'll show.  Like this, select "fluency" by itself there are 310 entries
    fluency (310) | digital (234) | writing (12)
    Once fluency is selected, there are 13 articles that ALSO are tagged by "digital", but none that are tagged by writing:
    fluency | digital (12) | writing
    I have a table called blogTagLinks, that is just for tying a tag to a blog.  It lists a blogID and a tagID.  Here is a sample of it for reference:
    blogTagLinkID
    blogID
    tagID
    4
    2
    2
    5
    2
    3
    6
    2
    5
    39
    1
    18
    49
    1
    1
    42
    1
    9
    44
    1
    19
    47
    5
    14
    48
    1
    22
    54
    16
    22
    I'm including all my sql, but the spot that I need help with is marked in red below:
    <!---if URL.tg is defined, check to see if it exists in the database, then the SESSION, and either add or delete it from SESSION--->
    <cfquery name="rsAllTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
    </cfquery>
    <cfset allTags = ValueList(rsAllTags.tagsID)>
    <cfif isDefined("URL.blogTags")>
        <cfif ListFind(allTags, URL.blogTags) NEQ 0>
            <cfif ListFind(SESSION.blogTags, URL.blogTags) NEQ 0>
                <cfset SESSION.blogTags = ListDeleteAt(SESSION.blogTags, ListFind(SESSION.blogTags, URL.blogTags))>
                <cfelse>
                <cfset SESSION.blogTags = ListAppend(SESSION.blogTags, URL.blogTags)>
            </cfif>
        </cfif>
    </cfif>
    <!---get a list of all available tags, tags that if added to the already selected tags, will return a result--->
    <cfquery name="rsAvailableTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
            NEED SOME STATEMENT HERE OF BLOGTAGLINKS TO DETERMINE WHAT TAGS WILL PRODUCE A RESULT
    </cfquery>
    <!---if searching by tags, get a list of the currently selected tags for display, the 0 returns an empty result if there are no tags--->
    <cfif isDefined("SESSION.sb") AND SESSION.sb EQ "tg">
        <cfquery name="rsTags" datasource="">
            SELECT tags.tagName, tagsID
            FROM tags
            WHERE tagsID <cfif SESSION.blogTags NEQ "">IN(#SESSION.blogTags#)
            <cfelse> = 0</cfif>
        </cfquery>
        <cfset variables.newrow = false>
    </cfif>
    <!---get the information for the blogs list, filtered by keyword or tag if requested--->
    <cfquery name="rsBlog" datasource="">
        SELECT blog.blogID,
            blog.storyID,
            blog.blogDate,
            blogStories.storyID,
            blogStories.blogTitle,
            SUBSTRING(blogStories.blogBody,1,200) AS blogBody,
            images.imageName
        FROM blog, blogStories, images
        WHERE blog.storyID = blogStories.storyID AND images.imageID = blog.photoID AND blog.blogDate < "#todayDate#" AND blog.deleted = 'n'
    <cfif SESSION.sb EQ "kw">AND  CONCAT(blogStories.blogBody, blogStories.blogTitle) LIKE '%#SESSION.blogKeywords#%'</cfif>
        <cfif SESSION.sb EQ "tg" AND SESSION.blogTags NEQ "">
                AND  blog.blogID IN (
                SELECT blogID
                FROM blogTagLink
                <cfif SESSION.blogTags NEQ "">
                    WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer" value="#SESSION.blogTags#" list="true">)
                    GROUP BY blogID
                    HAVING count(tagID) = #ListLen( SESSION.blogTags )#)
                </cfif>
         </cfif>
    ORDER BY blog.blogDate DESC
    </cfquery>

    There might be a single query solution but here's a query that you
    will need to run for each tag in the database (cfloop over all the
    tags) and will give you the number of blogs that have the selected
    tags + the current tag
    SELECT Count(*) AS blog_count
    FROM (
        SELECT blogID
        FROM blogTagLink
        WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer"
    value="#SESSION.blogTags#" list="true">)
             OR tagID = #currentTagID#
        GROUP BY blogID
        HAVING count(tagID) = #ListLen( SESSION.blogTags )#
             OR count(tagID) = #ListLen( SESSION.blogTags )# + 1
        ) AS blogs
    Mack

  • Infopath form data coming only for published user

    Hello,
    I have published one web browser based infopath form all the data is coming only for me ,but when other user opened that form with his/her loginid all fields are blank.Why is it so? Any help
    Thanks,

    Hi,
    According to your description, my understanding is that the form data cannot be displayed when other users accessed the form.
    As Hemendra suggested, please check if there are any rules in the form to display the data to specified users.
    To match a user with the current login user, then we can set the filter with AccountId inside the Login Account group to equal userName() to get the corresponding employee id.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can we make the Retake Quiz button only appear when user reenters the course?

    In a Captivate 8 Quiz, we need to force the user to close the course (so attempts are captured by the LMS) from the Quiz Results page. The Retake Quiz button cannot show at this time. However, when the learner reenters the course from the LMS, the bookmarking brings the user to the Results page again. We need a Retake Quiz button to only show when the user reenters the course, not on Quiz completion. Disabling the bookmarking disables the reporting of attempts. Does anyone know a way to make that happen or a workaround?

    Have a look at my blog post:
    http://blog.lilybiri.com/review-only-incorrect-slides-captivate-6
    Lilybiri

  • Using sp.js how to query list items where current user is the author

    using javascript, want to query list items where the author is the current logged on user.
    how to construct a caml query for author and logged on user?
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx

    Hi,
    Thanks for your sharing.
    Jason
    Jason Guo
    TechNet Community Support

  • Query that only returns certain fields in Java

    Currently I'm using a filter that identifies some keys, I then get all the keys and get a single value from each object. The rest of the object is quite large. I've seen references in passing on the ability to do this, using CohQL but I can't get it to work from Java.
    Basically, I want to do: "Select field from "Cache" where key='asdf'". I just want to get back the specific "field" rather than the whole object. How do I do this?
    Thanks.

    Hi,
    It should be easy if your object has a getField() accessor. Hope this helps ...
    http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/api_cq.htm#CEGDIJEC
    Using Path-Expressions
    One of the main building blocks of CohQL are path-expressions. Path expressions are used to navigate through a graph of object instances. An identifier in a path expression is used to represent a property in the Java Bean sense. It is backed by a ReflectionExtractor that is created by prepending a get and capitalizing the first letter. Elements are separated by the "dot" (.) character, that represents object traversal. For example the following path expression is used to navigate an object structure:
    a.b.c
    It reflectively invokes these methods:
    getA().getB().getC()
    For example ...
    Select the home state and age of employees in the cache ContactInfoCache, and group by state and age.
    select homeAddress.state, age, count() from "ContactInfoCache" group by homeAddress.state, age

  • GetRatingAverageOnUrl function of socialdataservice.asmx return an error if current user haven't rated that item

    I have an issue while reading rating data from a SharePoint list using
    socialdataservice.asmx. In particular I am trying to get average rating from a remote site using GetRatingAverageOnUrl() method. The issue is, while trying to use this method it return average rating for a particular list item only if current
    user have previously rated that particular item  else it shows an “object reference not set to instance of an object” error.
    While digging in deeper I found that this is actually the case with almost all the rating related functions of
    socialdataservice web service (viz. CountRatingsOnUrl, GetRatingsOnUrl, GetRatingAverageOnUrl etc.)
    Girish Kumar p Meena
    SharePoint Developer || Blog

    Having similar issues. Ever find out what is going on with GetRatingAverageOnUrl?

  • How to get the current user name in Provider hosted app using appOnlyAccessToken

    Hi, 
    Please help me, how to get the HostWeb UserName in Provider Hosted App
    i have Provider hosted App, and Anonymous Authentication is enabled on AppWeb, using appOnlyAccessToken
    Below code does not return current user who Log in in hostweb, it is returning
    SharePoint App (app@sharepoint)
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;
    Below code gives a blank name when Anonymous Authentication is enabled, if Anonymous Authentication is disabled
    app prompts for credentials 
    HttpContext.Current.User.Identity.Name
    Thanks
    Ram

    Hi,
    Since you are using a provider Hosted app if you want to get the current logged in name than do not use AppOnlyAccessToken else use AccessToken which is App + user Context AccessToken.
    then 
    Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    clientContext.Load(web.CurrentUser);
    clientContext.ExecuteQuery();
    clientContext.Web.CurrentUser.LoginName;will return proper user Name.
    HttpContext.Current.User.Identity.Name will never return the user as this object is related to IIS server of your App Server not sharepoint.you should set this as Anonymous in case of provider hosted app.you can download the below sample which uses the AccessToken which has user name in it.https://code.msdn.microsoft.com/Working-provider-hosted-8fdf2d95
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • 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...

  • Query Windows for current 'user' directory

    the system will have multiple users, test records are to be saved to the c:\Documents and Settings\<user>\Application Data\Pacing System\
          how do I determine this path for various users dynamically?
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]
    Solved!
    Go to Solution.

    I like the "Get System Directory" vi found in the File Constants subpalette of the File I/O palette.  It might be LV2009 only.
    Note that the Application Data directory is hidden by default in win7.  In win7 x64 this returns "C:\Users\<user>\AppData\Local\Pacing System\"  In XP, it's "C:\Documents and Settings\<user>\Local Settings\Application Data\Pacing System\"
    Yamaeda's registry approach gives me "C:\Users\<user>\AppData\Roaming"  Querying the "LOCALAPPDATA" or the "USERPROFILE" keys are also close to what you want.  If XP doesn't have these keys, you could also call a command line and query the %userprofile% environment variable.
    @Phil: I've had trouble with the "Default Data Directory" vi before (yesterday in fact).  It depends on an options setting within labview.  (Options>Paths),  I found that when I change this path in the options to use the system directory (uncheck "use default", click the exclamation point button, click on replace, then OK out of options), it gets reset to the default value when labview is restarted, even though it shows up in Labview.ini. This only happens if you use the system-specific path.  It appears to be an old problem:http://forums.ni.com/t5/LabVIEW/Custom-default-data-directory-path-reverts-to-Labview-default/m-p/36...
    -Barrett
    CLD

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Query  button in Master/Detail form

    Hello All,
    I created a Master / detail form...looks good for a blind query and for a specific column value...
    The problem is When the user selects query button ,how do I show records that the logged in user has created.
    Am already storing username in the table when the user inserts new record.
    Appreciate if you could send code ..if that's the choice to fix my issue..
    Thanks in advance
    Babu

    Hi,
    Write the following code in 'Query' event of the 'Query' button in your form ..
    p_session.set_shadow_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_USER_ID',
    p_value => portal30.wwctx_api.get_user,
    p_language => PORTAL30.wwctx_api.get_nls_language);
    doQuery;
    Replace 'A_USER_ID' with name of your user id field . I hope you have selected this field in your form and if not select this field & hide it in the form to make this code to work.
    -Krishnamurthy

  • Sending form via email - can't see user responses in returned PDF

    I created a form in Form Central.  I chose "save as PDF form" and saved it on my computer.  I attached this form to an email and asked employees to fill out and send back to me as a pdf.  When people email me back their filled in form, I can only see the responses when I click on each individual box.  When I print the form, the responses do not print.
    Would appreciate help since I distributed the forms to the company, and realized there was a problem as responses started to come in today (I only tested it on my computer and had no issues)
    I would appreciate any help you can give.  Especially:
    Why is this happening? 
    How do I prevent this in the future?
    Is there anything I can do to resolve the issue, without having to send out an updated form?
    Christine

    The users filling out your PDF are not using Adobe Acrobat or the Free Adobe Reader to fill out your form - FormsCentral forms have to be filled out in Adobe Reader or Acrobat.
    Also, make sure that you are also using Adobe Reader or Adobe Acrobat to view those PDFs.
    The way to resolve this is to instruct your users to use Adobe Reader to fill out the form.
    This FAQ touches on the issue, but mostly related to the Submit button not working, however the issues you describe are caused by not using Adobe Reader or Acrobat as well: http://forums.adobe.com/docs/DOC-2653
    Thanks,
    Josh

  • How can i get the order form to display only those fields selected by user?

    Hi everyone,
    I'm a newbee so please bear with me.
    I would like to create an interactive form in a multi-page format. I would like to display our fifty odd products, divided into 5 different categories. The client browses through these pages then selects those that he wants to buy.
    The interactive order form at the end should display only the client’s choices along with the Total purchase order.
    In short, a little like a on-line catalogue and cart/basket that we see while buying online.
    Now, I've created my pdf brochure, and I have the order form on page 12-13 at the end with the subtotal, Vat and Total ...all that's fine. My only problem is I want the order form to display only those items selected by the user and not the entire list of items as shown in my current order form.
    Have a look at my pdf here http://www.upperside.fr/vijee/mpls09ex/EXHIBITOR%20SPECIAL%20ORDERS2010.pdf
    Can someone please help me/guide me to the right resources that I need to look up to achieve my end result.
    Thanks a lot in advance.
    Vijee

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

Maybe you are looking for

  • How to get the most out of my setup...

    As most of you know if you've read previous posts, I've recently had trouble with my hard disks, so, after I finish this project I'm ready to 'revamp' my setup, so it's ready for future use and some advice would be really useful... I have a Mac Pro m

  • MAIL - crashing! Wha?

    My new(ish) iPhone's MAIL program crashes 3 or so seconds after being launched. I have a POP and a Yahoo account on it... but it goes down immediately. I was working fine for a month...and then POOF it's stopped working. Don't see any other issues wi

  • Is BSR comes with Soa Suite 10.1.3.1 or 10.1.3.3 Patch or AIA FP or Apserv?

    At what level of installing .. BSR available for using ? Application Server or Soa Suite 10.1.3.1 or Upgrade Soa Suite from 10.1.3.1 to 10.1.3.3 By applying 10.1.3.3 Patch or AIA Foundation Pack Edited by: sridhar rachumallu on Nov 22, 2008 11:15 PM

  • Adobe Creative Suite 5 Web Premium - Aufrüstung DW CS5.5

    Hallo - ich bräuchte mal dringend Hilfe - BITTE ich habe die Adobe Creative Suite CS5 Web Premium - und möchte diese nun nur mit DW CS5.5 aufrüsten - funkt das oder MUSS ich mir die komplette Suite CS5.5 besorgen??? Lieben DANK

  • HT1473 Help!! No artists list available when I try to sync!

    I have created a new iTunes account as my ex had it on his old computer. However when I select the music tab to sync to my iPhone, the screen just gives me the only option to sync the entire music. It doesnt give me a list of artists to sync! I can s