Restrict the records based on the condition

Select * from EMP where deptno = 10;

O/P:

7782CLARKMANAGER7839JUNE 9, 81245010
7839KINGPRESIDENTNOVEMBER 17, 81500010
7934MILLERCLERK7782JANUARY 23, 82130010

But I need 1 sheet with as described in condition.

If JOB = 'MANAGER' pick this record

If is not available, then choose JOB = 'PRESIDENT' record

If is not available, then choose JOB = ' ' record

A way

Select * from)

Select

EmpNo

ename

work

Manager

hire_date

salary

deptno

, rank() over (stopped in case of job when = "MANAGER", 1).

When job = 'PRESIDENT' then 2

When job = 'CLERK' then 3

4 something else

end

) rnk

from EMP

where deptno = 10

)

where rnk = 1

If there is more than a Manager for example, the result would be more than one line.

If you don't want that one line in these cases use row_number instead of rank.

In this case, you want to refine the order by clause probably.

Tags: Database

Similar Questions

  • Restrict the condition on the query data - help.

    I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciated

    Select *...
    Of...
    where ps.name in ('black' or ('color' and not 'film') or ('film'))

    OAF - dev wrote:
    I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciated

    Select *...
    Of...
    where ps.name in ('black' or ('color' and not 'film') or ('film'))

    select *
    from ...
    where ps.name in ('black', 'color', 'film')
    

    list of all the options that you want to match before 'film', to 'film' last.

    Published by: user142857 on November 16, 2009 13:04

  • Displaying an icon for each record, based on a condition

    Hi people,
    I'm developing an application that uses forms 6i with oracle 10g. I have the "Grant" and "Deny" options in my application. I have also two icons is TICK icon and next is WRONG icon.according to the corresponding status icons ("granted" or "Refused") should be displayed for me.for this i have used multi-record block composed of 10 documents. Here is my sample code.
    IF :STATUS.C_STATUS = 'GRANTED' THEN
              Set_Item_instance_Property('status.tick',VISIBLE,PROPERTY_TRUE);
                   Set_Item_instance_Property('status.tick',DISPLAYED,PROPERTY_TRUE);
                   Set_Item_Property('status.wrong',VISIBLE,PROPERTY_FALSE);
                  set_item_property('status.wrong',DISPLAYED,PROPERTY_FALSE);
                     .............
    Using this code, I am able to get the visibility of icons, but it affects the entire column. For example, if the first status of cases is "granted" then TICK icon should appear to runtime.similarly if second status of cases is "denied" then ERROR icon should be displayed for me.but for me that the TICK icon is displayed for all 10 records if the State of the first record is "granted". How do the visibled corresponding icons according to status ("Granted" or "Refused"). Kindly give me a solution.

    Published by: vidusnat on May 2, 2012 12:26

    Hello

    Well, I don't think you can do it by making visible or invisible button/item. I can share an idea to create two image files a given and one for refuse. Multi record block you create an element of the image (non-database) and read the image on this element in the post (at the block level) based on the State values that you so condition...

    TRIGGER = POST-QUERY (BLOCK-LEVEL)
    IF :STATUS.C_STATUS = 'GRANTED' THEN
      READ_IMAGE_FILE('image_path\access_given.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME');
    ELSE
      READ_IMAGE_FILE('image_path\access_denied.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME');
    END IF;
    

    -Clément

  • delete records of the condition-based BAM data object

    Is it possible to delete files or data data object when any user defined condition occurs? This means that I have used the data object which consists of salary, I want to delete all data in the BAM data object when the salary is higher than 700000.

    Yes. You must create an alert in Active Studio which will remove based on this condition. Choose an event (each date interval starting at a specific date, at a specific time), and then select the action 'Clear data from a data object', choose your object data, and then add a filter for salary higher than 700000. Once the time comes it will remove the records.

    -Keith

  • Merge the queries based on the conditional

    Apex 4.2

    I have a pretty complex question. I have a page that will have a selection list on the data entry form. The selection list contains a list of both 1) Active only or 2) active and inactive areas. We show the active areas when we create a new record (P101_ID IS NULL), we appear active and inactive sectors when you edit a record (P101_ID IS NOT NULL). I have therefore two separate queries to account for each case. Simple so far.

    Problem I am seeing that create two lists of selection on the page and put a separate condition on each one (hiding one of selection lists depending on the case the ID IS NULL or the ID IS NOT NULL) does not work. So I was wondering if there was a way to combine queries for that to work based on a conditional statement. I did experiment with the instructions box and unions, etc., but my questions are a bit complicated. They are as follows:

    LIST OF ASSETS SECTORS (P101_ID is NULL)

    Select unique
    ISEC.inspection_sector_name,
    ISEC.inspection_sector_id
    From
    INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where (ISEC.hurricane_protection_flag = :P157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND
    ISEC.superseded_date is null AND
    ISEC.commenced_date is not null AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sectors_id
    From INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND
    ISEC.superseded_date is null
    Order by inspection_sector_name
    

    LIST ACTIVE AND INACTIVE SECTORS (P101_IS is NOT NULL)

    Select inspection_sector_name, inspection_sector_id From (
    Select ISEC.inspection_sector_name, ISEC.inspection_sector_id, '0' as this
    From dual, INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where (ISEC.hurricane_protection_flag = :p157_IS_HURR and ISEC.river_protection_flag = :P157_IS_RIV) AND
    ISEC.superseded_date is null AND
    ISEC.commenced_date is not null AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sector_id
    From inspection_sectors ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id AND ISEC.superseded_date is null
    UNION
    Select unique
    ISEC.inspection_sector_name|| ' [CLOSED]', ISEC.inspection_sector_id, '1' as this
    From dual, INSPECTION_SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where ISEC.superseded_date is not null and ISEC.commenced_date is not null AND
    ISEC.river_protection_flag =:P157_IS_RIV and ISEC.hurricane_protection_flag = :P157_IS_HURR AND
    ISEC.inspection_sector_id not in (
    Select ISEC.inspection_sector_id
    From INSPECTION SECTORS ISEC
    left join HWE_INSPECTION_SCHEDULING SCH on ISEC.inspection_sector_id = SCH.inspection_sector_id
    Where SCH.high_water_event_id = :P157_high_water_event_id AND
    SCH.inspection_date = :P157_inspection_date)
    OR ISEC.inspection_sector_id = :P157_inspection_sector_id NAD ISEC.superseded_date is not null
    Order by this, inspection_sector_name asc
    

    If the requests are quite complex. I tested the times and they work in APex, separately from the course. Forgive me if I have mispeled anything. But any help on this would be greatly appreciated. Thanks in advance.

    Thank you for taking to your friend Frank. You are a bird-guy (my attempt at sarcasm). Nobody has questioned whether its knowledge base; more so in the way he responded to my original post did not «do» Like the people who come on this forum looking for help to those who have greater knowledge, it would be nice to be greeted a little more friendly, lol. Just my thoughts. But, feel free to correct my spelling test, grammar and syntax in my sentences so (the effort once again to emphasize that I misspelled 'AND', and that the request would not be performed--> of course... smh... you are funny)

    Apparently I failed to explain the issue in its entirety. I should start by saying... "I have two separate petitions that I tested and already working and am looking to put on a list of selection (at the top) with a conditional execution statement one or the other, through the conditional statement, but again, I was looking for more so for syntax and structure." I'm sorry, I forgot to mention that.

    Anyway, enough of this. I found a solution to my problem:

    Within the Apex 4.2, you can have a list of selection as a page element. I want to display different results depending on whether Yes or no P101_ID is set to Null or NOT NULL

    P101_ID is a primary key for a table.

    P101_ID is not the exact name I use in my application / request however.

    In addition, you don't need to include double; It's not make or break the query. Something that I forgot to omit them.

    In addition, something along the lines of

    Select inspection_sector_name, inspection_sector_id From (
    .....all the stuff in query 1.......)
    Where P101_ID is null
    UNION
    Select inspection_sector_name, inspection_sector_id From (
    ....all the stuff in query 2.....)
    Where P101_ID is not null
    

    will work on a selection list in the APex. So problem solved. Thank you for all your wonderful insight, of words and thoughts. Thank you.

  • Insert data into the same table based on certain conditions

    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.

    How to achieve that?

    Thank you.

    978184 wrote:
    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & CurrentInstallment

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).

    You can do this way:

    This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.

    insert into your_table
    (col1, col2, col3...current_installment, month_field)
    select col1, col2, col3..,
           current_installment +
           case when paidamount > 0 and current_installment < total_installment then
            row_number() over (
                                partition by column1, column2,.. columnn      -->You may choose partition if you want the
                                                                              --Increment of Current_installment to reset after particular combination ends
                                order by primary_key        -->Order the Increment, you may choose to add more columns to order by
                              )
          else
            0                                               --> if condition is not met, then Add 0
          end curr_installment,
          add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month
      from your_table;
    
  • Please help me its urgent - restrict the update against a condition field

    Dear friends,

    I'm new to the oracle forms... I want to limit an update filed against a condition in my form.

    I use multi record block. I want to disable some fields in a row for example there are 10 records in the block record I want to disable the three elements of the 2nd file based on a condition. How can I do?

    Hello
    You can use the built form in SET_ITEM_INSTANCE_PROPERTY procedure and the appropriate property... (UPDATE_ALLOWED = PROPERTY_FALSE).

    For example:

      begin  ................    if       then          set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_FALSE);         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_FALSE);     else         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_TRUE);         set_item_instance_property('',,UPDATE_ALLOWED ,PROPERTY_TRUE);    end if;  end; 
    

    For more information, take a look at the online help...

    Greetings,
    SIM

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • How to enable or disable a paragraph based on a condition in the BIPS

    Hello reading,
    <? country? >
    How to display a line based on a condition in the DARK...
    I have a tag as a country that has the value zero or in India, I shouldn't show paragraph
    para should be included
    and also, I don't want the line below to access his location

    How can I do this...
    pls help

    I sent you the code to achieve this. Take a peek inside.

    Thank you
    BIPuser

  • Display of the conditional field of Apex Oracle

    Hello

    I created two Wizard page in Oracle Apex.

    I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

    Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

    On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

    SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

    I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

    Thank you

    Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

    It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

    Howard

  • Ignore the condition AVERAGEIF referenced cell is empty?

    I'm trying to run an AVERAGEIF function based on up to 3 sets of test values whose conditions are determined by the entries in cells referenced in the formula.

    Here is a picture of the table:

    Seminar, day and hour are the columns from the drop-down list. Registered average and average archived have AVERAGEIF formulas that use the data in the table another as test values that resolves as true when they correspond to data in the corresponding cells of the seminar, day and hour [example: IFERROR (AVERAGEIF (seminar, Schedule::Registered, $Topic, $A2, $Days, $B2, hourly seminars: $B, $C2),' ')]. This set works fine if I have all three of the cells in the columns of seminar, day and time information, but I would like to also see average which which do not take into account (i.e., what are the averages for what seminar is offered Monday, regardless of what time?). Is it possible to get these formulas to ignore the conditions that are left in white?

    Thank you!

    AVERAGEIF accept them * and? wildcard characters.  You could try to enter * in the Time column and see if your formula returns desired results.  Without seeing the data format in your time table of the seminars, however, it is difficult to know if you need to make other adjustments to make it work.

    For example, you use Date & time format of data?  If so, numbers actually stores a date and time, even if you have a cell that is formatted to display only the time. This can give results, that you are not pregnant if you do not have two cells showing that same time can be interpreted by the numbers as being different, because the part of associated of the date string date and hour is different.

    SG

  • Restrict the creation of Instances of entity of an entity that is deducted

    Hi all

    I'm working on a script where I cut the engine of the determinations of the creation of instances of an entity that is inferred based on some condition. Explaining the scenario below:

    Entities

    -----------

    Global

    | ___EntityA

                                  | ___Entity B

    Here the entity B is contained by entity A and one-to-many relationship.

    Entries of the attribute in entity A, multiple instances get generated in B as I infer the values of all attributes and the relationship in A1.

    Now let's say I have multiple instances of entity A. This will create instances of level B for each instance of entity A. Here's how it should look like:

    [Entity has]

    | Instance ___A #1(value of the attribute ID = ' A-I1 ')

    [Entity B]

    | _B #1 instance (the value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I2" "")

    | _B instance #3 (value of the attribute ID = "B- I3" "")

    | _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _B instance #5 (value of the attribute ID = "B- I6 '" ")

    : _An instance #2(value of the attribute ID = ' A-I2 ')

    [Entity B]

    | _B instance #1 (value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I3" "")

    : _B instance #3 (value of the attribute ID = "B- I6 '" ")

    : _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _An instance #3(value of the attribute ID = ' A-I3 ')

    [Entity B]

    | _B instance #1 (value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = 'B- I4 ')

    | _B instance #3 (value of the attribute ID = "B- I7")

    | _B instance #4 (value of the attribute ID = "B- I8" "")

    | _B instance #5 (value of the attribute ID = "B- I9" "")

    : _B instance #6 (value of the attribute ID = 'B- I5 ')

    In the above scenario, each instance of entity B have several attributes and entity A has only 1 attribute. Based on the value entered for the an attribute entity A instances will be generated under the entity B

    what I want to achieve with this scenario is based on the value of the attribute identifier should not be all instances in twice throughout the entire structure. For example, if the value of the Instance of entity B with B- I1 has been generated under the Instance #1(A-I1) of the entity has then it should not create an instance with the same value (B - I1 in this case) in one of the other instances of the entity a. based on the scenario, the structure should look like this:

    [Entity has]

    | Instance ___A #1(value of the attribute ID = ' A-I1 ')

    [Entity B]

    | _B #1 instance (the value of the attribute ID = 'B- I1 ')

    | _B instance #2 (value of the attribute ID = "B- I2" "")

    | _B instance #3 (value of the attribute ID = "B- I3" "")

    | _B instance #4 (value of the attribute ID = 'B- I5 ')

    : _B instance #5 (value of the attribute ID = "B- I6 '" ")

    : _An instance #2(value of the attribute ID = ' A-I2 ')

    [Entity B]

    : _B instance #3 (value of the attribute ID = "B- I7")

                                  

    : _An instance #3(value of the attribute ID = ' A-I3 ')

    [Entity B]

    : _B instance #2 (value of the attribute ID = 'B- I4 ')

    | _B instance #4 (value of the attribute ID = "B- I8" "")

    | _B instance #5 (value of the attribute ID = "B- I9" "")

    This requirement is type of emergency and guidance on this would be a great help.

    Thanks in advance

    Leila.

    Certainly not the right approach (by using a shortcut rule is almost never correct).  You need a good model and phrasings to make sense of an approach.  You will also need to express declarative "truths" in your rules.  Indicating that which is known to be true is a better approach (for declarative rules) that describe a desired outcome, given some data (procedural programming).

    I suggest you build this simple project first, and then experiment with the conditions of a rule.

    -Create a project

    -Add an entity "parent".

    -Add void entity under the parent named "child".

    -Go to the relationship with the mother (probably default to 'all instances of the child to the parent') - change this wording to "the child of the parent.

    -Open a document in the rule

    -Add a table

    -the conclusion is "the child of the parent.

    -The first column, first row "doors and windows". Firstly the condition (in the same row) ' parent = 'Hotel.

    -The first column, second line "another child" - Condition in the second row of 'TRUE '.

    -Remove the default line "otherwise".

    -Build and debug without screens

    -Add an instance of the "parent" and change its attribute ID to 'Hotel '.

    -Develop the "child of the parent" relationship and display two child instances "doors and windows" and "another child."

    -Add another instance of the 'parent' using 'Building' as the identifying attribute

    -Expand its children and notes ONLY a child "another child."

    -Export these test data to XML (more on that soon)

    Two important things to note:

    -the condition in the first row limited the creation of a child "windows and doors" to a specific parent instance (i.e. 'hotel').  Similar conditions "say" that the children must be created for parents.

    -children of each parent instance are (by definition) separate proceedings regardless of the value that you choose to use for their identification value (the value identifies, but is not necessarily unique in all of the different parents because the children of each parent are distinct from other children of parents).

    Back to XML... To prove the second point, look at the XML and note the structure (child entity is within the structure of entity (i.e. him "contained").   Also note the "id =...". ' attribute for the child instance is different for each of the bodies of THREE children.  There were 3 child instances deducted even though two of them show the same attribute value in the debugger.  you know there are three different instances because both appear under the first parent and the third appears as the second parent.

    I hope that this clears up misconceptions with "duplicates" you saw...

  • Need to restrict the region is initialized.

    Hello

    I have a page with the two regions. These regions have fragments of page linking to different objects in view. I set the conditions of rendering of these region markers that decide it rendered at run time.

    The problem I encounter is the region which also suffers from 'false' rendering makes her only the execute Query viewobject. But I need to make sure that only the regions that make the condition is true, should only get initialized.

    So in simple how limiting the area to be initialized based on the rendering State.

    Kind regards
    Marie Antoinette

    check https://blogs.oracle.com/adf/entry/how_to_set_conditional_activation_to_taskflows

  • Editing a text field in aform according to the conditions

    Hello

    We develop a custom form that has a rematch of the database.
    This form is a form master detail. He has a field called 'State' whose initial value is "Draft" and this field is present in the main part of the form.

    The logic of "Draft" is written in trigger for insertion before the header block.

    ---------------------
    Question
    ---------------------

    If the condition 'A' and 'B' is met, the status must be defined as a value called as 'sent ';

    If the condition is not satisfied and B is filled, status must be defined as a value called "Created";

    We do this in the trigger of subsequent update to the block level. But the changes do not take effect.
    Please let us know if this is the right approach for manage column. Note that the "Status" column is a column of data.


    Thanks and greetings
    SR

    HI SR,

    948611 wrote:
    Hello

    Thanks for your reply.

    I would remind the requirement:
    There are 3 statuses - project--> this-> created.

    During the initial creation of registration, it is in the planning stage.

    When this record is questioned in return and if a certain set of conditions is completed at the moment the State should change project to submitted project created or submitted.

    We reach the features above, by creating a timer in the post REQUEST trigger BLOCK-level.
    ________________________________________
    Create_timer ('ABC', 1000, no_repeat);
    ________________________________________

    In WHEN_TIMER_EXPIRED relaxation at the level of the FORM, we require a program unit that has the logic below:
    We are looking for a certain set of conditions and modify accordingly the status as:
    If condition A is true: block.status = project;
    If condition B: block.status = subject;
    If the condition C: block.status = crΘΘ;

    After that this COMMIT_FORM is published.

    So your main point works well. ;)

    Whenever the State gets past submitted or created, needs form to gray out which means that the user should not able to change the shape at this point.
    For this, we use in the trigger after REQUEST of the BUILDING, the following:

    set_block_property ("BLOCK_NAME", insert_allowed, property_false)
    set_block_property ("BLOCK_NAME", update_allowed, property_false)

    The code above works?

    There will be a situation when the record that we ask for a status as an Envoy and the creation condition is met. In this case, the State should get passed to creation of subject. But somehow, it is not updated.

    Please provide information on the implementation of this requirement.

    What done you for this and where?

    Hamid

    Mark correct/good to help others to get the right answers. *

  • restrict the entry of text in the textfield size no characters.

    I don't usually have to tinker too much with dynamic/input text, so im really hoping that this is not a matter of me finding the right or adjustment setting in the properties panel.

    I have a series of multi-line text entry fields.

    For each text field, I just need to limit the number of characters to the size of the text box. so, essentially when the field is filled in, it does not accept any new entry.

    Restrict the character field is not a viable solution based on the police approved for this project. (18 s W can fill the field, but s 18A fill in only a single line of text.)

    Any suggestion to solve this problem would be appreicated.

    M.

    Yes, you should be able to Bassontautorises similar solution using height instead of width.

  • Restrict the subset of a given timeinterval

    Hello
    I use db 10.2.0.1.0
    I have a screen where I admit user I have / ps fromdate and up-to-date.
    Assume that the user has already entered
    Fromdate                              Todate
    07/05/2011 08:15:00           07/05/2011 10:15:00     
    and if he tries to enter another series of i / p
    Fromdate                              Todate
    07/05/2011 08:15:00           07/05/2011 09:15:00     
    or
    Fromdate                              Todate
    07/05/2011 07:15:00           07/05/2011 09:15:00     
    or
    Fromdate                              Todate
    07/05/2011 07:15:00           07/05/2011 11:15:00     
    In the case above, I shou; d restrict the user. Because everything comes as a subset/superset.
    But if it captures
    Fromdate                              Todate
    07/05/2011 07:15:00           07/05/2011 08:00:00     
    Must be allowed.

    How can I check this?
    Is there any builtin function to check the subset/superset?
    Thank you

    Implement your logic like that,

       IF new_fromdate <= prev_todate  AND new_todate >= prev_fromdate
    THEN
          --Dont Allow.
    ELSE
          --Allow.
    END IF;
    

    prev_fromdate and prev_todate are the dates that the user enters first.
    Second time dates are new_fromdate and new_todate which you check in to ovelap in the above condition.

    G.

Maybe you are looking for