Set visibility property for items depending on other items

Hello,
I want to set the visibility setting for an item that I have, the steps should be as the following,
for example
if I have an item that asked,
do you have children ?
if the answer is Yes,
the next item should be visible which let's say, number of  them
if no,
the next item should be not visible
I tried to set a trigger for the item I am controlling its visibility which is
pre-text-item and wrote
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
  then
  set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
else
  set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
  end if;
but it doesn't seem to be right, ,,,
thank you

I can see two potential problems.  The first:
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item?  If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
How is the value of CHEQUE_RECIEVED set?  Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in?  If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone.  If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
Craig...

Similar Messages

  • Visible property for transient attribute.

    Hi,
    I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only when the attribute is not transient.Can we set the property for transient attribute?
    Help me on this..
    Thanks,
    Suganya.
    Edited by: Suganya on Feb 27, 2012 1:40 AM

    Disabling the visbile property:
    <af:inputText autoSubmit="true" id="it6" label="Table Attr"> </af:inputText>
    <af:inputText partialTriggers="it6" visible="#{bindings.AphdBe.inputValue eq null? 'false' : 'true'} " id="it2" label="Trans Attr"> </af:inputText>like this you should h'd.
    normally we use transiet term in vo's while coming to part ui.
    it will consider as attribute. no thing difference bwtn those attribute as timo says.
    --edited lately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is there any way to set a property for all existing Form Fields of a particular type (Che

    In versions of Acrobat prior to version 9, selecting a particular form tool (Textbox, Checkbox), etc. would only display Fields of that particular type in the Acrobat Designer (not LiveCycle).
    If one wanted to change a particular property of all check boxes for example, one would select the Checkbox Tool, Click Edit>Select All>Right Click one of the Checkboxes and Set the Property for all of the Form's Checkboxes.
    Selecting a particular form tool in the Acrobat (not Lifecycle) Designer in version 9 appears to no longer filter the display to that particular form field type. Is there any way to display only 1 particular form field type in or set a particular property for all existing Form Fields of a particular type (Check Box, Text Box, etc.) in Acrobat 9?

    Thanks for the tip..Am aware of this option and have used JavaScript to batch change properties in the past...
    Am looking for a way to replicate the interactive procedure available in previous versions.  Also, want a way to only display certain Form Field types (use this when analyzing forms which I didn't create).

  • Set layout property for dynamic group element

    hi ,
         I am creating group ui element dynamically . can any one plz tell me how to set layout property for group as gridlayout DYNAMICALY??
    Kavita

    Hi,
    Following is the skeleton of the code you need.
    IWDTransparentContainer container = view.getElement("<Your container>");
           IWDGridLayout gridLayout = container.createLayout(IWDGridLayout.class);
           gridLayout.setCellPadding(cellPadding);
           gridLayout.setCellSpacing(cellSpacing);
           IWDTransparentContainer container = null;
           IWDGridData grid = container.createLayoutData(IWDGridData.class);
           grid.setHAlign(hAlign);
           grid.setVAlign(vAlign);
           grid.setPaddingRight(paddingRight)
           grid.setPaddingRight(paddingRight)
           grid.setWidth(width)
    Regards
    Ayyapparaj

  • How to set visible property to href link

    Hi All,
    I want to open the new jsp page in the new tab when will we click on the link in my ADF application.So i tried like this.
    <af:column id="pt_c115" >
    <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a>
    </af:column>
    Im able to view my new jsp page when im click on JspLink link.But here my problem is i have nee to set the visible condition if the 'status' field of adf table is succes only i want to view the link other wise no need to visible my link.
    visible="#{row.bindings.Status.inputValue=='SUCCESS'}" is working for commandbutton.But i'm not able to see any visible property in <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a> .How can i set this condition?Please help me.I'm using JDeveloper 11.1.1.5 version.
    Thanks in Advance!
    Edited by: 851924 on Apr 5, 2012 11:22 PM
    Edited by: 851924 on Apr 5, 2012 11:23 PM

    Instead of using a jsplink you should use an af:goLink which is the adf equivalent and has all the needed properties.
    Timo

  • Non-Script Way of Setting Visible Property

    Why hello there!
    I am looking to set the "visible" property of a movie clip in
    the Flash CS3 designer, as opposed to using AS3.
    In my movie, I set a movieclip to invisible in code
    immediately. However, I sometimes see the artefact of the image for
    a split-second on running the swf in my browser. I would therefore
    like to set the property in the designer.
    I am guessing that there is not a way of doing it. Are there
    any suggestions?
    I'm now considering setting the alpha value to 0 in designer,
    and then setting the alpha value to 1 in code when I need to be
    able to see the mc.
    Raffi.

    Hey kglad,
    I appreciate the prompt response. Sorry I wasn't clear enough
    in my initial message.
    I am simply looking to be able to set, say, a rectangle
    primitive to invisible without having to set in the code. At the
    moment, I am setting the visible property to false in the first
    frame in the code. However, as a result, I sometimes (not
    frequently) see artefacting when I run my movie. The rectangle very
    momentarily appears before disappearing.
    Raffi.

  • Setting Hidden property for a Resource Object

    Hi,
    I am trying to set the hidden property for a folder by this code.
    // ICollection coll defined
    IPropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "hidden");
    IProperty prop = coll.getProperty(propName);
    IMutableProperty mutProp = prop.getMutable();
    mutProp.setBooleanValue(true);
    coll.setProperty(prop);
    This is not working, any idea what would have gone wrong ?
    Thanks,
    Sam

    Hi,
    I am not getting any excpetion...
    i have log messages before setting the propert and after setting the property...
    so if i am trying to set from false to true......it is not getting set to true but remaining as false....
    i am trying this with /documents repository.
    Can any body give some sample snippet for setting the hidden property / is there anything else i need to do to complete the setting.
    Regards,
    Satish

  • Setting default browser for Mail's contextual menu items

    I use Firefox as my default browser. In "Safari>General>Default Web Browser" I have it set to Firefox and URL links within Mail trigger Firefox as expected.
    However, if I right-click within an email message on some text and select 'Search in Google' it opens in Safari regardless of the default browser indicated in the Safari preferences.
    Anybody know how to fix this? It's very annoying.
    Dual 2.0 GHz G5   Mac OS X (10.4.8)  

    Hello,
    I have been searching for the cause of this failure, but have not found much. It may relate to some problems with Contextual Menu Items, discussed within the article at the link below, but I do not know for sure:
    http://www.macdevcenter.com/pub/a/mac/2004/05/28/cm_pt1.html
    and may relate to some incompleteness in Firefox, rather than OSX, per se. The contextual menu items are separate from the default preferences, I believe.
    Btw, while I like some aspects of a Google search with Firefox, the fact that PDF links are downloaded, rather than opened in the browser, make me prefer Safari for searches. Perhaps there is a preference to cure this problem, but I have not looked very hard for it.
    Ernie

  • Set batch management  for reasons of cost management item cannot be deleted

    Discovery was made that a material should have had batch management MARC-XCHPF selected.  Within that time sales orders were created as well as sales order stock.  411E movements were done to get rid of the sales order stock, and it can not be seen in MMBE.  MD04 is also clear.  New attempt to add batch management in the plant displayed errors - SD Documents exist (orders or deliveries) that have not yet been
    processed or that have been processed only in part.            
       Document   Item                                             
       206365     000020
    Attempt to remove item 20 from sales order and receive error
    Message no. V1128
    For reasons of cost management, item 000020 cannot be deleted.
    Diagnosis
    You tried to delete a sales document item for which cost management is carried out. Cost management can exist at item level for
       - make-to-order production
       - make-to-order stock
       - service contract item
    Procedure
    Enter a reason for rejection at item level.
    I found a similar problem on the forum but not really a solution other than throwing in the towel and making new materials.

    Hi
    What I understand from your thread is:
    You have chekced batchmanagement in
    material master & after working some time you want to remove that tick mark.
    First of all one should understand that for what ever reason batch management is ON, you can not reverse it .
    Either activation or deactivation of batchmanagement is irreversible.
    Oflat SAP had come with a note telling that how to proceed with reversal batch management.
    I have gone through that note .Finally SAP wants to take consultancy with some fees to make reversal.
    It is all pain ful job.
    If you can do it abandom thta material & create new material.
    This is the solution I can give.
    Hope it is celar to you.
    Regards
    YMREDDY

  • Help me !!!!!! set Arguments property for block based on store procedures

    hi
    i build a block based on storeprocedures ,if i set the
    Query Data Source Arguments property in design time with a value
    my form will work,
    but i need to set this property programetically and in runtime,
    if there is any built_in or other ways ,please help me.
    thanks in advance.
    shoja.

    Sorry, but there is no way to do this.
    If you need to switch the table you're selecting from, you have to do this
    inside your stored procedure.

  • Help !!!set Arguments property for block based on store procedures

    hi
    i build a block based on storeprocedures ,if i set the
    Query Data Source Arguments property in design time with a value
    my form will work,
    but i need to set this property programetically and in runtime,
    if there is any built_in or other ways ,please help me.
    thanks in advance.
    shoja.

    Sorry, but there is no way to do this.
    If you need to switch the table you're selecting from, you have to do this
    inside your stored procedure.

  • Set valign property for dynamic attribute

    hi,
    i hv created an application having dynamically created ui elements.
    i want to set valign property of the label i hv created.
    also , i want to set the latout of the transperent container.
    i hv used the foolowing code:
       trans.createLayout(IWDFlowLayout.class);
    but i get the elements one on top of next not one after another.
    plz help.
    thanks.
    regards,
    ankita

    hi,
    i hv created the following appl:
    http://infpw01622:50100/webdynpro/dispatcher/local/POP_UP/PopUp_Appl?SAPtestId=24
    bt i want it the following way:
    http://infpw01622:50100/webdynpro/dispatcher/local/DialogBox/DialogApp?SAPtestId=9
    Regards,
    ankita

  • One item depending on another item

    Hi All!
    I have a problem in connecting two (select list with submit items) with each other, in order to display a report:
    First select list: select manager_name d, manager_name r
    from manager_list
    [the second item, also select list with submit should refer to the first item, and should show only the employees of the selected Manager_name in item one]
    Second select list: select employee d, (.?.) r
    from employee_list
    where (.?.)
    How do I relate these items with a where clause in the second item in the LOV?
    And what specific code do I have to add to the report's source ?
    Thx for your help!!!!
    Jan

    This is the way it looks like:
    this is the first item (manager table)
    select manager_name||', '||manager_first_name d, manager_name||', '||manager_first_name r
    from manager_liste order by manager_name
    and this is the second one (employee table)
    select ma_name||', '||ma_first_name d, manager_name||', '||manager_first_name r
    from ma_main
    where manager_id= :P11_Manager
    It still doesn't work...

  • Setting SharingCapability property for a Site Collection using CSOM in C#

    Hello,
    I am trying to deploy multiple site collections in a SharePoint 2013 Online tenant, using CSOM in C#.
    I am currently using the SiteCreationProperties to do this, but I miss one crucial parameter : SharingCapability.
    Do you guys know a way of activating external sharing for a site collection in CSOM ?

    I believe you can set the SharingCapability of the Site after you create it. You can use the Microsoft.Online.SharePoint.TenantAdministration.Tenant.GetSitePropertiesByUrl(siteUrl, true)
    This returns SiteProperties object with a SharingCapability property you can set with the appropriate enumeration. Then call the Update method.
    http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant.getsitepropertiesbyurl(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • AQ+JMS+MQ. Can't set JMSReplyTo property for MQ-message

    Hello everyone!
    I'm trying to send JMS message to MQ-queue and I need to set fields ReplyToQ in MQMD and Rto in JMS section.
    I'm using:
    JMS_QUEUE_CONNECTION,
    Queue_payload_type => 'SYS.AQ$_JMS_BYTES_MESSAGE'
    FQ domain -> dbms_mgwadm.DOMAIN_QUEUE
    When I try to set properties using JMSReplyTo and JMS_IBM_MQMD_ReplyToQ, in result message in MQ-queue these properties doesn't set.
    I don't know how to set JMSReplyTo using v_jms_message.set_replyto(v_agent) , because v_agent has sys.aq$_agent type.
    <pre class="jive-pre">
    DECLARE
    queue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
    message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
    message_id RAW(16);
    p_xmlstring varchar2(3000);
    queue_name_val varchar2(100);
    v_agent sys.aq$_agent := sys.aq$_agent(' ', null, 0);
    v_jms_message sys.aq$_jms_bytes_message;
    enqueue_options dbms_aq.enqueue_options_t;
    msgid raw(16);
    l_header SYS.AQ$_JMS_HEADER;
    l_properties sys.AQ$_JMS_USERPROPARRAY;
    l_bytes_raw blob;
    l_length number;
    BEGIN
    queue_name_val := 'MQ_JMS_TEST';
    v_jms_message := sys.aq$_jms_bytes_message.construct;
    v_jms_message.set_replyto(v_agent);
    v_jms_message.set_type('mcd://xmlns');
    l_header := sys.aq$_jms_header
    (null,null,null,null,null,null,l_properties);
    dbms_lob.createtemporary(l_bytes_raw,true);
    l_bytes_raw:=utl_raw.cast_to_raw('<some_message>');
    l_length :=dbms_lob.getlength(l_bytes_raw);
    v_jms_message := sys.aq$_jms_bytes_message
    (l_header
    ,l_length
    ,null
    ,l_bytes_raw);
    v_jms_message.set_string_property('JMSReplyTo','queue://SOME_BROKER/SOME_QUEUE');
    -- v_jms_message.set_string_property('JMS_IBM_MQMD_ReplyToQ','SOME_QUEUE');
    DBMS_AQ.ENQUEUE(
    queue_name => queue_name_val,
    enqueue_options => queue_options,
    message_properties => message_properties,
    payload => v_jms_message,
    msgid => message_id);
    END;
    </pre>
    Can anybody help, please?

    Hello everyone!
    I'm trying to send JMS message to MQ-queue and I need to set fields ReplyToQ in MQMD and Rto in JMS section.
    I'm using:
    JMS_QUEUE_CONNECTION,
    Queue_payload_type => 'SYS.AQ$_JMS_BYTES_MESSAGE'
    FQ domain -> dbms_mgwadm.DOMAIN_QUEUE
    When I try to set properties using JMSReplyTo and JMS_IBM_MQMD_ReplyToQ, in result message in MQ-queue these properties doesn't set.
    I don't know how to set JMSReplyTo using v_jms_message.set_replyto(v_agent) , because v_agent has sys.aq$_agent type.
    <pre class="jive-pre">
    DECLARE
    queue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
    message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
    message_id RAW(16);
    p_xmlstring varchar2(3000);
    queue_name_val varchar2(100);
    v_agent sys.aq$_agent := sys.aq$_agent(' ', null, 0);
    v_jms_message sys.aq$_jms_bytes_message;
    enqueue_options dbms_aq.enqueue_options_t;
    msgid raw(16);
    l_header SYS.AQ$_JMS_HEADER;
    l_properties sys.AQ$_JMS_USERPROPARRAY;
    l_bytes_raw blob;
    l_length number;
    BEGIN
    queue_name_val := 'MQ_JMS_TEST';
    v_jms_message := sys.aq$_jms_bytes_message.construct;
    v_jms_message.set_replyto(v_agent);
    v_jms_message.set_type('mcd://xmlns');
    l_header := sys.aq$_jms_header
    (null,null,null,null,null,null,l_properties);
    dbms_lob.createtemporary(l_bytes_raw,true);
    l_bytes_raw:=utl_raw.cast_to_raw('<some_message>');
    l_length :=dbms_lob.getlength(l_bytes_raw);
    v_jms_message := sys.aq$_jms_bytes_message
    (l_header
    ,l_length
    ,null
    ,l_bytes_raw);
    v_jms_message.set_string_property('JMSReplyTo','queue://SOME_BROKER/SOME_QUEUE');
    -- v_jms_message.set_string_property('JMS_IBM_MQMD_ReplyToQ','SOME_QUEUE');
    DBMS_AQ.ENQUEUE(
    queue_name => queue_name_val,
    enqueue_options => queue_options,
    message_properties => message_properties,
    payload => v_jms_message,
    msgid => message_id);
    END;
    </pre>
    Can anybody help, please?

Maybe you are looking for