programming of nodal attribute based on a condition

Hello

I created a subvi, which displays a nodal configuration window

function of the State (display or initialize) I don't want the front to display each time

is it possible to insert a program inside the condition below ti determine during which the condition of the sub - vi are to display?

Thank you

Use a node to invoke to make the visible façade.  The method is the VI-> before Panel.Open.  To close the front panel, use the Panel.Close method before.

Tags: NI Software

Similar Questions

  • Attributes of the product - conditionally select

    with the e-commerce system, can you have select / display the attributes of different products based on a condition.

    The best example would be... to aid in selecting a cake.

    a sponge cake can have 2 type of cream, normal and simulated of cream.

    With cream normal you can have fresh fruit garnish

    With the simulated cream cake, I can only have flowers as a garnish.

    (Select the cake 1) Normal 2) mock

    If normal is only to see the selection of fresh fruit

    If the model is selected only show choices for the flowers.

    The simple answer is have 2 separate products (cream and fresh cream simulated)

    Michael

    Hi Michael,

    Unfortunately, we do not have a feature that will allow for the selection of the conditional attributes at this stage.

    You do not know if this is still possible using custom javascript, but will leave this thread open to the community of possible suggestions.

    Kind regards

    -Sidney

  • Disable a button based on a condition

    Hello

    I want to disable a button based on some condition.
    Suppose I want to disable a particular button, if the value of ACTIVE_FLAG in a table "Y".

    I put disabled = true in the attributes of the button, but I don't know where to put the condition.

    Thank you
    Deepak

    Deepak,

    Put this in the footer text.

    
    

    Make sure you have set the source of the item as "always replace.." for P1_ACTIVE_FLAG point and get the value from database.

    See this link for the Javascript API of APEX

    See you soon,.
    Hari

    Published by: Hari_639 on October 30, 2009 12:45

  • Hide an entire column based on a condition

    Hello

    I'm trying to completely hide a column in a table based on a condition, if the column was not present. I wrote two conditional regions for the header and data, but it is still showing up. Any help would be appreciated. The XML model RTF, the PDF generated and the output I'm looking is attached. Thank you.

    Please check your email that I have forwarded to update the model.

    I counted occurrences of January in your xml and formed the condition based on the fi

    MONTH

  • 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;
    
  • Generate reports based on two conditions

    Dear all,
    I generate reports based on satisfactory conditions in two columns in a table.

    For example.
    I have a table test1 with columns A, B, C, D, E
    Now, I want to create reports based on the research of two columns A and b. What is the preferred method to do?

    Thanks in advance.

    What is the preferred method to do?

    Write the appropriate query:

    select a,b,c,d,e
    from test1
    where a = 
    and b = 
    

    In reports, the State may be a user input parameter:

    select a,b,c,d,e
    from test1
    where a = :parameter1
    and b = :parameter2
    
  • 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

  • Remove duplicates based on a condition

    Hi all

    I need help on a query to remove the duplicates based on a condition.

    For example, my table is

    FE CC DATE FLAG
    ----------------------------------------
    FE1 CC1 10/10 FB
    FE1 CC1 FB 9/10
    FE1 CC1 11/10 AB
    FE1 CC2 9/10 AB
    FE1 CC2 10/10 FB
    FE1 CC2 11/10 AB

    I want to delete all duplicate rows FE and CC, based on the sub condition:
    DATE < MAX (DATE) WHERE FLAG = "FB".

    This means I want to remove the FB 9/10 FE1 CC1 line
    but not lines
    FE1 CC1 10/10 FB
    and
    FE1 CC1 11/10 AB
    as only the FE1 CC1 line 9/10 FB has date < MAX (DATE) WHERE FLAG = "FB".
    Similarly, I want to keep
    FE1 CC2 10/10 FB
    FE1 CC2 11/10 AB
    but not
    FE1 CC2 9/10 AB

    Thank you very much.

    Can be like that...

    delete from  t
    where dt < ( select max(dt) from  where fe=t.fe and cc=t.cc and flag='FB' )
    
  • display edit link based on a condition problem

    Hello

    Someone can such me how I can display the link change in every line of my report based on a condition... is the query on which my report is formed, as shown below

    SELECT COMPUTER_ID,
    COMPUTERNAME, BATCH, DESCRIPTION, OPERATING_SYS.
    PRIMADMIN_PHONE, PRIM_ADMIN, PRIMADMIN_CNID,
    SECONDADMIN_PHONE, SECONDARY_ADMIN, SECADMIN_CNID,
    RACK_NUM, MAINTENANCE_WINDOW from cts_masterserverview where ACTIVE_STATE = 'Active'.


    All these data are from several fields. If city and Andy see, probably they will remember... They helped me to change this option much... my problem is now
    I did the columns computer_id, which is the key in all other tables as a button change. And when the user clicks this edit button, data row respective are filled in the form, where the data can be changed...

    My requirement is now, at each change of line button should appear only if the user logged on as long as the PrimAdmin of this line... I am recovery PrimAdmin_CNID so that it can be compared against: APP_USER. All others should be able to view the data, but not modify... I am not able to figure out how I can conditionally display as I do for the other buttons.

    Can someone give an idea on how to do...


    Thank you
    Yvette

    Published by: user0012 on May 1st, 2009 13:25

    Hi David,

    Use the following query to conditional change the link,.

    SELECT
               CASE WHEN PRIMADMIN_CNID = :APP_USER THEN
                  ''
                ELSE
                         ' '
                END Edit
               ,COMPUTER_ID
               ,COMPUTER_NAME
               ,STATUS_ID
               ,DESCRIPTION
               ,OPERATING_SYS
               ,PRIMADMIN_PHONE
               , PRIM_ADMIN
               ,PRIMADMIN_CNID
               ,SECONDADMIN_PHONE
               ,SECONDARY_ADMIN
               ,SECADMIN_CNID
               ,RACK_NUM
               ,MAINTENANCE_WINDOW
               from cts_masterserverview
    where ACTIVE_STATE = 'Active'
    
    Add onclick= before "javascript above and Change the number 7 in the javascript to the page where you have edit form.
    

    Thank you
    Manish

  • How to hide a button in the page based on the condition button bar

    Hello

    I have a requirement to hide apply and save on value-selector button released in the status field to create work order page.

    kindly help

    ProcessRequest:

    Am = (OAApplicationModule) oapagecontext.getApplicationModule (webBean) OAApplicationModule;

    OAViewObject oaViewObj1 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (oaViewObj1 is nothing)

    {

    oaViewObj1 = (OAViewObject) am.createViewObject ("xxcustPVO", "xxcust.oracle.apps.eam.workorder.server.xxcustPVO");

    If (oaViewObj1! = null)

    {

    oapagecontext.putDialogMessage (new OAException ("got added attributes"));

    }

    }

    ProcessFormRequest:

    OAViewObject vo2 = (OAViewObject) am.findViewObject ("xxcustPVO");

    If (vo2.getFetchedRowCount () == 0)

    {

    VO2. InsertRow (VO2. CreateRow());

    Line OARow = (OARow) vo2.first ();

    row.setAttribute ("RowKey", new Number (1));

    oapagecontext.putDialogMessage (new OAException ('value inserted in VO'));

    }

    Based on Condition

    If (vo2! = null) {= (OARow) vo2.getCurrentRow (); line}

    If (line! = null) {}

    oapagecontext.putDialogMessage (new OAException ("inside the vo attribute"));

    row.setAttribute ("xxApply", Boolean.valueOf (false));

    row.setAttribute ("xxSave", Boolean.valueOf (false));

    }

    Card apply n Save button with SPEL

  • Validation on the value entered for the attribute-based LOV

    Hello

    I use R12 and created an integrator based on a Table based on a table of seedlings open interface. I use an approach that does not involve PLSQL since the Integrator is based on a Table on a table of seedlings open interface and I have so defined it an importer to call a simultaneous program seeded import. I also put in place a LOV component on one of the attributes in the interface.

    My question is, if in the spreadsheet, the user double-click in the cell LOV to extract, and then select a value (for example if they are in copying and pasting quite a few records if they manually type a value) and the value you entered don't is not one who belongs to a group of data from the LOV, this would raise a validation error when loading?

    In this scenario, I would LOV to serve as a validation check to ensure that users can choose only one value that would be in the LOV, even if they have not actually open the popup LOV and selected a value there. I have some research which I would probably need to validate the data against and because my approach is purely a non-PLSQL that I think the best way to achieve this.

    Appreciate your help as always

    Concerning

    Not to worry, I think I answered my own question by developing a little proof of concept.

    As expected, you can enter values that are part of the DataSet LOV. Enter any other value will highlight the line as an error line asking the user to enter a valid value.

    Thank you

  • Make some lines in a table based on a condition.

    I have a table based on a View object that displays four columns: Secure, Description, username and Date.

    Currently it displays all the data based on the request of the VO.  When a user clicks on a line, the complete 'Description' is showed in a below - rich text editor where it can be updated and saved in the database.

    I am facing a problem of application of security for the page.  The scenario is as follows:

    If a logged-in user (defined in the flowrate range of Page), does NOT match the user name on a specific line (user name of the database), AND "Safe" is TRUE (in the case of the database, '1'), then the 'Description' should NOT be visible.

    Looks like I can set the property 'Lent' on the specific Description column, but if it is not made and the user clicks on the line, the value of the Description always displayed in the below rich text editor.

    What would be the best way to do this?  Is it possible to manually set the Description of the '< Secured >"(or something) in the table and the text of the editor if the condition is true? I hope that this is possible is because I want that line to be always present, just the Description hidden in both components.

    This should be done by programming or can be done with an EL expression?

    If by programming is the only way, how can I write logic for Page loading?

    Thank you!

    This can be done with an EL expression. You can write an EL expression for visible or properties readonly or disabled of the elements present within af: column.

    The EL expression can look like the line is #{pageFlowScope.userName. The name}, click the line if you have written the code to display Description in your bean to manage programmatically you can access pageFlowScope username and apply the same condition.

  • Enable and disable the item based on the Condition

    Hi Experts,

    I work in the form of 10g, I conditionally.

    I have the block master detail.

    Master block contains sub elements.

    CUSTOMER

    Address (read only) - no database element

    PRODUCT GROUP (read only) - no database article

    Note: The CUSTOMER is LOV, when I select the customers, I'm failing address and product group.

    Block detail contains sub elements.

    DATE OF START OF BLOCK

    DATE OF END OF BLOCK

    REASON

    Note: when I opened form all fields of retail blocks are enabled

    Requirement:

    1. when I created new record, at the time where I select the customer name, Bill and product group will be by default, in the block of detail - I want to activate and deactivate the block start date based on the value of the product group.

    2 if I erase block master, I need to activate the block_start_date like back when the new form is opened

    3. when I search the data also, block start date must be enabled and disabled based on the value of the product group.

    Could someone help me the best approach to achieve so that she will have no side effects.

    Thank you

    801619 wrote:

    Hello

    Thank you for your response... I have tried code trigger after change of category of products below.

    If: blockname.product_group = "Aviation" then

    set_item_property ('block.block_start_date', enabled, property_false);

    On the other

    set_item_property ('block.block_start_date', enabled, property_true);

    end if;

    1. it is disable the Group field when I put the cursor inside if the product category is "Aviation", but I want it to be automatic at a time where it will default to the value of product category.

    2. If the master clear record, is not allowing return product group

    3 suppose that if enter new record category of products "Aviation", once I put the cursor inside, it's debilitating, let's say if I erase the main recording without saving the changes, it not again allows the Group of products, it is now status (disable) previous.

    4. in query mode, it is not disabling or enabling from a group of products.

    Help, please.

    Thank you

    Ok.

    1. put your code on this trigger after changing point that fills the default value in the product category.

    2. remove the trigger after change of product group.

    3 put the same code to trigger once - new - Record - Instance of the main block.

    Hope this helps

    Hamid

  • Display of an LOV element based on a condition

    Hello

    I have 2 Articles lov cascading.

    For example: 1 item: objects (such as jobs, the steps in the chain, the rules)

    2nd item: list of the selected object (list whole jobs, the entire step list)

    So based on 1 selected item, the list of available objects that "object" gets posted to the 2nd point.

    Now my question is,
    I wanted to have a 3rd item (the item name = string names (which is also in cascade lov)) so that is above 2 items that should be displayed string single step is selected in article 1. Otherwise this should be displayed at all.

    I created a page at end of www.apex.oracle.com test and the credentials are,

    http://Apex.Oracle.com/pls/Apex/f?p=71510:5

    User name: test

    Password: apex14gm

    In this page, I've listed the full report below for reference.

    As in the report, student MBA made hostel anywhere.

    If they choose MBA, hostelroom_location element should be hidden and it should be visible if they choose any other departments with the exception of MBA at the 3rd point.

    How can I achieve this?

    Pls help me... Its pretty urgent!

    Thanks in advance

    8f4692cc-040e-48EE-B102-590cdd4303fc

    We are a friendly bunch who wish to communicate with peaple not a bunch of numbers so if you change your to something more human and friendly Manager who would be much appreciated. Secondly, we are all this in our time free then message as urgent to people actually put off answering your question.

    Use a dynamic action with a show and hide the action.

    The element must be the P5_DEPARTMENTS.

    The affected item is P5_HOSTELROOM_LOCATION

    The condition for the action of true/false is MBA.

    For examples, see see hide it.

    Nicolette

Maybe you are looking for