Validation on items up on query

I have some requirement ....i have a table region which is based on a VO which in turn based on a EO.
Data into that gets populated when user clicks on details button of the master table.
Now the problem is i need to make some fields updatable/nonupdatable depending on some database validation.(for example if if vendor_type is 'XYZ' i should make a field non_updatable)
how to achieve this.
Rgrds
Sandeep.G

I think the solution to the problem is the same as already updated by a few members.
The point is you have a PVO and one attribute associated to the ReadOnly field. I understand that you have messageTextInput fields in the lower table to update values. Not while populating the lower table, you can set the boolean attribute in the PVO to true (if the condition requires the field to be unupdateable).
The problem would have occurred if the same column on different rows of the lower table become updateable or unupdateable based on conditions. In this case, you can use switchers. But I am sure the normal PVO approach is going to help your cause. Please try this and let us know if you have specific issues while doing do.
Thanks
Sumit

Similar Messages

  • Reg:Validation on Item Master data

    Hi,
    I would like to put the validation for Item Name and UOM Name fields in Item Master in Update mode.
    And i try to do the following query.But it is not restricted in update mode.
    if @object_type ='4' and @transaction_type in ('U')
    begin
    IF EXISTS(select t2.itemcode from oitm t2 where
    t2.docentry =@list_of_cols_val_tab_del and
    t2.itemname not in
    ( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom  from oitm t1 where t1.InvntryUom  is not null))
    select @error=N'1',
    @error_message =N'You cannot update this document.'
    end
    please correct my given query.

    Hi md,
    If's wrong in this :
    t2.docentry =@list_of_cols_val_tab_del
    change by the following
    if @object_type ='4' and @transaction_type in ('U')
    begin
    IF EXISTS(select t2.itemcode from oitm t2 where
    t2.Itemcode =@list_of_cols_val_tab_del and
    t2.itemname not in
    ( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom  from oitm t1 where t1.InvntryUom  is not null))
    select @error=N'1',
    @error_message =N'You cannot update this document.'
    end
    Hope it helps

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • How to include non database item in the query

    Hi
    I have a Master-Detail form. where in the detail block one of the field is text item 'X' attached the list of values(Y). Master block includes non database items which is based in the decoding result of the database items for example:
    Gender(Male, Female)>> non database item
    Gender_id(M,F)>>database item
    the form is created based on the template.fmb form for apps. When I run the form in the query mode, i can query about any database item while including query about others non database item does not affect.
    how to can i modify it so this could be handled??
    I know that one way to avoid this issue is to create a view with all my desired field.
    but there should be away to override the build in query used by oracle apps...
    any one has a link, source, document... etc that help on this??
    any idea how to do it without creating a view??
    thnx alot

    Hi HST,
    You can code the handling in POST-Query of the corresponding block to retrive the corresponding data depending on the Queried data.
    Regards,
    Kiran

  • 11G ADF BC: How to arrange the position of items in a query scenario?

    Hi,
    I am creating a search page with a search scenario at the top and a result table at the bottom using Jdev 11G (11.0.0.0.1) ADF BC. In my search scenario, there are about 35 items. Now they are evenly divided in 3 columns by default. I have certain requeirement for the layout of the these items. But seems to me, they are not editable to the programmer. Does anyone know anything about this? Any idea is deeply appraciated.
    Regards,
    Annie

    Timo,
    Thank you for your reply and I am sorry that I did not say it clearly.
    Yes, I use the "All Querable Attributes" under " "Named Criteria" under the "Data Control" Palette. So I do not think I have any control over those items in the query scenario under the "Structure" pane. They are completely hidden for me. Do you know any other ways to modify them? I mean to change the layout of them.
    Regards,
    Annie

  • How to supply values for searchCriteria items in af:query programmatically

    Hi,
    Is it possible to supply the default values for search criteria items in af:query programmatically? I didn't find any of the method to set the values for the search criteria items inside the oracle.adf.view.rich.model.Criterion and oracle.adf.view.rich.model.AttributeCriterion classes.
    Please let me know how can I supply DATE values by default for the search criteria items inside the view criteria.
    Thanks

    Jdev I am using is 1.5.
    I've search page where I've a date field (like TransactionDate). The transactionDate is a transient variable in my VO. Created a view criteria using this transient date filed and kept the operator as 'Between'. When I load the page, I want to keep the values for Between operator as 'CurrentDate' and 'CurrentDate - 365 days' (LastYearDate as of today).
    I can't use bind variables to set the currentDate and lastYearDate to the values of the 'Between' operator. If I use so, I will get an error 'Attempt to set a parameter that doesn't occur in the sql.....'.
    So I thought of overriding the QueryEvent inside the bean. But I didn't find a way to set the values for the TransactionDate programmatically.
    I tried below code in the queryEvent method, but in this case the response time is very hign ( I didn't see the result till 30mn).
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    ViewCriteria vc =
    JUSearchBindingCustomizer.getViewCriteria((DCBindingContainer)bc.findExecutableBinding("SupplierSearchCriteriaQuery"),"__ImplicitViewCriteria__");
    Date curretYearDate = null, lastYearDate = null;
    Calendar calendar = Calendar.getInstance();
    curretYearDate = calendar.getTime();
    calendar.add(Calendar.DAY_OF_YEAR, -365);
    lastYearDate =calendar.getTime();
    Object o = new Date();
    ViewCriteriaRow vcr = (ViewCriteriaRow)vc.get(0);
    for(int i=0;i<vcr.getAttributeNames().length;i++) {
    if(vcr.getAttributeNames() == "LastTransactionDate") {
    System.out.println("====================== opeartor ================== " + vcr.getOperator("LastTransactionDate"));
    if( ("%".equals(vcr.getAttributeValues()[i]) || vcr.getAttributeValues()[i]==null)) {
    List nameList = new ArrayList();
    nameList.add("LastTransactionDate");
    List valueList = new ArrayList();
    valueList.add(lastYearDate);
    valueList.add(curretYearDate);
    vcr.setAttributeValues(nameList, valueList);
    vc.addRow(vcr);
    JUSearchBindingCustomizer.applyAndExecuteViewCriteria(bc, vc);
    Thanks,
    Lakshman

  • WAD:  anyway to bind each tab of the tab page web item to different query?

    WAD:  anyway to bind each tab of the tab page web item to different query?
    We check the properties of the tab page web item, but can't find we can bind the tab to some query.
    Any idea?
    Thanks!

    will try to write as much detail steps as i can...
    drag tab page web item in wad window
    go to its properties
    for e.g. u currently have only 1 tab page
    than name tab page1 as p1
    hit button with ..
    this will let u add new heading to tab page 2
    likewise save heading of 4 tab pages in properties of tab pages
    now choose container web item
    drag it in tab pages window
    assign seperate analysis item in each container item
    assign seperate queries in each analysis web item.
    assign container1 to tab page1
    assign container2 to tab page2
    assign container3 to tab page3
    assign container4 to tab page4
    and their heading viceverssa
    save it execute it
    now u will have 4 queries in 4 container item and uc an see that in different tab pages.

  • One of the user is unable to remove obsolete Tags from new work items and search query

    Hi I am new to TFS Administration, User has some obsolete Tags in TFS site which is removed on the Backlogs but user can see those tags when he is creating new work items and while querying the Work Items but he is not able to see any obsolete tags in Backlogs.
    TFS version: TFS 2013 SP2
    Steps followed:
    we queried each tags, we see 0 work items associated with the tags
    As per MSDN, we have to remove associated tags which automatically removes the Tags after 3 days
    The user is facing the same from past week
    Am i missing something? or will the list of Tags be available in new work items and  querying WITs? Please help
    Thanks in Advance

    Hi BE,  
    I tested this scenario in my TFS 2013 Update 4 Server, and found that Tags will disappear  from Tags dropdown list automatically after serverl days, if there’s no any work item associated that Tags. 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need to pull ranked item from one query into new query

    Hi,
    I have a parent query in which I assign a rank to characteristic values based on a key figure, in dollars. I need to pull the top 4 items from that parent query into 4 seperate child queries (i.e. child query 1 is written based on ranked item 1, child query 2 is written based on ranked item 2, etc.) Does anyone have any ideas how to achieve this?
    Thanks
    CM

    Hi,
    I have a parent query in which I assign a rank to characteristic values based on a key figure, in dollars. I need to pull the top 4 items from that parent query into 4 seperate child queries (i.e. child query 1 is written based on ranked item 1, child query 2 is written based on ranked item 2, etc.) Does anyone have any ideas how to achieve this?
    Thanks
    CM

  • Validation error 'Item not found' in Middleware

    Hi,
    In the middleware monitor, I have some bdocs failed with the validation error ' Item was not found. Validation error occured. module CRM_DOWNLOAD_BEA_VAL, BDoc Type BEABILLDOCCRMB'.
    When i look at the document numbers associated , they do exist.
    It is in this state for a long time.
    Can anyone help.
    Regards,
    Pratima

    Hi Venkat,
    There are no messages in the outbound or inbound queue releated to these bdocs.
    These bdocs exist only in the monitor with validation error.
    Regards,
    Pratima

  • Item Cost in query

    Hi expert
    how can i find last item Cost via query .

    Item cost depends on the inventory valuation method.
    You can view the item cost in the Inventory audit report-cost column,if its not visible in the report then check the form setting-cost.
    If you would like to have a query report,you can use OINM table-price field
    There are two system reports available. One is Inventory Audit Report. Another is Inventory Valuation Report. When you use right mouse click to pop up menu from Item Master, you could view Inventory Valuation Report within current year.

  • Including non database item in the query mode

    Hi
    I have a Master-Detail form. where in the detail block one of the field is text item 'X' attached the list of values(Y). Master block includes non database items which is based in the decoding result of the database items for example:
    Gender(Male, Female)>> non database item
    Gender_id(M,F)>>database item
    the form is created based on the template.fmb form for apps. When I run the form in the query mode, i can query about any database item while including query about others non database item does not affect.
    how to can i modify it so this could be handled??
    thnx alot

    Hi, it is probably best for you to post your question in the EBS forum
    General EBS Discussion

  • Validation: Two items cannot be null or filled at the same time

    Hello forum members,
    I have a question about item level validation and was hoping someone would be able to shed some light on my problem.
    I'll go into a quick background of what the app does first so you will have an idea of what I'm trying to get at (or if you can suggest a better approach).
    Our team, on a regular basis, receives records that require analyzing. Over the years, we've compiled a pretty good list of possible analyses for any record. We used to do this by manually going into sql developer and changing the analysis in the analysis field, but that posed problems of spelling mistakes and other human errors.
    I've created a front end application that will scrape all possible analyses from the table into a drop down menu thus limiting the amount of human input as possible. The problem here is that as things grow, there will always be a new problem that does not fit the analysis we have used in the past. So I would like to give the ability for the team to use a text field to enter a new analysis for those cases (and then subsequent records can find it in the drop down menu).
    The two application items used in this problem is: p_select_list and p_text_field.
    In my first iteration of this application, I added an extra value in p_select_list called "Other". Some nifty javascript would check to make sure that if anything but "Other" was selected, p_text_field would be disabled (there was a problem with that where on page load, the field would be enabled even though "Other" wasn't selected).
    We've been having some javascript issues while migrating our application from development to testing to production, so I would like to avoid javascript unless there really is no other option.
    What I'm trying to implement now is a page level validation on both p_select_list and p_text_field to test to make sure that either p_select_list is not null or p_text_field is not null.
    I know there are 3 cases to test for (both null, both not null and only one is null), so I used a function returning boolean validation.
    I started off small and just had the following:
    if ((p_select_list is not null) and (p_text_field is not null)) then
    return true;
    else
    return false;
    end if;
    I then chose something in the select list and entered some garbage in the text field and hit submit. The validation worked like a charm!
    Now I added the both null check:
    if ((p_select_list is not null) and (p_text_field is not null)) then
    return true;
    elsif ((p_select_list is null) and (p_text_field is null)) then
    return true;
    else
    return false;
    end if;
    However, I go into a record and enter something into the select list and leave the text field blank, and it throws the error at me. Then I tried both items as null and that breaks too. However, I can't say that this is the work of the script since it failed the one case it wasn't supposed to.
    Do you know what I'm doing wrong here? Is there some way for APEX to ensure that only one of the two fields has a non-null value?
    Thank you in advance,
    Ivan
    Edited by: ichin on Jan 28, 2009 3:40 PM

    Hi Ichin,
    I am a bit confused with your statement -
    if ((p_select_list is not null) and (p_text_field is not null)) then
    return true;
    elsif ((p_select_list is null) and (p_text_field is null)) then
    return true;
    else
    return false;
    end if;Here this statement -
    if ((p_select_list is not null) and (p_text_field is not null)) then
    return true;returning the result TRUE when both fields are not null
    And this statement -
    elsif ((p_select_list is null) and (p_text_field is null)) then
    return true;returning the result TRUE again when both fields are null. If you see closely basically is not validating becoz it returning true whatever the input is.
    I do not know what you want to use the second statement when you have else statement at the end. It will return false if one or both fields are null unless you want to validate either text field.
    Hope this make sense.
    Regards,
    M Tajuddin
    web: http://tajuddin.whitpeagesbd.com

  • Enabling item on a query-only form

    Hi,
    I call a custom 6i form in query-only mode. However, now I need to enable one item on the first window for search purposes. I tried using SET_ITEM_PROPERTY,(ITEM_NAME,'Insert Allowed','TRUE') but it doesn't work. How do I achieve that functionality?
    Thanks.

    Hi,
    Thanks for the reply. I tried to set the property 'enabled' of the item to true so that I might be able to enter or update data into it.
    I am trying to change the form status from query only = YES and disable the blocks associated with it.

  • Error in bex design window while Restricting an item in a query

    Hi All,
    When I try to restrict an Item (a value)  in the query design window Im getting the following errors:-
    1.) 'The Operation Failed because of a program error on the Server (DUMP). See System Log for Details.'
    2.) 'Stop Statement Occured'.
    3.) Run Time Error
    4.) Run Time Error
    DUMP:
    Runtime Errors UNCAUGHT_EXCEPTION
    Exception CX_RSR_X_MESSAGE
    I have check many OSS notes but My BW system is on 3.5  SP 22 ,so none of the note is applicable.
    Has anyone face this error before.
    Thanks
    Savio

    Dear Savio,
    On 14th of October 2008 support for SAP GUI for Windows 6.40 ended.
    This means:
    No more patches are supplied (not even security updates).
    No corrections are implemented.
    How to requests which are specific to release 6.40 are not processed.
    SAP GUI for Windows 6.40 is not tested or used SAP internally anymore.
    There is no extended support option for SAP GUI for Windows 6.40.
    Since using a component which is out of support means a high risk it is SAP's strong recommendation is to start the planning for the upgrade to release 7.10 as soon as possible.
    The patches previous could be found at below mentioned path:
    service.sap.com/swdc
          > SAP Software Distribution Center
            > Download
              > Support Packages and Patches
               > Entry by Application Group
    >Support Packages and Patches>SAP Frontend Components
    >SAP GUI FOR WINDOWS>SAP GUI FOR WINDOWS 6.40
    Now the above written notification can be seen here.
    Hence., It would be better if you upgrade to SAP GUI 7.10.
    Hope this info helps!!
    Kind Regards,
    Robin.

Maybe you are looking for

  • My iPhoto library just disappeared... How can I get it back

    I had an old Macbook Pro with Snow Leopard, but when I upgraded from Leopard to Snow Leopard I didn't reinstall iLife to save space. As a result I had a folder named iPhoto Library left over from the reinstall and no iPhoto application. Now I just go

  • Pictures not found-got new macbook

    I got a new macbook and was using time machine to transfer everything over. I didn't transfer movies and pictures because I had enough pictures alone to fill up the entire new computer's harddrive (I am a photographer.) So now, in the finder, there i

  • Reporting Action in Error handler

    We have a requirement to use Reporting action in the Service Error Handler to capture some details for the reports. We are using the JMS Messaging Proxy and in that transport options, we are using "Transaction" as Enabled to retry the failed messages

  • How can I assign shortcuts for navigation in 3D mode?

    I'm a 3D artist, and I've been using photoshop for texturing my models for so long. Now that photoshop has improved it's 3D features, It's making my life so easy, but there's a problem(other than the memory consumption). I have to change my navigatio

  • If I have installed jdk1.3 and want use ejb do I need some more to download

    I am trying to run some ejb classes using jboss but it complains EJBOBJECt not found. What does this mean? Please help