How to hide a node with no children in ADF Tree after Search

Hi,
I have a tree component with Search in my screen.
I followed http://www.jobinesh.com/2010/01/search-by-child-attributes-on-tree.html to implement search.
Search is performing on the childnodes, once the search is done I am expanding all the nodes and displaying only the filtered records.
my code to expand all the nodes :
public void expandAllTreeNodes() {
UIXTree tree = getGroupTree();
RowKeySet disclosedRowKeys = new RowKeySetTreeImpl(true);
CollectionModel model = (CollectionModel)tree.getValue();
JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
JUCtrlHierNodeBinding nodeBinding = treeBinding.getRootNodeBinding();
List<JUCtrlHierNodeBinding> childNodes = nodeBinding.getChildren();
if (childNodes != null) {
for (JUCtrlHierNodeBinding _node : childNodes) {
disclosedRowKeys.add(_node.getKeyPath());
disclosedRowKeys.remove(_node.getKeyPath());
tree.setDisclosedRowKeys(disclosedRowKeys);
Now I want to hide the nodes which does not have children after search.
how can I hide the node if _node.getChildren() is null.
Could any one provide some inputs on this.
Thanks,
Swathi

AE Basics
Keyframe the mask path.

Similar Messages

  • Filteredtreemodel, how to hide parent nodes if no children

    hi. i have surfed and read a lot of posts and topics here regarding filteredtreemodel. some i found hard to understand so i chose to use NiceGuy1's code from long ago since it's the easiest to understand.
    package test;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import java.util.ArrayList;
    import java.util.Enumeration;
    public class FilteredTreeModel extends DefaultTreeModel {
        // this hashmap gets the list of pdf files and the filter status
        private String filterText;
        private DefaultMutableTreeNode orig_root;
        public FilteredTreeModel(DefaultMutableTreeNode root) {
            super(root);
            orig_root = root;
        public void setFilterText(String s) {
            this.filterText = s;
            reload();
        public String getFilterText() {
            return this.filterText;
        @Override
        public Object getChild(Object parent, int index) {
            return getFilteredChildren(parent).get(index);
        @Override
        public int getChildCount(Object parent) {
            return getFilteredChildCount(parent);
        @Override
        public int getIndexOfChild(Object parent, Object child) {
            return getFilteredChildren(parent).indexOf(child);
        private int getFilteredChildCount(Object parent) {
            return getFilteredChildren(parent).size();
        private ArrayList<TreeNode> getFilteredChildren(Object parent) {
            ArrayList<TreeNode> filteredChildren = new ArrayList<TreeNode>();
            DefaultMutableTreeNode parentNode = null;
            parentNode = (DefaultMutableTreeNode)parent;
            for (Enumeration e=parentNode.children(); e.hasMoreElements();) {
                DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode) e.nextElement();
                DefaultMutableTreeNode dummy = null;
                  if (nextNode.children().hasMoreElements()) {
                      filteredChildren.add(nextNode);
                } else {
                    // if node is leaf node
                    if (filterText == null ) {
                        // add right away if no filter
                        filteredChildren.add(nextNode);
                    } else {
                        // if filter matches this leaf node, add it. if not, how to check if
                        // parent nodes have empty children and remove it.
            return filteredChildren;
    }i havent had luck the whole day trying to make this work. it seemed that once the filteredChildren.add() is called, it gets rendered to the treecellrenreder right away so if i wnat to remove the parents (in case it has no children based on the filter),the parent nodes will stay put in the jtree. any workaround? or ideas? i dont want to use a different defaulttreemodel for this. i want to avoid that because i have lots of nodes in my jtree.

    Looks like you need this:
    for (Enumeration e=parentNode.getFilteredChildren(); e.hasMoreElements();) Edit: okay, that was just a quick guess. Actually you're going to get into trouble if you try to recursively suppress nodes with no children. First you suppress all the leaf nodes (because they naturally don't have any children). Then you suppress all of their parents, because now they don't have any unsuppressed children. Then you suppress all of the parents' parents, because now they don't have any unsuppressed children... and so on until you only have the root left. So you need to refine that requirement.
    But I get what you're saying. I had to do a similar thing, only I didn't use a FilteredTreeModel, I just built the TreeModel based on a selection from another tree. It's ridiculously hard to do when you don't get the nodes in order from the database, too, but that's a different problem.

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • What about Bug  - FRM-47316: Branch nodes with no children are not allowed

    Hi friends,
    I've just executed another inherited application (Win XP, forms 6i, client/server)..and.. the first on the screen:
    FRM-47316: Branch nodes with no children are not allowed
    The application has a "tree menu".. I supose the problem appears when it's trying to load menu nodes...
    I've searched in metalink, and it only appears a post (483897.995) saying that this is a bug, but...I can't understand if it's already solved in Forms 6i
    Any ideas?
    Thanks,
    Jose.

    Hi friends,
    I've just executed another inherited application (Win XP, forms 6i, client/server)..and.. the first on the screen:
    FRM-47316: Branch nodes with no children are not allowed
    The application has a "tree menu".. I supose the problem appears when it's trying to load menu nodes...
    I've searched in metalink, and it only appears a post (483897.995) saying that this is a bug, but...I can't understand if it's already solved in Forms 6i
    Any ideas?
    Thanks,
    Jose.

  • How to hide or do not show the receipt's name after miss called?

    1. How to hide or do not show the receipt's name after miss called?
    2. I do not want to show my message statement in the screen.

    I have also registered to this forum to inform that the problem with showing the MAC-address in the sidebar of the finder is still not solved.
    The strange thing is that the Embedded Web Server says:
    "This specifies the Bonjour domain name assigned to the device, in the form <host name>.local. If a user-specified host name has not been assigned, the default host name HPxxxxxx is used, where xxxxxx are the last 6 digits of the LAN hardware (MAC) address. This option cannot be modified."
    But I did assign a user-specified host name and that name does show-up everywere (also within Bonjour), except in the sidebar of the finder (hp###xx##x####). Lots of people have the same issue, when searching on the interet, but not one has found the solution.
    Please help with solving this issues?

  • How to show catalog items with Approval Status:Pending in a Content Search Webpart

    How to show catalog items with Approval Status:Pending in a Content Search Webpart using cross site publishing. Thanks in advance.

    I don't think you're going to be able to. Usually Approval Status is used in conjunction with Major/Minor versioning and while Approval Status is pending the item is usually a draft.
    As a result the search crawler should not be able to see the draft items as it would not have the necessary rights to do so. (Good practice ensures that the Search Crawler has only read access and is not an elevated account for this reason)
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • How to create a node with attribute?

    hi,
    does anyone can help with creating an XML node with only attributes but no value?
    e.g.
    <root>
       <category node_id='ND1'>
          <value id='1'>some value in here</value>
          *<extra_node desc="this is the new node i want to create"/>*
       </category>
       <category node_id='ND2'>
          <value id='1'>some value in here</value>
       </category>
    </root>in the example, what i want to do is to get the category using XPath, and insert one attribute node into it.
    anyone can help? sincerely appreciated!

    No, the question was not about attributes with no value, it was about elements with no value.
    Now I know that the "value" of an element is a meaningless term in XML, but the OP's example shows that the question was how to produce an empty element. Even though the text describes the operation as "insert one attribute node", which doesn't agree with the example.
    It's easy to create an empty element using DOM, but we have no idea whether the OP is talking about DOM programming or what.

  • Hi, I just watched a Collin Smith How to Hide a Face with AE video. I'm stuck on mask movement size

    I created the mask successfully and I can get it to follow the face while hiding it... but as the person moves away, I'd like to change the mask to a smaller size to avoid covering more than the head.
    Here's the video: http://tv.adobe.com/watch/no-stupid-questions-with-colin-smith/how-to-hide-a-face-in-after -effects/
    Here's the question I left for Collin Smith:
    Hi, your video was extremely clear and I followed along well. My one question is... what if the person moves closer and further away. When the person is close my mask is perfect, but as they move away it becomes too large and covers shoulders and back. Is there anyway to adjust the size of the mask like we do the position as he moves? Thanks again.

    AE Basics
    Keyframe the mask path.

  • How to hide root node of hierarchy?

    Hi,
    can anyone give me a hint how to hide the root node of a hierarchy?
    Thank you very much in advance, best regards
    Frank

    Hi Frank,
    Another way would be to restrict the hierarchy in the query definition. Select all nodes, except the root. You can do the same in excel and save the query as a view. Of course, you have to maintain this selection every time the hierarchy gets new nodes.
    Natali

  • How to hide the fields with labels when page re-rendering

    Hi Gurus,
    Please help me to hide the fields with labels when page is re-rendered.
    I have written a on load : before process also.
    But it is not working
    Thanks in advance
    kavitha L

    Hi jari and Bruce,
    Thanks for your reply. I am sorry that, i am not clear
    I have a javascript like
    function showcase()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
       doSubmit('CREATE');
    function showcase12()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Event')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Other')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT'); 
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
    }This script i am calling on, onchange() for the select list item P3_CHANNEL and it is working fine.
    But i have a create button and cancel button.
    After filling the details in the required columns, when i click the create button, if any validation errors are there.. the page is re-rendered. while doing that the hidden items are getting displayed back.
    Tried Solutions:
    1. I created a same function once more and in the last added the doSubmit('CREATE') and called the script from the create button.
    At that time the hidden fields labels are getting displayed.
    2. I created a process On load before header To call this script on a condition :REQUEST = 'CREATE'
    Then also fruitless..
    I hope now it is clear....
    Please! Any suggestion are mostly appreciated.
    Thanks in advance
    Kavitha L

  • How to Hide JBO Exceptions in JSF Pages in ADF 10g

    Hi All,
    How to hide the JBO Exceptions in ADF 10g, for example JBO-27122: SQL error during statement preparation. I have been used the same customizing error handler which was specified in bcadfdevguide. But the method reportexception which will call disableappendcodes is not doing anything in my case.
    I want to show some decent errors instead of JBO errors to the user, appreciate if you help me on this.
    thank you.

    Hi Jobinesh,
    Thanks for the reply, actually i am looking to show the user our own customized error instead of JBO errors, i don't know whether the method skipexception will skip it or i can override it to show customized exceptions. and registering the customerrorhandler in databindings is different from registering the customphaselistener class in faces-config.xml which was usually done in 10g.
    But in my case, even though i followed everything what was specified in dev guide, i am not getting the result. Hence this post in forums :)
    Thanks.

  • How to hide the Save Results Layout checkbox on the Create Saved Search pop

    I need to hide the Save Results Layout checkbox on the Create Saved Search popup. Can anyone tell me how to do it?
    This popup is used when the user is on a query (rendered by the af:query component) and they select click the "Save..." button. The have three options, Set as Default, Run Automatically, and Save Results Layout. I have an implementation that supports everything except saving the layout. So I need to hide that checkbox.
    Thanks,
    Mike

    For anybody else who needs to do this, here is how I did it.
    Add this to your css
    /* This hides the Save Results Layout checkbox on the Create Saved Search screen */
    span[id$='saveLayout'] {
    visibility: hidden;
    }

  • How to populate value node with values?

    Hi Experts,
    I have created a new view with a vlaue node of table type.
    How can I populate values into the value node?
    Which method will be useful?
    Is there any material for Web UI Programing?
    Please help me in this.
    Thanks,
    Adi.

    Hi Adi
    If ZVal is your value node then,
      DATA: lref_entity    TYPE REF TO cl_bsp_wd_value_node,
            lref_bo_coll   TYPE REF TO if_bol_bo_col,
            lref_data TYPE REF TO <<your ZStructure>>,
             ls_data type <<your ZStructure>>.
    ls_data-<<field1>> = 'XYZ'
    ls_data-<<field2>> = 'XYZ'
         CREATE OBJECT lref_bo_coll TYPE cl_crm_bol_bo_col.
          CREATE DATA lref_data.
          CREATE OBJECT lref_entity
            EXPORTING
              iv_data_ref = lref_data.
          lref_entity->set_properties( ls_data ).
          lref_bo_coll->add( lref_entity ).
          typed_context->ZVal->set_collection( lref_bo_coll ).
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

  • How to create a node with XML

    Hi everybody,
    How can I create an XML node?
    I try whith createnode, but don't work
    Thanks
    Carles

    Thanks Gordon,
    I try do understand, but i can't
    I have:
    oNodo = oDocument.SelectSingleNode("BOM/BO/Documents/row/vers")
    if vers doesn't exist, then i have to create it
    <bom>
    <bo>
    <Documents>
    <row>
    <vers>here i want to set a value</vers>
    </row>
    </Documents>
    </bo>
    </bom>
    I've tried with oNewNodo = oDocument.CreateElement("vers") and it works, but doesn't put where i want
    thanks
    Carles

Maybe you are looking for

  • Make item read-only after Approved using SPD Workflow

    Hi All - Is it possible to create a workflow in SPD 2013 which can make approved items readonly for the creator of the item.  Regards, Khushi Khushi

  • My Mac 10.6.8

    my Mac 10.6.8 has stopped playing Youtube videos etc and for some reason it wont install the new required Flash PLayer. It has been fine beofre this

  • Pl help ! ! Opening a servlet URL using stand aline java application

    Hi Guys, I have a standalone java application. This application will get executed after some by some thread. What I want to do is when this java application is executed, automatically open a URL in internet explorer which is of my servler/jsp and pas

  • Showing file names in Slideshow mode

    Anyone know how to show the image filename in slideshow mode? I often use Slideshow to help me pic out the strongest images in a set, but it would be really good to be able to see the file name so I could more easily remember them! Seems you can have

  • Windows: I've moved "My Documents" to a network drive.

    Only the itunes folder was then available, with the rest of my songs "not found".  I've since added my new location as a library, so now I have a duplicate of most of my songs. Sadly only half of them are available, with the rest not found. How do I