af:query marks the DataControl as modified

Hi guys,
I am developing an ADF Rich Faces application with JDeveloper 11g. I am using <af:query> search forms. When I enter a value in some criteria field in a search form, then the corresponding DataControl gets marked as modified (DataControl.isTransactionModified() starts returning <true>). I suspect that this is because each setAttribute() method invocation through a value data binding marks the DataControl as modified. Quick query forms (<af:quickQuery>) do not mark the DataControl as modified.
I do not want the DataControl to be marked as modified because my application checks for pending changes this way (using DataControl.isTransactionModified() method). Note that the current status (enabled/disabled) of standard Commit and Rollback action bindings is wired to this method too.
Note, also, that the method ApplicationModule.getTransaction().isDirty() is not appropriate for checking for pending changes because when I create and insert a new empty row in some ViewObject then the Transaction object becomes "dirty" automatically without any real data modifications.
Does anybody know if I could either avoid or workaround this effect of <af:query> forms?
Thanks in advance.

We have this problem to. it must be a bug.
Also we had other problems when we have <af:query> in transaction forms like validations fire when 'Advanced search' button is pressed
So we splited query forms from transaction forms or put <af:query> in popup
we still use ApplicationModule.getTransaction().isDirty() since we want to know changes also for new rows (since you cant distinguish if data are added to new row or not)

Similar Messages

  • Getting the Publisher Last Modified Date to show up in a snapshot query?

    Hello,
    I have been requested to create a Snapshot Query of the latest content to a Publisher 6.5 folder. I created a Publisher Crawler to output data to the Knowledge Directory (KD), then created a Snapshot Query to point at the KD folder.
    I set it to use Object Last Modifed - but it pulls the last crawl date, and then tried File Modifed - which gives the date 01/01/00 12:00 AM, Published comes up with 01/01/00 12:00AM, Publisher comes up with a blank.
    Publisher itself has two time fields - Created and Modified On. I want to display Modified On and have no luck.
    Help!?
    Thanks,
    Victor

    edit: reading your post again, i'm not sure i understand. i am probably giving you bad info.
    Are you saying you want the KD card modified dates to match the content item modified dates? Thats not really how the portal works (although lots of people want it to work that way).
    The KD card modified dates reflect the last time the card was refreshed. (Useless, I know)
    Edited by: Joel Collins on Jul 21, 2009 5:58 AM

  • How do I change the underlying query for the task board (and backlog board) on TFS Preview

    All,
    We work with multi-area projects, each area representing a significant component within the project with its own release/iteration cycle. i.e. Several areas may be active at once, each with different iterations.
    When we look at the task board these take no account of the area being worked on. What I need to do is to be able to change the query behind these boards to point to a particular release/iteration for a particular area.
    Unfortunately there is no drop down selection on these pages to see this automatically so I need to be able to change the underlying query that populates these boards to get the the area and release/iteration that I need.... but I can't find where these
    are.
    Using multiple areas is actually highly frustrating with TFS Preview as it doesn't seem geared up at all to make it easy to switch between them... are we doing something wrong?
    I think I can do this by changing the current iteration - but I can't work out how to do this either once an iteration for a particular area has started.
    Can anybody help?
    Thanks

    It is not possible to modify the query behind the task board. If I understand you correctly, you would like to filter the task board by area path.
    In TFS 2012 we have repurposed the area path field to be the field that determines the team you are working on. We are continuously improving our product and being able to filter your task is one of the improvements that we are thinking of.
    Sorry I can't help you better than this for the moment.
    Please remember to mark the replies as answers if they help.
    Hi Ewald,
    We have a similar problem, see the thread "Best approach for multi-team/multi-projects." on this forum. I'm hopping you can help, since so far the different answers doesn't help.
    Best Regards,
    SYSOTI

  • How to use a query in the Print Layout Designer?

    I created a query with the query generator:
    SELECT T0.[Discount], T0.[NumOfDays], T2.[DocNum] FROM CDC1 T0, OQUT T2 INNER JOIN OCTG T3 ON T2.GroupNum = T3.GroupNum WHERE T2.[GroupNum]=T3.[GroupNum] AND  T0.[CdcCode] =  T3.[DiscCode]
    The result shows the cash discout (the days and the percentage) of every record.
    I need this query, because I want to design a sales order report.
    To show the payment conditions with cash discount I need to have the table CDC1 but when I create a new database field in the report I can't see that table.
    So I queried the table CDC1....
    Then I created a new database field and in the list box "table" I made the following steps:
    extras\customizing tools\user defined values - definition\search for saved query in user defined values
    But the problem is that I don't get the result of the query into my report.
    What's the problem? I don't know what I've done wrong...
    please help me

    Hi,
    I am creating the layout for a sales order which will be send to a customer.
    In that order the customer can see the payment conditions.
    It should look like this:
    net price: 1000,00 EUR
    19,00% taxes: 190,00 EUR
    gross price: 1190,00 EUR                          
    payment conditions:
    payable within 30 days net: 1190,00 EUR
    payable within 14 days with discount of 2 %: 1166,20 EUR
    to get the bold marked digits I need to have access on the following tables:
    OCTG and CDC1
    In the OCTG table I get the days (in this example 30)
    In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
    but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
    So what can I do to get this?

  • How to load a Query in the  bne_stored_sql in WEB ADI table.

    Hi folks ,
    I have a unique requirement as follow.
    I have created an VIEW , which is given in the Download WEB ADI integrator defintion.
    I am trying to query this view based in few search conditions thoughr a CO code. I am not used any time loading the Query in the bne_stored_sql table to achieve such funcaitonality.
    Please folks any inputs on this would be greatly appricaited.
    Thanks and Regards
    Raghu

    Hi,
    I am creating the layout for a sales order which will be send to a customer.
    In that order the customer can see the payment conditions.
    It should look like this:
    net price: 1000,00 EUR
    19,00% taxes: 190,00 EUR
    gross price: 1190,00 EUR                          
    payment conditions:
    payable within 30 days net: 1190,00 EUR
    payable within 14 days with discount of 2 %: 1166,20 EUR
    to get the bold marked digits I need to have access on the following tables:
    OCTG and CDC1
    In the OCTG table I get the days (in this example 30)
    In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
    but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
    So what can I do to get this?

  • How do I add a Voter to a Review Activity on a Service Request from an AD User Query on the Request Offering?

    I have the query set-up and it works fine, but I cannot map it to anything, I suppose because it is an object and not a simple string. I think I get the option to Map it to related items or configuration items in the Query itself maybe, I seem to remember
    seeing that, but I can not map it to anywhere on the Service Request or Activities in the Request Offering Set-Up.
    However, looking at my Update Object Activity in My Runbook, I do not see how to add a person to a review activity anyway.
    Can someone enlighten me?
    I do not know Powershell well enough to use it with SCSM or Orchestrator yet, and I am not even sure if we have SMLets so keep it simple if possible.
    Thanks for any assistance!

    More info:
    How to add a Reviewer to a Review Activity through Orchestrator
    http://www.scsm.se/?p=895
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    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]

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SQL Query Posting the Data Properly but Generating An Error

    I've created a SQL query to update records in a database.  While testing I used an Access database and it worked perfectly.  To go into production I've moved the data to SQLServer 2005 installed on my xMII server.  The SQL syntax is different for handling dates between the two databases so I modified my queries accordingly.  I now have:
    UPDATE ControlLimits SET Metric_ID='[Param.1]', CDate='[Param.2]', LCL=[Param.3], Mean=[Param.4], UCL=[Param.5]
    Where  (Metric_ID='[Param.1]' and CDate = '[Param.2]')
    CDate is my date field being passed in the format 'mm/dd/yyyy', the table field is formatted for datetime - the same as in Access.
    When running this query (with the [Param.x]'s being replaced with actual values)through SQL Server Management Studio on the xMII server, it works just fine.  When run as a query template, the data is posted properly to the table but the template returns a 'A SQL Error has occurred on query, The statement did not return a result set..' 
    Any ideas?
    David

    Udayan,
    You are absolutely correct!  When I did it in Access I was correctly using the Command mode.  When I moved to the SQL Server data source in my query template, I picked the Fixed Query mode by mistake.
    Thanks for your help!
    Regards,
    David

  • Problem of running the jump query from the result line

    Dear expert,
    I have a problem when running a jump query from the result line. Apparently, the values of the caracteristics haven't been sent to the jump target.  However, the configuration in RSBBS seems to be good as the jump works well from the other lines.
    Does anyone have some ideas on that?
    Thanks in advance!

    Hi,
    If you are supposed to bring across characteristic values to your target, then you will not be able to jump from the result line. The configuration expects that the values of the characteristic marked as being used in the jump are filled with unique values. When you use the result line as a source for your jump, the values in the result line will most likely be based on the sum of multiple characteristic values.
    Hth,
    -Jacob

  • How to turning the large dimension query in the Analyzer 6.2?

    Dear expert:I need to query a report in the Analyzer 6.2How to turning the performance in the large sparse dimension query in the Analyzer 6.2 and essbase 6.5.1? ---------------------------------------Report is look like: page : order_date sub_code item pur_date currency vendor measure ---------------------------------------dimension order is dimension(member number) Dimension typeOrder_Date(304) densemeasure(6) densecurrency(6) sparsepur_date(138) sparsevendor(135) sparseitem(253) sparsesub_code(151) sparsePlease help to slove the problem, otherwise I will be killed by customer.Thanks your very much.Phoenixsub_code

    Hi All,
    We got another idea to create new template and use it as "Current Default Workbook".
    Then it is showing latest date as we changed one of the Text element from "Display Status of Data" to "Display status of Data To".
    But the this change is showing to my user id only but not to the other users.
    We are selecting the tick mark for "Global Default Workbook", but this tick mark is going away after each refresh. I think if this tick mark is holds permanently, my problem will solve.
    Please suggest me if you have any ideas to resolve this issue....

  • Querying from the result of another query.

    The following query gives me a list of FaxIDs whose file path column does not start with C:\ and that haven't already been identified according to the identified table.
    SELECT [FaxID] FROM [FaxQueue]
    WHERE [FilePath] NOT LIKE 'C:\%'
    AND [FaxID] NOT IN (SELECT [FaxID] FROM [Identified]);
    I have some more code that send's an email to alert whoever that the following records don't have a correct filepath.
    Now the list of FaxIDs need to be re-used to insert into the identified table. The identified table has just one column which keeps track of which FaxIDs that have been identified as not having a falid file path.
    INSERT INTO [identified] VALUES (???)
    I don't know what to stick in for the ?s... do I simply copy and paste my first query into the question marks?
    How can I "save" the list of FaxIDs from the first query into some kind of data structure so I can send them in an e-mail (sp_send_dbmail)?
    -Nothing to see. Move along.

    We have 3 possible ways,
    1. As subquery.
    SELECT * FROM (
    SELECT [FaxID]
    FROM [FaxQueue]
    WHERE [FilePath]
    NOT LIKE 'C:\%'
    AND [FaxID]
    NOT IN (SELECT
    [FaxID] FROM
    [Identified])
    ) X
    2. Using CTE(common table expression)
    ;WITH CTE AS (
    SELECT [FaxID]
    FROM [FaxQueue]
    WHERE [FilePath]
    NOT LIKE 'C:\%'
    AND [FaxID]
    NOT IN (SELECT
    [FaxID] FROM
    [Identified])
    SELECT * FROM CTE
    3. USING TEMP TABLE.
    SELECT [FaxID] INTO #TEMPTABLE
    FROM [FaxQueue]
    WHERE [FilePath]
    NOT LIKE 'C:\%'
    AND [FaxID]
    NOT IN (SELECT
    [FaxID] FROM
    [Identified]);
    SELECT * FROM #TEMPTABLE
    Regards, RSingh

  • Setting the Author and Modified Time of Files and Folders via 2013 Rest

    Hi
    We've got an 3-legged-oAuth, `permissions on the fly` app that interacts with Sharepoint via the Rest AP. We're running into some hurdles preserving ownership and modification metadata on files migrated into the system. 
    With Sharepoint, the typical approach is to authorize a single admin user an use their credentials to upload every file arriving from the source. The problem: every file's author is now the admin user.
    Is there any way to change the Author of a file during the initial upload or afterwards? The docs here: http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileCheckOut suggest not.
    Some services, such as Box and Google Drive provide various delegated authorization capabilities to create files on someone else's behalf. Perhaps this is an option? We could, for example, multiplex a set of oAuth tokens but that would require potentially
    hundreds of users going through the rigamarole of the 3-legged oAuth flow.
    Is our only option a C# app to fill in these gaps?

    Hi,
    According to your post, my understanding is that you wanted to change the Author of the file.
    If you don’t want to use the C# option, we can use the JavaScript to retrieve the created by field then change it.
    There are two similar articles, you can have a look at them.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bba08ecc-297e-4b32-a8f4-bbc2a677d6bd/retrieve-created-by-list-item-field-using-javascript?forum=sharepointdevelopmentprevious
    http://www.c-sharpcorner.com/UploadFile/anavijai/get-created-by-and-modified-by-values-from-sharepoint-2010-l/
    Thanks,
    Jason
    Forum Support
    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]
    Jason Guo
    TechNet Community Support

  • How to mark the physical tables as cacheable

    Hi All,
    Can someone please tell me how to mark the physical tables as cacheable.
    Thnaks a lot

    Hi,
    by default they are cacheable...
    You can see it on repository, physical layer, right clik on table, properties, on general tab, check cacheable...
    You can specify peristence time...
    See this article, you will find an image with table properties:
    http://obieeblog.wordpress.com/2009/01/19/obiee-cache-is-enabled-but-why-is-the-query-not-cached/
    Regards
    Nicoale
    Edited by: Nicolae Ancuta on 26.05.2010 09:15

  • How do I thank someone for answering my query in the Community?

    I recently asked a question, then someone answered and solved my query - how do I thank them?

    I thought that's what I did - or am I missing something .
    Extract from my post:
    You can also select the answer from the respondent who solved your problem and select the green tick to mark the thread as 'solved' which may help others searching for answers to similar problems.

  • To Find the SAP Query from the tranaction code or the program name

    Hi,
    I have a situation wherein I have to modify the sap query associated with an transaction code.But the problem is that I am unable to find the SAP Query.
    <b>Please let me know how to find the SAP query from the transaction code or the program name.</b>
    Thanks and Regards,
    Rupesh

    Hi Rupesh,
    1 use FM
      RSAQ_DECODE_REPORT_NAME
    2. This is one of the best and easiest way.
    3. It will provide u the following info.
       WORKSPACE
       USERGROUP
       QUERY    
       CLIENT   
    4. Thru TCode U must know the program name first.
       This can be discovered using SE93.
    Hope it helps.
    Regards,
    Amit M.

Maybe you are looking for