How to make box modifiable or unmodifiable list based on a dynamic condition?

I use Oracle Forms 6i.

I have a database with a few textbox and Listbox data block. This data block is used to display the value of database and insert the value into the database. Data are extracted from the database and it is assigned to datablock article in the code. There are say 10 items displayed simultaneously in the datablock.

To make the combo box only when there is no data in a text box column, and if there are data in this column then the list box should not be editable.

Can someone help please how to do this in Oracle Forms 6i?

This is solved by using the Set_Item_Instance_Property function.

Tags: Oracle Development

Similar Questions

  • How to make a region vertical sidebar link based on a dynamic list to a page?

    Hello
    I'm new to APEX and basically, I try to imitate the dynamic actions of the sample where you have a list on the left side of the page and on the right side are the new page. If you run this sample application and click the page turn he calls a page and display it on the right side of the page.

    If you look at the source he uses page 0 (Global) which has a static list where on every static value, you can link this page to display.

    My problem now is that I did the same thing but my list is based on a select statement and if you do this you do not have an option of page target.

    I tried to create a dynamic action but I don't see an option to call a page and I don't know javascript.

    Thanks for any help.

    user12943263 wrote:
    Hello

    Please update your forum profile with a real handle instead of 'user12943263 '.

    Basically I want to use the select below for my list, but I don't know how to get the application and not the session.

    Select list_desc, ' f? p ='|| get_app_id | ':' || page_no |': ' | get_session_id
    from table_name

    Use of SQL bind rating variable as described in the section documentation Strings of Substitution of understanding :

    select
        ...
      ,  'f?p=' || :app_id || ':' || page_no || ':' || :app_session
      , ...
    from
        ...
    

    Always consult the documentation before posting here.

    Dynamic Actions, JavaScript and all the messages of "P.Ranish" above are all unrelated to your question.

  • How to make the decrement on listField list?

    IM create code like this:

    public class ScreenList extends MainScreen implements ListFieldCallback{
        String x[];
        ListField list;
        public ScreenList(){
            String arr[] ={"1", "2","3","4","5","6"};
            list = new ListField();
    
            int length = arr.length;
            x = new String[ length];
            for(int i=length-1; i>=0; i--){
                x[i]=arr[i];
                //add(new LabelField(arr[i]);
            }
            list.setSize(length);
            list.setCallback(this);
            this.add(list);
        }
    
        public void drawListRow(ListField arg0, Graphics arg1, int index, int y,
                int width) {
            // TODO Auto-generated method stub
            arg1.drawText(x[index], 0, y);
    
        }
    

    If I always try on Simulator Simulator print 1,2,3,4,5,6, but if I try to print to new Label 6,5,4,3,2,1 result

    My question... How to make the decrement with listField list implements reminder? Thanks in advance...

    Oops sorry correction instead of length use length - 1

  • How to make a label (javafx) to display the current time dynamically?

    Hi all

    How to make a label (javafx) to display the current time dynamically?

    I have not found a Type of event related to the time in javafx API.

    Please give me some suggestions. Thank you!

    Sage

    There are lots of examples of JavaFX clocks available, for example https://gist.github.com/jewelsea/3388637 or http://blog.crisp.se/2012/08/09/perlundholm/an-analog-clock-in-javafx

    For a simple label displaying the time, the simplest thing is to create a Timeline with duration 1 second and the number of indefinite cycle, which triggers an event handler that updates the label:

    final Label clock = new Label();
    final DateFormat format = DateFormat.getInstance();
    final Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(1), new EventHandler() {
         @Override
         public void handle(ActionEvent event) {
              final Calendar cal = Calendar.getInstance();
              clock.setText(format.format(cal.getTime());
         }
    });
    timeline.setCycleCount(Animation.INDEFINITE);
    timeline.play();
    

    (If you use Java 8, use the new time API, which is much more pleasant than calendar.)

  • How to make boxes to the letters for my alias iCloud in Mac Mail

    How to make mailboxes mailbox for my alias iCloud in Mac Mail?

    I have just set up my e-mail address of iCloud for the first time.  I had an Apple account for many years, but had not hitherto iCloud email address.  After that, Mac Mail automatically created an Inbox and an Outbox called, "iCloud" in the Mac Mail.

    Following the instructions I found online from Apple, I created an alias.  I would like to create the mailbox for the alias. How can I do this?

    Because it cannot be changed or deleted, I won't use my "main" iCloud address email for anything whatsoever.  Everything will be done by one or two aliases.

    Thank you for helping.

    You can create a folder for iCloud in the same way, when you create folders for any of your e-mail accounts. However, I suspect that you hope to create an Inbox specially for your alias addresses, which you can not do so. Aliases are aliases for your primary address, they are not different addresses, as such mail to your iCloud address and it's aliases are all moving in the same Inbox.

    What you can do is create a folder for mail addressed to your alias and create a rule to move relevant mail in the Inbox in this folder.

  • How to make Windows 7 see the list of the user on the login screen, not just the last logged-on user

    I am running Windows 7 Professional 64 - bit and have two user accounts on my computer. Problem is that the login screen shows only the last logged user and one "other users" button which allows you to manually enter the username. Is it possible to return to the display of a list of all users instead?

    Jon

    OK... I found how to fix this problem. I know it's a few years since this topic (and most of the people moved to windows 8) but for those who are still Windows 7 who are tired to type the user name, whenever you log in, here is how to display the icons of the user:

    WARNING: This patch is not a hack. I do not use any third party software. I am simply change a security setting in the windows system. The longest part is to find the file. As much as I would like to say that this will fix all computers, I can't guarantee that this will be the solution for your system. This fixed my problem because my just setting should be disabled. That being said, let's move.

    As an admin (must be in an account that has administrator privileges) click the Start button and in the search at the bottom of the opening bar, the type of menu "Edit Group Policy" and press on enter. When the local Group Policy Editor window appears, click on the following arrows in the left column to expand the lists to find the file to change...

    > Computer configuration

    > Windows settings

    > Security settings

    > Local policies

    Security options<-Click on="" this="" file="" name="" or="" icon="" (the="" arrow="" icon="" won't="" do="">

    In the right menu appears a bunch of system settings, find the one that we called "Interactive logon: do not display last user name" This is the setting which will no doubt say "Enabled" beside him. Right-click on the file and select 'Properties', then disable the setting. Restart your computer and you should be good to go!

  • How to make the menu drop-down list with a scroll bar

    Hello

    I have a drop-down list that is filled with different table sizes.

    I have a size of 30-element array.  Some of the last items just go off the screen at the bottom of the Simulator PB.

    Is it possible for me to add a drop-down scroll bar?

    DP = new DropDown();
    dp.rowHeight = 24;
    DP.prompt = "stuff";
    DP. Height = 34;
    DP.width = 230;
    DP.x = TitleTB.x + 170;
    DP.y = Title.y-3;
    addChild (dp);

    Some of the tables look like this-

    case 'List 1':
    dp.rowCount = 2;
    for (var i: int = 0; i<2;>
    {
    if(i==0)
    {
    DPP.splice (0);
    DPP.unshift({label:"blahblah"});)
    }
    else if (i == 1) {}
    DPP.unshift({label:"foofoo"});)
    }
    }
    dp.dataProvider = new DataProvider (dpp);
    addChild (dp);
    break;

    case "List2":
    dp.rowCount = 30;
    for (var n: int = 0; n<30;>
    {
    if(n==0)
    {
    DPP.splice (0);
    DPP.unshift({label:"lalalala"});)
    }
    Else if (n == 1) {}

    **********

    Delete the existing table using splice (0);

    then I add the new array of labels.

    Before, when I didn't have the splice (0), I only had the .unshift () and sometimes got bays combined together and a scroll bar appears automatically in the Simulator.  But then the berries were mixed.

    Thanks for the help!

    Hey mlin13,

    from the looks of it, your property rowCount is set too high. the rowCount property represents the number of lines displayed on the screen when the drop down menu is open. so if the number of rows is less than the amount of items on the list, it will create a scroll bar with a drop-down list for you. try to set the number of lines to a default value of 10 and and keep it manipulate your list from there. and see if you get the desired results. Good luck!

  • Beginner problems - how to make the sum of the lists in a drop-down table

    Hello

    Please forgive my newness but I'm creating a table with 10 + lines and columns and need to calculate the sum of the columns. The user must select a number from a drop-down list and I would like to summarize these nbumbers at the bottom of the column, seems simple enough...

    I have named each cell in the links tab but can't seem to find the script of the sum on the right. I just started using livecycle and have had a good experience so far.

    I wish it was like excel where you just need to click or highlight the cells you want to summarize and do with it but I can't seem to find the easy button...

    You can not simply highlight a column, name it and then use that name in a script to sum?

    Thanks a lot for all the help and I have looked around, but can't get a grip on this one, so I apologize if this is requested before.

    Go easy on me.

    You have to be very accurate with referencing the fields or the formulas will not work. If you have renamed the fields of their default values, then you should reference them as you named the.

    Here's an example of my hierarchy, called as you explained:

    In this case, the use of scripts on the Total field will look like this:

    this.rawValue = (Row1.A1.rawValue * 1) + (Row2.B1.rawValue * 1) + (Row3.C1.rawValue * 1) + (Row4.D1.rawValue * 1);

    So that when I switch to preview, it behaves correctly:

  • How to make a button that controls the value of a dynamic text box

    Hey guys

    I wanted to do a manufacturer Bill... sort for me. I have some products Let tell and I click on them, and clicking on these buttons, I'd give to see the numbers add up in a text box dynamics and if I could keep track of the value inside the box.

    Lets say we have 2 buttons. by clicking on the 1st and the 2nd I want to get 12 in the text box and clicking on the 2nd and 1st I would get 21 in my box.

    Is this possible atall with AS2?

    Please guide me through

    Thank you.

    ensure that:

    TF. Text =""; TF is your textfield that shows the results of your movieclip button clicks

    for (var i: Number = 0; i<>

    This ["btn_" + i] .ivar = i;  Use the movieclip buttons btn_1, btn_2,.., btn_9

    This ["btn_" + i] .onRelease = btnF;

    }

    function btnF (): Void {}

    TF. Text += this.ivar;

    }

  • How to make a loop through a list to get all the SelectedItems?

    Here is my code, but the loop is to return all items (items selected and deselected no)

    lstMarks in my ListBox.
    var markslist:String;

    for (var i: int = 0; i < marks.length; i ++) {}
    markslist = & markslist = ', ' + lstMarks.selectedItem.mymarks;
    Text1. Text = markslist;
    }

    If anyone can help. I need to get only the selecteditems in the comma delimited by the string.

    THX

    The forum feeds Media table unless you put spaces around them. Try:
    marksList is marksList + selectedMarks [i] .mymarks;.

    Tracy

  • How to make the sum of numeric fields based on a value in a text field - charge memo

    I'm working on a Weekly Report of expenses employee that contains a list of charges and each can be marked as a company or a paid employee costs.  There are two fields in the form which is to show totals for the company and the employee paid expenses.  There are seven columns for amounts, one for each day of the week.  Expense Code text fields are called "Exp1" through "Exp7".  Digital type amount fields are called 'Amount1' by 'Amount7.  The fields under each column share the same name.  (Hope that makes sense).  A screenshot is below, and a link to the form is included in order to better understand the composition of the form.  I don't know how to for a total of to the top of all expenditures that are marked with a 'C' and all those marked with an "E".  I'm not well versed in Java.  Any suggestions would be greatly appreciated!  Thank you!!

    Link to the form:

    https://www.dropbox.com/s/sgsle5bkam2y4am/expense%20Report%20v1_0%20-%20LC%20Original.PDF? DL = 0

    Expenses.jpg

    I tried to implement your requirement in the form at the following link. If please test and let me know if it works.

    https://www.dropbox.com/s/v4n9kypdnplc857/expense%20Report%20v1_0%20-%20LC%20Original_V1.p df? DL = 0

  • How to make object view transitional Readonly/editable based on the role?

    Hello

    I have an edibable based on the connected or requriment overview to display data of transient object view read-only in the user role. It is updated to display object, we can define security at the level of the entities properties and therefore we can control access to the data. If it's the transitional view object how can we do this?

    I use ADF11g.

    Very urgent! I appreciate your help.

    Thank you.

    Hello

    You can override the method isAttributeUpdateable() of the viewRowImpl.
    There, you can check the role and return true or false to the current attribute.

    if(!hasRole && i ==YOURATTRIBUTEINDEX){
        return false;
    }
    

    Gabriel.

  • How to make a text field to autopopulate based on responses in two groups of option buttons

    I use Adobe Acrobat Pro and am very new to this.

    What I want to achieve:

    I have two sets of radio buttons; a group is the choice of 'Probability' and the other group is the choice of the "Consequence". Based on what the user takes away in these two groups, I want the form to automatically fill the level of risk in another area. For example If the user selects 'Negligible' in the Group result and 'Rare' in the Group of probability; the field entitled risk rating should display the word "Low". If they choose "Negligible" and "almost certain" the domain of the risk rating should show "moderate". Please let me know if you need further information. Thanks in advance.

    You can use something like this code as the custom field of risk assessment calculation script:

    var consequence = this.getField("Consequence").valueAsString;
    var likelihood = this.getField("Likelihood").valueAsString;
    
    if (consequence=="Insignificant" && likelihood=="Rare") event.value = "Low";
    else if (consequence=="Insignificant" && likelihood=="Almost Certain") event.value = "Moderate";
    // etc.
    else event.value = "";
    

    Edit: Small error fixed in code.

  • Assistance is needed. How to make natural color?

    Help is required. How to make natural color?

    IMG_4478.JPG

    Put the layer in dynamic object and correct it in ACR:

  • Hi, PDF form of the guru. How to make a text box become a required field IF a drop-down list is selected as the "Yes"?

    Hi, PDF form of the guru.

    How to make a text box becomes a "required field", IF a drop-down list is selected as the "Yes"?

    and 'not required' if the drop down menu selected as 'No' or left blank.

    Any help would be greatly appreciated

    see you soon

    Use this code in the custom drop-down list field validation script:

    this.getField("Text1").required = (event.value == "Yes");

    (Change "Text1" to the actual name of your text field, of course)

Maybe you are looking for