HOW TO MAKE ITEM UPDATABLE/NON-UPDATABLE DYNAMICALLY

Hi ,
I have a form with tabular layout on a multi record lock .
From shows 20 records at a time and there is a scroll bar to scroll down .There is an item "flag" in the block which is not visible in the form with values "Y" or "N" .
I need to make some text items in the record updatable when that record has "flag" ="Y" .Documentation say's we need to use set_item_instance_property to do that .
I tried it in when-new-record-instance,pre-query and key-exeqry triggers with no luck .
I would really appreciate if you could give me the following info
1) How to loop through each record in a block to check value of "flag"
2) Which trigger to use and level form,block etc .
Thanks,

Ram,
Thanks for the update . Now it works . Another problem though ...
My form displays 20 records at a time and I have a scroll bar .
I need to change the background of Item to white when it is updatable and gary when it is not updatable .
I've created a visual attribute and was using it with set_item_instance_property like this ..
declare
last_rec number;
begin
last_record;
last_rec := :system.cursor_record;
first_record;
for i in 1 .. last_rec
loop
if :ANNUAL_FUNDS.flag != 'Y' then
begin
Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, UPDATE_ALLOWED , PROPERTY_FALSE);
Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VI_UPDATE');
end;
end if;
if :system.last_record = 'TRUE' or i = last_rec then
exit;
else
next_record;
end if;
end loop;
FIRST_RECORD;
end;
When I took out the loop the way you've mentioned
it's changing the background color of the item for the record in which cursor is in . Users want to look at the screen in a glance and go directly to the item which is updatable .
Is there any way we can loop through all records once and change properties in one shot ?
Sorry to bother you,
Asha

Similar Messages

  • How to make Firefox to never update that slow custom look since FF 29?

    How to make Firefox to never update that slow custom look since FF 29? How to change windows installation and ubuntu installation so they never update after FF 28 witch was last normal speed normal browser?
    Hello. I can easy remove on Windows FF 29 or FF 30 and its slower on fast computer. But its affected by millions of users. With FF 28 it was allways fast.
    Why fast? I dont know but its SLOW Now any version after FF 28.
    Since FF 29 FF loads and hangs very very slow each time loading, starting, or changing tabs. It is making problem for everyone and now everyone calls with help- "why computer is slow.. oh its FF? Chrome? Chrome was slow but now its not the slowest one?"
    Very colorfull Example- one comp is 10" and its very very very very low specs. So it wont run at all.
    Now on small comp we can try linux and FF BUT no matter what OS just couldnt get back with any plugins back normal speed. Since FF 29 its very very very slow and that needs to have a solution. Today came update and still unneded custom menu button and its slowness hasnt been removed (unnoticed) so it needs a fix so it works for people who are not just for browsing internet buying new computer and cant get any faster speed then Chrome since now theres no FF anymore.
    SO- How to do that on Windows and Linux- installing FF 28 and making it never upgrade
    OR even better- Making a package that already has this update disbled setting ON?
    p.s. Should you first ask people how they like slow browsers before making fast one to a slow one?
    p.p.s. i dont get how menu could be added by thouse who need it as an add-on ass allways and not presuring everyone who never touches any button.
    p.p.p.s. your business was beeing neutral ngo making browser for people and not for making cloged systems so new computers could be sold by some company advice or infiltrated mole who will suggest such unneded feature as any other addons, but sticking it in for everyone.

    Hello,
    You can download version 28 from here:
    https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/28.0/
    Also, you'll have to disable auto updates to remain with version 28 by following the steps described in this support article:
    https://support.mozilla.org/en-US/kb/advanced-settings-browsing-network-updates-encryption#w_update-tab

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • HT1766 If updating ios6 was not finish yet because of my connect to Internet was poor then how to continue and how to make shorter the time update?

    How to proper update iOS6 to 3GS if unfinished and how long its take to complete update? Because I can't finish yet due my Internet connection was poor, but   I try again to update and the time it make longer than the first time I tried?! Help pls! Thanks

    Get a better internet connection.

  • How to make the option none in the payment information from app store

    how to make the none option in payment information in app store??????using iphone
    i made a purchase from my card then after i tried to make another purchase that is free but while doing this a massege appears "review your payment information" then it goes back to app store.tell me how to make none option in apple account payment information using iphone??????

    surendramandia wrote:
    i don't want to creat a new account i want  none payment option in my existing account
    This has been suggested by other Users, but have not tried it myself...
    ' ... Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear...'

  • How to make report output non editable

    Hi can any body give me sample code on how to make the report output non editable.
    thanks in advance
    kp

    Hi
    What are you meaning?
    U don't want to allow to change the data in the selection-screen?
    If it's so:
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    If you need to change only certain fields:
    PARAMETERS: P1 ......,
                P2 ...... MODIF ID AAA.
    SELECT-OPTIONS: SO_1 FOR .....,
                    SO_2 FOR ..... MODIF ID AAA.
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'AAA'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    Max

  • How to make adobe reader non copy-able

    Hi,
    I am using adobe reader 9, I need to create an PDF using MS, and I would not want the text to be copy-able,
    checked the security setting, the content copable: Allowed
    But I do not know how I can make it Not allowed.
    Or just any way to make the content not copy-able.
    Because I told my boss just use photoshop and save as PDF,
    and he want it to be more simple, he want it to be done straight from MS,
    and he want to make the contents non-copyable
    Thanks,
    Alex

    More information about setting up password security is in the Acrobat help doc. For a number of tutorials about security, see: http://acrobatusers.com/learning_center/find?page=1&topic=9

  • My Apple ID need credits card how to make it to none, My Apple ID need credits card how to make it to none

    My Apple ID need credits card how to make it to none

    You can create an iTune and App Store account without credit card
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • How to make the title of screen dynamic in ABAP.

    Hi experts,
    I want to make the title of screen dynamic like:-
    --> i have an initial screen in which program takes some input files..and having a screen title as "INPUT FILE" with a read button.
    --> after clicking on read button it reads that file and shows on screen that exel file...here this screen title remains the same as "INPUT FILE" but i want it as "READ FILE". now this screen again having a button as write file.
    -- > Now after clicking on this write button this file gets write in to SAP system here i want my screen title as"WRITTEN FILE".
    Please help me and tell me the way to do it.
    Regards,
    Depque.

    Hi.
    Ypu should use a flag as soon as someone clic on the button, in order to keep a value.
    Then in PBO Module you should ask for the value of this flag
    if w_flag = abap_true ('X')
    set tittlebar number01.
    else.
    set titlebar number02.
    endif.
    Please let us to know if this could help you.
    Regards,
    Gabriela

  • How to make a row non-editable depending on a db column value

    HI,
    I've an editable report region and the requirement is to make the row non-editable according to the value in one of the column. Like if the value for that column is null the row should be editable else non-editable. Any option to do this in Oracle APEX.
    Regards,
    Prasanth

    I assume you are using a tabular form. In that case, you would have to run a loop in Javascript to read all the rows in the Form. The example is given below. You can use Firebug in Firefox to identify your field names and replace f02, f03 and f04 with your field names.
    <script language="JavaScript" type="text/javascript">
    function f_readonly_items(){
    for (i=0;i<document.wwv_flow.length;i++)
    if (document.wwv_flow.f02.value) != Null
    document.wwv_flow.f02[i].readOnly = true;
    document.wwv_flow.f03[i].readOnly = true;
    document.wwv_flow.f04[i].readOnly = true;
    </script>
    Hope this helps.

  • How to make content of af:popup dynamic? Component Value is not updating.

    HI,
         I am not able to update the component used in af:popup dynamically.
         In my case, the value of the component used in the popup is updated every time before opening the popup.
         I am building the af:popup. I am using component binding for my components. And I am setting data in the component using the component in the Managed bean only. The getter method for every component that I bind gets called only once i.e. while loading of the page. So when ever I change any thing in the component in managed bean, it is not reflecting in JSPX page. Coz it not calling the getter method of the component, so it is not getting the updated status for the component. But if you refresh the page you will get the updated component.
         Following is the sample code to simulate my problem,
         JSPX Page:-
    <af:commandButton text="RCF Dialog (Without Script)" id="button1"
    windowHeight="600" windowWidth="600">
    <af:showPopupBehavior popupId="samplePopup" alignId="button1"
    align="afterEnd"/>
    </af:commandButton>
    <af:popup id="samplePopup" clientComponent="false"
    contentDelivery="lazyUncached">
    <af:dialog title="Sample Dialog Test" modal="true"
    cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" value="#{searchField.myValue}"/>
    <af:inputText label="Label 2" binding="#{searchField.textField}" />
    </af:dialog>
    </af:popup>
    Managed Bean:-
    public static int count = 1;
    private String myValue = null;
    private CoreInputText textField = new CoreInputText();
    public String getMyValue(){
    String value = "MESSAGE_" + count;
    System.out.println("Count ==>" count " Value ==>"+value);
    count++;
    return value;
    public CoreInputText getTextField() {
    //Get called only once at the page load.
    textField.setValue(getMyValue()+"_XXX");
    return textField;
    public void setTextField(CoreInputText textField) {
    //Get called every time dialog is opened.
    this.textField = textField;
    Please let me know what to do make the content of the af:popup dynamic.
    Any suggestions are welcome.

    HI,
    I have simulate my problem using one text field component in side the popup. It is the same way that i am using. In my case there is more code in the constructor of the dialog bean.
    Following is the code,
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="Popup Demo">
    <af:form>
    <af:spacer width="10"/>
    <af:commandButton text="RCF Dialog (With Script)" id="button"
    actionListener="#{mainScreen.processAcion}"/>
    <f:verbatim>
    <![CDATA[
    <script>
    function launchSampleDialog() {
    var popup = AdfPage.PAGE.findComponent("samplePopup");
    var hints = {};
    hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_OVERLAP;
    hints[AdfRichPopup.HINT_ALIGN_ID] = "button";
    popup.show(hints);
    </script> ]]>
    </f:verbatim>
    <af:popup id="samplePopup" clientComponent="false" contentDelivery="lazyUncached" >
    <af:dialog title="Sample Dialog Test" modal="true" id="dialogId" cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" />
    <af:inputText binding="#{dialogBean.textField}" />
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    //Main Screen Bean set in session scope.
    public class MainScreenBean {
         private static int count = 1;
         public void processAcion(ActionEvent event){
    String updatedData = "ABCDEFG__" + count;
    System.out.println("Inside process Action of Main Bean. Data set in Scope ==>" +updatedData );
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getExternalContext().getSessionMap().remove("dialogBean");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getProcessScope().put("updateData", updatedData);
              count++;
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "launchSampleDialog();");
    //Popup Dialog Bean set in session scope.
    public class DialogBean {
    private RichInputText textField = null;
    public DialogBean() {
    textField = new RichInputText();
    textField.setLabel("Custom TextField");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Data From Scope in Dailog Bean = " + afContext.getProcessScope().get("updateData"));
    RequestContext.getCurrentInstance().addPartialTarget(textField);
    public RichInputText getTextField() {
    System.out.println("Inside getter for the component in Dailog Bean. Value = " + textField.getValue());
    return textField;
    public void setTextField(RichInputText textField) {       
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //Uncomment following line and run again. It will start showing updated value. But this will get called many times.
    //textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Inside setter for the component in Dailog Bean. Value = " + textField.getValue());
    this.textField = textField;
    }

  • Reservation line item text - non update issue

    Hi,
       We have a custom BDC (call tran) to create reservation. One of the fields for the reservation is line item text. We had this program from July 2008 onwards and we have no issues. All of sudden from 01/15/09 , the line item text is not being populated in the reservation, but reservation creation is working as before. We checked our system, there is no change to that program and infact we had only 2 transports on that day and they are related to FI and not related to MM or reservation at all.
    We did all our debugging, but this is inside a wrapper RFC and the RFC is called from EAI subsystem. (Tibco) The SQL trace and RFC trace shows all data of RESB being updated except this text. We are going crazy on this since it is such a simple BDC program and working fine so far and stopped all of sudden.
    My question is, are there any config which all of sudden made this field not available for input or something like that? I tried in config, but I couldn't find anything.
    Can you help on this? Thanks,
    The other crazy parts are,
    1. We tried writing the BDCTAB into a unix file, but the file is not created - one of the reason could be the user is CPIC user and may not have authorization to write to unix inspite of this user has sap all access
    2. We tried writing the dump into a custom table, but even that is not working. But when we execute this in SE37 manually, it is creating both unix file (in development) and updating the table as well.
    Regards,
    Sundar.

    It's sure that something changed between the last run and 01/15/09. A few ideas :
    - When the program is run, start an authorization trace, and give missing authorizations to CPIC until there is no more authorization problem (this is the most important thing to do first !)
    - Make sure that you program displays correctly all CALL TRANSACTION messages and exceptions also.
    - Analyze customizing imported between the 2 runs of this program (look at transport requests in the import queue log).
    - "Save" importing parameters so that to redo the test (with CPIC user) :
    -- change the program to write the BDCDATA to a batch input session (BDC_OPEN_GROUP, etc., SM35), and so test it later.
    -- save them to test data as indicated by [note 517767 Automatically generate test data at function module call|http://service.sap.com/sap/support/notes/517767]

  • How to make item references dynamic in my trigger [SOLVED]

    Hi. I have a Key-List-Item trigger on my form for a date item named bundle_exceptions.actual_dt. This trigger code is displaying a calendar when the user performs a key-list-item action on this date item. Throughout this code there are hardcoded references to my item in two different ways:
    1) :bundle_exceptions.actual_dt
    2) 'bundle_exceptions.actual_dt'
    Since I have multiple date items on my application I would like to know if I can make this code more dynamic. Since the cursor is sitting on the item at the time, I thought I could reference :system.current_block and :system.current_item. But I can't seem to get the syntax correct. And to complicate things, I'm even more confused as to how I could get these system variables to match the two difference ways the item is referenced in the code (see above).
    I would love some help or advice on solving this issue. I really don't like the idea of copying and pasting this code to every date item I have on my form. Thanks in advance.
    ========= CODE =============
    date_lov.get_date (nvl(:bundle_exceptions.actual_dt,sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property('bundle_exceptions.actual_dt',x_pos) - x_adjust),
    (get_item_property('bundle_exceptions.actual_dt',y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);

    Here's what I ended up with. I never could get the Name_In and Copy built-ins to compile because of syntax errors. I'm sure this was my own doing...but I just couldn't do it.
    Anyhow, this code is working for me know. Thanks so much for all the input.
    ========= CODE =========
    PROCEDURE Call_Calendar_Popup (for_this_item in varchar2) IS
         y_adjust number := 1.6; -- this is the height of the popup box
         x_adjust number := 1.8; -- this is the width of the popup box
    begin
    -- Depending on whether this proc is called from the item itself (say a key-list-item trigger) or
    -- from another item (say a when-button-pressed trigger) the cursor may first need to be moved to the
    -- item we want to populate from the calendar
    if upper(:system.current_block||'.'||:system.current_item) <> upper(for_this_item) then
         go_item(for_this_item);
    end if;
    -- if the items xpos (horizontal) is closer to the edge than the pop ups width push it over to the right.
    if get_item_property(:system.current_block||'.'||:system.current_item,x_pos) < x_adjust then
         x_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,x_pos));
    end if;
    -- if the items ypos (vertical) is closer to the edge than the pop ups height push it down.
    if get_item_property(:system.current_block||'.'||:system.current_item,y_pos) < y_adjust then
         y_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,y_pos));
    end if ;
    -- popup the calendar so the user can populate the date text-item
    date_lov.get_date (nvl(Name_In(':'||:system.current_block||'.'||:system.current_item),sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property(:system.current_block||'.'||:system.current_item,x_pos) - x_adjust),
    (get_item_property(:system.current_block||'.'||:system.current_item,y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);
    end;

  • Reservation line item text non - update

    Hi,
       We have a custom BDC (call tran) to create reservation. One of the fields for the reservation is line item text. We had this program from July 2008 onwards and we have no issues. All of sudden from 01/15/09 , the line item text is not being populated in the reservation, but reservation creation is working as before. We checked our system, there is no change to that program and infact we had only 2 transports on that day and they are related to FI and not related to MM or reservation at all.
    We did all our debugging, but this is inside a wrapper RFC and the RFC is called from EAI subsystem. (Tibco) The SQL trace and RFC trace shows all data of RESB being updated except this text. We are going crazy on this since it is such a simple BDC program and working fine so far and stopped all of sudden.
    My question is, are there any config which all of sudden made this field not available for input or something like that? I tried in config, but I couldn't find anything.
    Can you help on this? Thanks,
    The other crazy parts are,
    1. We tried writing the BDCTAB into a unix file, but the file is not created - one of the reason could be the user is CPIC user and may not have authorization to write to unix inspite of this user has sap all access
    2. We tried writing the dump into a custom table, but even that is not working. But when we execute this in SE37 manually, it is creating both unix file (in development) and updating the table as well.
    Regards,
    Sundar.

    It solved by itself

  • How to make 1 ALEAUD to update multiple Idocs

    Hi there, im sending multiple delivery idocs and collecting them on a BPM for processing on a 3rd party, after that i want to update the status of the process of each delivery with 1 single ALEAUD,
    i tried using multiple E1ADHDR and E1STATE segments, but in both cases back on ERP, it replaced me all the idoc numbers with the first one!!, does ALEAUD supports multiple ocurrences??, in that case how should the structure look??
    Best Regards,
    Roberto.

    Hi Roberto,
    you need to send either serveral single ALEAUD messages or bundle them by changing the occurance of the IDOC element. Please refer to Michal's blog [XI: IDOC bundling - the "trick" with the occurance change|/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change]
    Regards,
    Udo

Maybe you are looking for

  • Ipod touch 2G stuck in recovery mode

    I was given an Ipod touch 2g (not sure if it is an MC model or not) with 16 gig.  The device won't show a picture on the screen, but when I connect it to the pc, it is recgonized and the apple mobile device driver is installed.  Itunes shows ipod in

  • Service Tax Problem

    1. We are on ECC 6.0. I am doing configuration of service tax as per SAP notes 779512 and 921634 -Transfer of service tax from interim to final account automated. Notes tells: In releases higher than ERP2005 it is necessary to check that the followin

  • Pdf report

    Hi, I am new to the oracle reports so i need your kind advise, suggestions for the follwoing: I have to create 6 pdf reports, each one will have 4 sub sections, user will click the print button on the form and then it will prints these 6 reports inlu

  • How do i reset my passcode- a friend of my daughters put in a code, and we dont know it

    how do i reset passcode to get into ipod?

  • NEWBIE: Help needed - Eclipse freeze after starting WLS 9.2

    Hi All, I'm very new in development with wls 9.2 and eclipse. I'm trying to create a simple application (an EAR with a Session Bean). When I start the WLS inside Eclipse (debug or run mode), this one, after a few seconds or clicks, freeze with 99%CPU