Add an item to select once choice in create mode.

Hi,
Jdeveloper :11.1.2.1.0
I am creating a record using createinsert operation. i have a selectOneChoice list based on a query based VO. if the value i am looking is not present, i should be able to add value in a popup to populate into lov by clicking add button beside the lov and then select the value.
please give suggestion to achieve solution for this.

when popup opens i clicked createinsert operation to fill some fileds. when i click on rollback in the popup , entire transaction is getting rollbacked instead of the popup transaction. when i click commit in the popup to save the filled in values , lov is not getting refreshed, i added AdfFacesContext.getCurrentInstance().addPartialTarget(bndLov) top refresh the lov.

Similar Messages

  • Add an item in a showed choice

    Is it possible to have a component similar to the adress in a browser? Does the choice have a function for it?
    I'd like to add a component that let you either select an item or add a new item.

    If I use a vector to store the items, Do I have to administrate and update it or the System does it.

  • How to add one item into Unit of meas.when create an operand?

    I am creating an operand, I want to select KGAL in Unit of meas., but it is not in the lists, How can I add KGAL to the list?Thanks.

    Hi tiff512:
    The way is:
    SAP NetWeaver > General Settings > Check Units of Measurement.
    The help documentation says the following in relation to the creation of new units of measure:
    "If required, define new units of measurement according to the international system of units (SI) with the menu function Unit of meaurement -> Create.
    Here you have to make make specifications for:
    Display (including a descriptive Units of measurement text)
    Conversion (not applicable to units of measurement without dimensions)
    Data exchange (EDI) (optional)
    Application parameters"
    I hope it is helpful to you.
    Regards,
    David

  • Add field in dynamic selections to ME2A, to create aselection view in LDB

    Hi all,
    I would like to include in the search selection of ME2A the field 'Relevant for agency business', but this field doesn´t appear at the purchasing document . I´ve been reading that by the Logical database builder it is possible to do this, but I don´t manage how.
    I've been trying (with transaction SE36) to copy from Source view - SAP to Target view - CUS for some logical database (for example LDB - ELM) and I havn't been success. I received Error "The selection view does not exist"
    Which LDB should I choose? How to create a selection view  STANDARD SAP ?
    Thanks in advance
    All Regards

    Dear  Weiyang         
    kindly note that as per SAP note 310886 Only certain tables or fields are permitted
    Permitted tables:
    SKA1: all fields
    SKB1: all fields
    BSIS: all fields
    no other table is allowed
    so your field BKPF-CPUDT is not allowed in dynamic selection
    Hope your query is solved
    Cheers
    IMK

  • How to make any select one choice attribute read only base on different att

    i have two select one choice attribute .one is create without binding and another one is base on data control .i do not want to write code in backing bean for making attribute read only .
    Example:
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1"
    autoSubmit="true">
    <af:selectItem label="Y" value="Y" id="si3"/>
    <af:selectItem label="N" value="N" id="si1"/>
    </af:selectOneChoice>
    <af:selectOneChoice value="#{bindings.ViewObj.inputValue}"
    label="#{bindings.ViewObj.label}"
    required="#{bindings.ViewObj.hints.mandatory}"
    shortDesc="#{bindings.ViewObj.hints.tooltip}"
    id="soc2" partialTriggers="soc1">
    <f:selectItems value="#{bindings.ViewObj.items}" id="si2"/>
    </af:selectOneChoice>
    </af:form>
    on the basis of first select one choice the second select one choice should be disable .
    i know that i need to bind first select one choice to backing bean .also make auto submit true and add partialTriggers in second select one choice .
    please give me hints
    thanks
    prateek

    please give me any example using backing bean .for example
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
    autoSubmit="true">
    <af:selectItem label="A" value="1" id="si1"/>
    <af:selectItem label="B" value="2" id="si2"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
    partialTriggers="soc1">
    <af:selectItem label="C" value="3" id="si3"/>
    <af:selectItem label="D" value="4" id="si4"/>
    </af:selectOneChoice>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    package a;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class A {
    private RichSelectOneChoice l1;
    public A() {
    public void setL1(RichSelectOneChoice l1) {
    this.l1 = l1;
    public RichSelectOneChoice getL1() {
    return l1;
    is there any mistake

  • Problem while creating row with dependent select one choice in adf  table

    Iam having independent and dependent select one choice in a ROW in adf af:table
    unable to insert more than one row with dependent select one choice using create insert in adf table.
    Able to add more rows in UI af:table but ,ignoring previous rows (select one choice values) and only latest current row values is getting inserted to the database.
    Following is the code used to create row and for pointing to the current row
    public void addRowOnSecSettings(){
    SecurityGroupSettingsVOImpl SecGroupSetVO =(SecurityGroupSettingsVOImpl) this.getSecurityGroupSettingsVO1();
    try{
    int rowCount = SecGroupSetVO.getRowCount();
    SecurityGroupSettingsVORowImpl SecGroupSetRow =
    (SecurityGroupSettingsVORowImpl)SecGroupSetVO.createRow();
    SecGroupSetRow.setNewRowState(Row.STATUS_INITIALIZED);
    SecGroupSetVO.insertRowAtRangeIndex(rowCount, SecGroupSetRow);
    SecGroupSetVO.setCurrentRowAtRangeIndex(rowCount);
    SecGroupSetVO.setCurrentRow(SecGroupSetRow);
    } catch (Exception e) {
    e.printStackTrace();
    Regards,
    Bhagavan

    as it is dependent select one choice ,have already put auto submit="true".but no chance ,
    if i add two rows vo rowiterator showing count 2 but only current row select onechoice values are getting where as previous row select one choice values are null.

  • How to extend and add calculated item in EO Based VO?

    Hi All,
    I have a requirment where I have to add few fields on the page.
    These fields are based on one Custom table and few calculated columns.
    The existing VO of the page is based on EO which is based on PL/SQL.
    approach I am thinking to follow for custom table is -
    a) Create a EO based on Custom table
    b) extend the VO of the page to add New EO and its column.
    c) write code in New EO Impl to insert the row.
    But the thing which I am not able to figure out is how to add calculated item in VO.
    I have created a PL/SQL package to return calulated item, but not able to figure out where to call this package.
    Could any one please list out the approach to follow for this.
    Regards,
    Adarsh

    If the calculated attribute is not going to be used for any business logic and just for display purposes you can create a transient attribute in the VO directly else create the transient attribute on the EO.

  • Select One Choice shows 25 items I need about 100.

    Hi, I'm new to Jdeveloper 11g and ADF.
    I'm building an application that requires "select one choice", "Select Many Shuttle" and some others, but they only show 25 items. If I add a "Next Set" button I can retreive the next set of 25 items, but I don't like it this way. I would like that the controls display all the items at once (about 70 items).
    Thanks,
    Mike.

    Hi Mike,
    You can implement the suggestions given by Timo and Puthanampatti for fetching all the rows and display in list. However, having more items in the list would make the selection of an item from the list difficult for the users. Instead, you might want to implement List Of Values instead of a Select one choice. List Of Values has a search capability inbuilt which would help the users to narrow down the selection, instead of scrolling through all the records in select one choice.
    To implement that, instead of setting the list type to select one choice (in your model - for the attribute for which you've defined list of values), change it to input text with list of values.
    HTH.
    -Arun

  • Connected webpart - add item with selected data

    Hi!
    I have a page with connected web parts.
    Example:
    List one: Companies
    a address List with companies
    List two: Employees
    A list with employees and a relation to companies (Company name).
    On the view item on companies i have list Employees connected. When i add an item i would like to have the Company name selected in the drop down.
    I have seen examples on using JavaScript but this doesn´t work in SharePoint 2013. Anyone with a solution for this, Jslink perhaps?

    Hi,
    According to your post, my understanding is that you wanted to add item with selected data in connected webpart.
    I recommend to use lookup column in the Employees to add a relation to companies.
    You can check “Yes” under “Require that this column contains information”. Then you need to select an company when you add a item.
    The result is as below:
    If you want to set the defult value for the lookup column, you can use InfoPath and no code.
    For more information, please refer to:
    SharePoint 2010 - Set default value for a lookup column using InfoPath and no code
    In addition, a simple add-on(SharePoint Default Value Add-On) which inject a "default value" section into "Create Column" dialog, seems to be a solution.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Can you eliminate an item from a drop down menu after it is selected once so it isn't selected again

    Can you eliminate an item from a drop down menu after it is selected once so it can't be selected again be someone else?

    I am sorry but Formscentral doesn't support any type of dynamic form content updating.
    Andrew

  • How to refresh the list of select one choice which is inside a table?

    Hello I am using Jdeveloper Version 11.1.2.1.0.
    The table is a normal table that is made to look like a treeTable.
    For some rows are or can be parents with Parent_vo_group_id = null and other are children with parent_vo_group_id = vo_group_id of the parent...
    If a children changes its parent_vo_group_id to null it can become a parent as well.
    I am having a select one choice inside a table column. The list comes from the same table with column Name:
    <af:table value="#{bindings.VoGroupAdminView2.collectionModel}" var="row"
                                                      rows="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      contentDelivery="immediate"
                                                      visible="#{bindings.VoGroupAdminView2Iterator.currentRow != null}"
                                                      fetchSize="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      partialTriggers="::soc1" styleClass="AFStretchWidth"
                                                      rowBandingInterval="0" editingMode="clickToEdit"
                                                      binding="#{adminGroupManagementBean.groupTable}"
                                                      selectionListener="#{adminGroupManagementBean.groupSelectionListener}"
                                                      rowSelection="single" id="t5">
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.Name.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                           id="c1">
                                                    <af:inputText value="#{row.bindings.Name.inputValue}"
                                                                  requiredMessageDetail="Please enter a group name"
                                                                  label="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                                  required="true" id="it7" immediate="true" autoSubmit="true"
                                                                  columns="#{bindings.VoGroupAdminView2.hints.Name.displayWidth}"
                                                                  maximumLength="#{bindings.VoGroupAdminView2.hints.Name.precision}"
                                                                  shortDesc="#{bindings.VoGroupAdminView2.hints.Name.tooltip}"
                                                                  contentStyle="#{row.ParentVoGroupId eq null? 'font-weight:bold' : 'padding-left:20px'}"
                                                                  valueChangeListener="#{adminGroupManagementBean.groupNameChangeListener}"
                                                                  partialTriggers="soc2">
                                                        <f:validator binding="#{row.bindings.Name.validator}"/>
                                                    </af:inputText>
                                                </af:column>                                   
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.label}"
                                                           id="c4">
                                                    <af:selectOneChoice value="#{row.bindings.ParentVoGroupId.inputValue}"
                                                                        label="#{row.bindings.ParentVoGroupId.label}"
                                                                        simple="true" immediate="true"
                                                                        required="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.mandatory}"
                                                                        shortDesc="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.tooltip}"
                                                                        id="soc2" autoSubmit="true"
                                                                        unselectedLabel="&lt;null&gt;"
                                                                        valueChangeListener="#{adminGroupManagementBean.parentIdValueChangeListener}"
                                                                        visible="#{row.bindings.ChildrenCount.inputValue eq 0 ? true : false}">
                                                        <f:selectItems binding="#{adminGroupManagementBean.selectOneChoiceList}"
                                                                        value="#{row.bindings.ParentVoGroupId.items}"
                                                                       id="si2"/>
                                                    </af:selectOneChoice>
                                                </af:column>
                                            </af:table> My select one choice uses the same iterator as the table.
    <iterator Binds="VoGroupAdminView2" RangeSize="-1" DataControl="AppModuleDataControl"    id="VoGroupAdminView2Iterator"/>The table uses this view called VoGroupAdminView:
    Select t1.vo_Group_id,     
           t1.name,
           t1.Vehicle_Owner_Id,
           t1.Graphical_Symbol,
           t1.Lm_Comment,
           t1.Parent_Vo_Group_Id ,
           decode (t2.children_count, null, 0, t2.children_count) as children_count
           from
    (SELECT VoGroup.vo_Group_id,     
           VoGroup.name,
           VoGroup.Vehicle_Owner_Id,
           VoGroup.Graphical_Symbol,
           VoGroup.Lm_Comment,
           VoGroup.Parent_Vo_Group_Id
      FROM VO_GROUP VoGroup
    START WITH VoGroup.Parent_Vo_Group_Id IS NULL
    CONNECT BY VoGroup.Parent_Vo_Group_Id = PRIOR VoGroup.Vo_Group_Id
    order SIBLINGS by VoGroup.name) t1,
    (select parent_vo_group_id, count (parent_vo_group_id) as children_count from vo_group
    group by parent_vo_group_id) t2
    where t1.vo_group_id = t2.parent_vo_group_id (+)the ParentVoGroupId attribute has list of values from this view object called VoGroupAdminLov:
    SELECT
        VO_GROUP.NAME,
        VO_GROUP.VEHICLE_OWNER_ID,
        VO_GROUP.PARENT_VO_GROUP_ID,
        VO_GROUP.VO_GROUP_ID
    FROM
        VO_GROUP
    WHERE  VO_GROUP.PARENT_VO_GROUP_ID is null
    and VO_GROUP.VO_GROUP_ID <> ?
    order by  VO_GROUP.NAMEI want to refresh the list of values in the select one choice everytime when i add a new row in the table, delete row in the table or change the value of select one choice component.
    What I have tried:
        public void parentIdValueChangeListener(ValueChangeEvent valueChangeEvent) {
            this.setValueToEL("#{row.bindings.ParentVoGroupId.inputValue}", valueChangeEvent.getNewValue());
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery(); //refresh the table view object;
            am.getVoGroupAdminLov1().executeQuery(); //refresh the list of values view object
            voGroupAdminIterator.invalidateCache();  //remove the cache of the iterator
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true)); // set the selected row again.
            RichSelectOneChoice soc =
                (RichSelectOneChoice)FacesContext.getCurrentInstance().getViewRoot().findComponent(":pt1:t5:soc2");
            AdfFacesContext.getCurrentInstance().addPartialTarget(soc);
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable);    
        }When i am adding a new row to the table its select one choice list is refreshed but only for the new row. The rest rows have not updated list of values for their select one choice components.
        public String addGroupButtonAction() {
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObjectImpl voGroupAdminView = am.getVoGroupAdminView2();
            Row newRow = voGroupAdminView.createRow();
             newRow.setNewRowState(Row.STATUS_INITIALIZED);
            voGroupAdminView.insertRowAtRangeIndex(0, newRow);
            am.getTransaction().postChanges();
            return "null";
        }Edited by: 897833 on Mar 19, 2012 9:07 AM

    I made a button to refresh the value of select one choice and it doesn't work yet.
    So I just move one of the
        public String refreshParentIdSOCButtonAction() {
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery();
            am.getVoGroupAdminLov1().executeQuery();
            voGroupAdminIterator.invalidateCache();
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true));
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoice);  //refresh the binded SOC as you said
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoiceList); //refresh the binded list even
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable); //refresh the table it is in;
            return null;
        }Edited by: 897833 on Mar 23, 2012 2:58 AM

  • Populating static values in addition to database value in select one choice

    Hi All,
    We are using jdev 11.1.1.2.0.
    I am populationg a select one choice based on a read only VO. The vo is populating fine,but in addition to the values from the database I want to add two static values. I want to add 'select customer' and 'all customer'.
    Currently I am doing this using UNION in the sql query of my VO. WhenI add union in my sql query its taking more time to load the value from the database.
    Is this the proper adf way to do it? Is there someother way to attain it.
    Following is the query I am using to populate one of the VO's
    SELECT * FROM(
    SELECT ID,NAME,3 SORT_ORDER FROM CUSTOMER
    UNION
    SELECT -1,'SELECT CUSTOMER,1 FROM DUAL
    UNION
    SELECT -2,'ALL CUSTOMER,2 FROM DUAL)
    ORDER BY SORT_ORDER,NAME
    Please advice
    Susan

    Hi,
    You can do this usecase by populating the values to SelectOneChoice Programmatically.
    <af:selectOneChoice label="List"
    binding="#{MyTestBean.myTestListComponent}">
    <f:selectItems value="#{MyTestBean.listOfItems}"/>
    </af:selectOneChoice>
    backing bean code will be:
    public List<SelectItem> getListOfItems() {
    List<SelectItem> items= new ArrayList<SelectItem>();
    SelectItem si = new SelectItem();
    //if u trying to populate data from VO then u have set the values
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind = (DCIteratorBinding)dcBindings.get("DepartmentsView1Iterator");
    for(int i=0;i<iterBind.getEstimatedRowCount();i++)
    Row row = iterBind.getViewObject().getRowAtRangeIndex(i);
    if(row!=null)
    si = new SelectItem();
    si.setLabel((String)row.getAttribute("DepartmentName"));
    si.setValue(row.getAttribute("DepartmentId"));
    items.add(si);
    //here you can add the static values;
    si = new SelectItem();
    si.setLabel("Static Value1");
    si.setValue("Static1");
    items.add(si);
    si = new SelectItem();
    si.setLabel("Static Value2");
    si.setValue("Static2");
    items.add(si);
    return items;
    }

  • Set focus on item that selected in multiple-selection list box field in infopath

    Hi
    I have  multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
     publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
    I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
    Thanks.

    Hi,
    According to your post, my understanding is that you wanted  to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
    I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
    We can follow the steps as following:
    Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
    Set the default value for the text box control as
    substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
    (you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
    Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
    In addition, you can add Formatting action to hide the text box control.
    Here are the result screenshots for you to take a look at:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Add an item to all state machine constants

    I have a state machine using an enum for the state indicator.  In
    the current state, the next state is indicated by an enum
    constant.  If I want to add a state, how can I update all of the
    constants?  Here is the problem.  If I add (or delete) an
    item in the selector of the case structure, it is red because the enum
    constants do not have that value in them.  Conversely, if I add an
    item to one of the constants I can "Add case for every value" and add
    it to the seletor, but then I have to manually add that item to each of
    the other constants.  Also, the way I usually create the constants
    is to pop-up on the exit tunnel for the enum in the case structure and
    "Create constant".  Unfortunately, that tunnel retains the choices
    of the old enum and the new choice must be manually added.  Is
    there any way around this?  I would like a method that allows me
    to add or delete choices at will and have all of the constants
    automatically update to match.
    Roy

    Well LabVIEW has just what you need in the "type def"! The next time you create a enum, right click on it, select create a control go to the front panel, right click on the control and select "Advanced" and then "Customize" to enter the control editor (if you have selected in your front panel "tools", "options", "front panel", "open the control editor with a double click", you can ust double click on the control to enter the control editor). In the control editor you will see a toolbar pull down with the "Control" option. If you pull it down and change to "Type Def" you can modify the control and all copies of it will now get automatically updated, including constants created from the type definition. The strict type def controls the look of the control as well, so it is most often used to make sure that operator interface instances of a control look the same. When you save this new type def it should ask you whether to update all instances, which will update the original control , you will have to go back and make a constant from the new control type to replace that original one, but now every copy made from that one will update when you update the type definition, and you can do that from the constant on the diagram by right clicking and selecting "open type def".
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • [WP8.1][Xaml]Update ListView items when other items are selected

    hi,
    i am developing an app for windows phone and using listview to list items. i am using custom template for the listview item. this custom template contains labels, image and button.
    i trying to update the other listview items while one item is selected or multiple item selected. to change listview item i am iterating over the listview and try to get custom template using visual tree helper class. using helper class i am able to retrieve
    control from custom template. once i changing the image in listview if i scroll the listview vertically image changed to its default state.
    is it possible to change the custom template values using visual tree helper class or do i need to do some other changes in my code.
    please suggest.
    <ListView x:Name="lst" Grid.Row="2" SelectionMode="Single" SelectedItem="{Binding ListBoxSelectedItem}"
    ItemsSource="{Binding TssVariableInfo}" Padding="0" Margin="0"
    HorizontalAlignment="Stretch" Grid.Column="0" Grid.ColumnSpan="2" ReorderMode="Disabled" AllowDrop="False"
    VerticalAlignment="Stretch" Holding="lst_Holding" >
    <ListView.ItemTemplate>
    <DataTemplate>
    <local:VariableTemplateSelectorClass Content="{Binding}" FontFamily="Segoe UI" >
    <local:VariableTemplateSelectorClass.IsLiteAndNonDuplicate >
    <DataTemplate>
    <Border BorderThickness="0,1,0,1" BorderBrush="DarkGray" x:Name="bordername">
    <Grid Margin="0,0,0,0" Tapped="Grid_Tap" x:Name="GridVarDetail" Background="#E8E8E8" Holding="Grid_Hold" HorizontalAlignment="Stretch" Width="{Binding ElementName=lst, Path=ActualWidth}">
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="16"/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="6*" />
    <ColumnDefinition Width="4*" />
    </Grid.ColumnDefinitions>
    <Image x:Name="imgLegend" Source="/Assets/Images/Legends/00-Blank.png" Width="13" Height="13" Grid.Row="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></Image>
    <TextBlock Foreground="Green" Margin="14,0,0,0" Grid.Row="0" FlowDirection="LeftToRight" x:Name="lblCustomerGivenName" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
    Text="{Binding VariableCustomerGivenName }" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" VerticalAlignment="Bottom" FontSize="16" />
    <TextBlock Foreground="Green" Margin="14,0,0,0" Grid.Row="1" VerticalAlignment="Top" Width="Auto" x:Name="lblStandardName" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
    Text="{Binding VariableStandarName}" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" FontSize="16" />
    <TextBlock Foreground="Gray" Margin="14,0,0,0" Grid.Row="2" VerticalAlignment="Top" Width="Auto" x:Name="lblSection" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
    Text="{Binding SectionName }" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" FontSize="16" />
    <TextBlock Margin="321,0,40,0" Foreground="Red" Grid.Row="0" VerticalAlignment="Bottom" Width="Auto" x:Name="lblValue" Grid.Column="1" TextWrapping="NoWrap"
    Text="{Binding Value}" FontWeight="Normal" HorizontalAlignment="Right" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="16" />
    <TextBlock Foreground="Gray" Margin="321,0,40,0" Grid.Row="1" VerticalAlignment="Top" Width="Auto" x:Name="lblLastDate" Grid.Column="1" TextWrapping="NoWrap"
    Text="{Binding LastDate}" FontWeight="Normal" HorizontalAlignment="Right" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="16" />
    <Image Source="/Assets/Images/LeftArrow.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="imgLeftArrow" Tapped="btnMore_Tap" />
    <Image Source="/Assets/Images/2Y-OFF.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="btn2Y" Tapped="btn2Y_Tap"/>
    <Image Source="/Assets/Images/CP-Off.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="btnTL" Tapped="btnTL_Tap" />
    </Grid>
    </Border>
    </DataTemplate>
    </local:VariableTemplateSelectorClass.IsLiteAndNonDuplicate>
    </local:VariableTemplateSelectorClass>
    </DataTemplate>
    </ListView.ItemTemplate>
    </ListView>
    private void Grid_Hold(object sender, HoldingRoutedEventArgs e)
    if (e.HoldingState != Windows.UI.Input.HoldingState.Started)
    return;
    Image imgPlotImage;
    Grid GridVar = (Grid)sender;
    imgPlotImage = (Image)GridVar.FindName("imgLegend");
    General.VariableArrayYAxis.Add(dataObject.VariableID);
    General.DictSelectedVariableType.Add(dataObject.VariableID.ToString(), dataObject.IsTSSLite.ToString());
    GridVar.Background = new SolidColorBrush(Color.FromArgb(100, 255, 255, 255));
    Image imgLeftArrow = (Image)GridVar.FindName("imgLeftArrow");
    imgLeftArrow.Visibility = Windows.UI.Xaml.Visibility.Visible;

    That link is my signature not that i have provided it for reference. 
    You already have implemented binding in your code, just like you have bindings for TextBlock's 'Text' property, likewise you can defined a property for the 'Visibility' of image in the code behind
    e.g.
    private Visibility imgvisible
    public Visibility_ImgVisibility
    get { return imgvisible; }
    set
    if (imgvisible!= value)
    NotifyPropertyChanging("_ImgVisibility");
    imgvisible= value;
    NotifyPropertyChanged("_ImgVisibility");
    Then in xaml file, bind this property with the Visibility property of Image and access it as per your requirement (e.g. on tap of an item)
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

Maybe you are looking for

  • To run a ping job

    hi, i found a script that pings equipment in a network and tells the status, since we have many machines that spans through many networks and names so it is almost impossible to identify them by ip address, so can anybody help me to modify this littl

  • Will deleting my iCloud account off of my iPhone delete any information and pictures off of my phone?

    Having lost my original email password, and Icloud account password, will deleting my iCloud account off of my phone strip images from my photo stream? I am in desperate need of updating my Iphone and have already set up a new icloud account, but am

  • IPhone 4s new IOS update problem. Itunes not reading phone anymore. Help!

    I decided to update my IPhone, since I had the time. Thankfully, I did a back up before doing so. I hit "update" and my phone worked normally through it, until it said "Waiting on IPhone" for quite a few minutes. The screen of my phone also has the I

  • Setting display

    Hallo friends. Today I bought new iPhone 5S. Please can you give me an advise how to set display ( background ) on this phone. I had an old iPhone 3G, but that's another phone. The problem with display is, that three quarters of the display is in nor

  • Problem in running the servlet

    I have compiled the servlet and put the class file HelloWorld.class inside $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes/ directory, under tomcat6.0.18 and also mapped servlet in $CATALINA_HOME$/webapps/ROOT/WEB-INF/web.xml, as below web.xml:     <?xm