Databasevalue of a binding item

Hi everybody,
i have a table idcode with which i created a viewobject and displayed in adf as intput textbox items and select one choice list's
user can change the value any no.of times before comitting the changes.whenever he changes the this value i want to compare with database value..based on certain conditions i want to show popup.
how can i get the database value of a binding item in backingbean?
thanks
KM

Have a phaselistener and identify the value of the attribute on page load & store it in the variable in the managed bean.
Whenever the user changes the value - on value change listener for the component, get the current value and compare the value with the above and show popup conditionally.
Thanks,
Navaneeth

Similar Messages

  • Drill Reports (Binding Item Variables)

    Hi
    Does anyone know how to bind to an item variable that does not have a value to return i.e. because the value is blank or missing?
    I have summarised data on one page, and when I drillin, I would like to see the detail for the bound items that have missing data.
    Thanks in advance
    Kezie

    Any suggestions about this?

  • Why is the template binding not refreshing?

    I made this itemtemplate for a combobox:
    <DataTemplate x:Key="EO_CategoryItemTemplate">
    <Grid>
    <Line
    Stroke="Gray"
    StrokeThickness="1"
    VerticalAlignment="Center"
    X1="0"
    X2="{Binding ActualWidth, ElementName=cat1}"
    Visibility="{Binding Active, Converter={StaticResource EO_BooleanToVisibility}, ConverterParameter=Reverse}"
    />
    <TextBlock
    x:Name="cat1"
    Text="{Binding Name}"
    ToolTipService.ToolTip="{Binding InactiveTooltip}"
    VerticalAlignment="Center"
    HorizontalAlignment="Left"
    />
    </Grid>
    </DataTemplate>
    The problem is the line.  It seems to only get set in the combobox's main text ONCE.  On the first SelectedItem change.  After that, its length is still that of the first item.
    In the popup listbox, it is fine.  Each item has a different length line.
    Is there something I can do so that the combobox text has a line through the actual characters?

    I spent some time looking at this and I'm afraid I have nothing but bad news.
    My markup
    <Grid x:Name="LayoutRoot" Background="White">
    <Grid.Resources>
    <DataTemplate x:Key="TestTemplate">
    <Border HorizontalAlignment="Left">
    <Grid VerticalAlignment="Center">
    <TextBlock x:Name="NameTb"
    Text="{Binding Name}" Foreground="Gray" />
    <Line StrokeThickness="1"
    VerticalAlignment="Center"
    X1="1"
    X2="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=Border}}"
    Stroke="Black" />
    </Grid>
    </Border>
    </DataTemplate>
    </Grid.Resources>
    <ComboBox ItemsSource="{Binding Items}"
    ItemTemplate="{StaticResource TestTemplate}" Height="30" Width="200" SelectionChanged="ComboBox_SelectionChanged"
    />
    Code behind
    private T FindControlByType<T>(DependencyObject container, string name) where T : DependencyObject
    T foundControl = null;
    //for each child object in the container
    for (int i = 0; i < VisualTreeHelper.GetChildrenCount(container); i++)
    //is the object of the type we are looking for?
    if (VisualTreeHelper.GetChild(container, i) is T && (VisualTreeHelper.GetChild(container, i).GetValue(FrameworkElement.NameProperty).Equals(name) || name == null))
    foundControl = (T)VisualTreeHelper.GetChild(container, i);
    break;
    //if not, does it have children?
    else if (VisualTreeHelper.GetChildrenCount(VisualTreeHelper.GetChild(container, i)) > 0)
    //recursively look at its children
    foundControl = FindControlByType<T>(VisualTreeHelper.GetChild(container, i), name);
    if (foundControl != null)
    break;
    return foundControl;
    private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
    ComboBox cbo = sender as ComboBox;
    if (cbo.SelectedItem != null)
    int ix = cbo.Items.IndexOf(cbo.SelectedItem);
    ComboBoxItem cboI = cbo.ItemContainerGenerator.ContainerFromIndex(ix) as ComboBoxItem;
    Line ln = FindControlByType<Line>(cboI, null);
    if (ln != null)
    ln.Visibility = Visibility.Collapsed;
    // ln.Visibility = Visibility.Visible;
    // Debug.WriteLine(ln.X2.ToString());
    //BindingExpression be = ln.GetBindingExpression(Line.X2Property);
    //be.UpdateSource();
    As you can see, I'm obtaining a reference to the line object.
    When I  then:
    explicitly updatesource on the binding, no effect.
    debug writeline X2 - gives correct length, matching the item but not what you see in the selection.
    I also tried invalidating and forcing arrange and measure and all that lark on the combo.
    No joy.
    This one is the weirdest.
    If you set visibility to collapsed on the line you still see the "wrong" line visible in the selection part of the combo.
    Despite the fact that the item in the combo has  no line.
    Once that thing gets a line, it's keeping hold of it.
    My conclusion is that this is a bug.
    I would guess your chances of getting it fixed for Silverlight 4 are vanishingly slim though.
    A work round I can think of, would be to maybe draw the text and image onto a bitmap.
    Present those in the combo.
    If your line visibility is actually dynamic that's not going to work.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • ER: restricting auto binded objects types 11g.

    When we want to create an autobind between a backing bean and a JSF web page, bindings code is created for all object on the page. Even panel box, faced etc.
    There is many lines of code on backing bean. We d'ont even use one time for many object type.
    In general we use input text, list item etc. Others are unnecessery.
    In my opinion if there is a configuration which supplies to chose binded item types it will be very good.
    lines of code will be decreased in backing bean and complexy is decreased too.
    For example just input test item can be autobind.
    Thanks.

    Hi,
    When I first started out with this, I thought the autobind function was pretty neat as I thought it would save me time and effort from having to bind objects myself. Boy, was I wrong. Adding/removing anything from the Jspx page while debugging requires a restart. That was enough to stop me from using it further.
    When you create a new JSF Page, click on *"Page Implementation"* and make sure you have the *"Do Not Automatically Expose UI Components in a Managed Bean"* selected. That way, you won't get into the trouble you are in. I agree with Frank that you should only bind components when and if you need to only. If you have already created the page and would like it to stop automatically binding each UI component, follow the steps below:
    1) Open your JSPX page in source code view, remove the commented line below.
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingBeanYours-->Optionally, you can replace it with the following code to point to your managed bean that handles the user actions.
    <!--oracle-jdev-comment:preferred-managed-bean-name:managedBeanYours-->2) Open faces-config.xml in source code view, and look for your backingBean that is auto Binding each UI component. Within its <managed-bean>...</managed-bean> tags, you will see another oracle-jdev comment like the one below. Remove that as well.
    <!--oracle-jdev-comment:managed-bean-jsp-link:1YourPage.jspx-->JDev should stop autobinding / removing UI components from the backing bean now.
    Regards,
    Chan Kelwin

  • Matrix with Items

    Hi, I've added this matrix to a new folder in the Items Master Data Form. The problem seems to be when you bind the data to the form. I can't see what's wrong with it. Can anyone help?
    string table = "OITM";
    // getting the matrix column by the UID
    oColumn = oColumns.Item( "icode" );
    oColumn.DataBind.SetBound( true, table, "itemcode");
    oColumn = oColumns.Item( "iname" );
    oColumn.DataBind.SetBound( true, table, "itemname" );
    Message was edited by:
            Costas Ioannou
    Message was edited by:
            Costas Ioannou

    I think it's because I'm binding Items to the Item Master Data form because it works perfectly when I use the same matrix on another form eg. business partners. Is there any way around this?

  • Dropdown Binding with WSDL

    Hi all,
    I am trying to populate values in  dropdown using WSDL data connection.I bind Item with data connection field in object palette , i put item text = $ and item value =  $ . What else i need to do to populate field value in drop down dynamically .
    Points are sure .
    Thanks in advance
    Anukool

    I changed WSDL file , i replaced table with exporting parameter and used table type and regenerated WSDL and map with dropdown it is working fine now .

  • How to Pre-select an item when making an ISR DDL.

    I am trying to mimic the functionality of the "Position Field' in the SPPD, but I can't figure out how it is pre-selecting the PLANS_CURR box with the current position.
    I basically want a drop down bo, which I am populating with data using ls_special_data, and I am able to do that fine, but now I would like to specify and certain record to be pre-selected.
    Does anyone know how to do this?
    Thanks,

    hi Tim and Sridhar,
    How do we do the binding.
    On the Adobe dynamic binding I See see.
    for example for the forms field PERSK_NEW
    ITEM Binding
    Item value          text
    Item key           key
    but the source code in ls_additional_data has this code
    ls_additional_data-fieldindex = index.
    ls_additional_data-fieldname ='PERSK_KEY'.
    ls_additional_data-fieldvalue = int_table-key.
    append ls_additional_data to additional_data.
    ls_additional_data-fieldindex = index.
    ls_additional_data-fieldname = 'PERSK_LABEL'.
    ls_additional_data-fieldvalue = int_table-label.
    append ls_additional_data to additional_data.
    endloop.
    In this case how is PERSK_KEY  bound to Item key
    and 'PERSK_LABEL' bound to item value
    Please guide. I am trying to create a PCR from scratch and got stuck up big time at this point

  • Bind WPF grid to non-observable collection

    Hello,
    I have an object of MyClass, returned by business tier.
    MyClass has a property of type List, say
    class MyClass
    public string Name;
    public List<Whatever> Items;
    I want to bind that collection of Items to grid in WPF screen with two-way updates using MVVM.
    If I bind List<Whatever> via property, my grid does not reflect any changes to the underlying property b/c List does not support NotifyPropertyChanged.
    I create a new Observable Collection from  List<Whatever>, bind it to grid and it works fine. But now I have 2 instances of the same data in memory, one as List<Whatever> and one as ObservableCollection<Whatever>.
    Now, if I make changes to ObservableCollection via UI, it gets modified by framework, but I have to manually update List object with the same changes to keep them in sync, b/c after user is done with changes and wants to save modified MyClass, I need
    to make sure MyClass.Items has all the user's changes.
    My question is - isn't there a better way handle this situation than copying List to ObservableCollection and back?
    Can I bind List property directly to Grid and still have two-way updates out of box? Any suggestions?
    Thank you!
    Isolda

    Thanks for your replies. I did make public List<Whatever> Items into a property in my ViewModel, so that ViewModel looks like this
    class MyViewModel : INotifyPropertyChanged
        private MyClass _myClass = new MyClass();
        public string Name { get { return _myCLass.Name; } set{ _myClass.Name = value; }}
        public List<Whatever> Items { get { return _myClass.Items; } set { _myClass.Items = value;}}
    XAML is this
    <telerik:RadGridView ItemsSource="{Binding Items, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True}" />
    Whenever I add items, I call NotifyPropertyChange("Items").
    Grid does not reflect changes to the List, unless I do something to the grid, like click to Sort the column.
    The second comment about changes to Whatever objects in the list - "Whatever" is a DTO object, really don't want to add any code to it... I think I'll just stick to copying from List to Observable collection and back, although I'm concerned
    about 2 times more memory.
    If I misunderstood your replies pls let me know what I'm missing.
    Thanks.
    Isolda

  • Populate field1 in table, based on dropdown value of a field2 in same row

    Hi Experts,
    I have created an offline interactive Adobe form and need help with java-script on events. I will describe my scenario below -
    I have written an SE38 report program which will generate the PDF. To pre-populate fields in the PDF, I have a structure Default_Values which has a few internal tables. One of the internal tables Employees has 2 fields Emp_Code and Emp_Name. I have written code to obtain a list of employees and populate this internal table Empoyees. I call the Adobe form and along with other parameters, pass this structure Default_Values. Thus all the default values along with the internal table Employees pre-populated with the Employee Code and Employee Names have been passed to the Context.
    In the Adobe form I have a table with 10 lines with Employee details (6 columns, 2 of which are Emp_Code and Emp_Name)
    In this table control, the column Employee Name is a drop down list. For this column, under List Items, I have created a binding to the internal table Employees with default values. This binding Items looks like this - $record.DEFAULT_VALUES.EMPLOYEES.DATA[*] with Item Text and Item Value having the value EMP_NAME.
    When I test the form, I can see all the Employee Names in the drop down list in the column Employee Name of the table control.
    My requirement is that when a user selects an Employee Name from the drop-down list, the field Emp_Code for that row in the table control should be automatically populated with the corresponding value of Emp_Code  depending on the Emp_Name which the user has selected.
    I am new to Java-scripts and Adobe forms. I have searched this and other forums, however I couldn't find the right code which I can place in either the Change or Exit event of the drop-down to accomplish this.
    Can someone please provide me with sample code to achieve this.
    Any help will be greatly appreciated.
    Thanks in advance.
    Regards,
    Neha

    Hi Neha,
    I would prefer not to use FormCalc for this requirement.
    Array Processing shall be done in Java Scripting and you simply cannot have two different scripting language elements in the same scripting block.
    First create a table type parameter in the interface or GT_* type in Global variable and pass all the necessary entries of dropdown to the table type parameter. Once included in the context it shall be available in your data view of the form.
    To access any repeating instance node of the form in the data view, use te following script -
    var theFields = xfa.resolveNodes(
                      "xfa.datasets.data.data.CUSTOMERS.DATA[*].NAME");
    assuming that you have a table named CUSTOMERS in the Data View.
    For more details on XFA Data Model refer to
    [http://help.adobe.com/en_US/livecycle/es/lcdesigner_scripting_reference.pdf]
    Hope these inputs help.
    Regards,
    Rohit

  • How can I get my TextBlock to have a "strike-through"?

    I already have a template where I have been using a line to strike-through a Combobox items in its popup listbox.
    But now I have the case where I have the same item in a datagrid row.  And the column can be resized.  The TextBlock allows wrapping and does, but how can I use that template when the text wraps?  The line is only on one line of the wrapped
    text.
    The template I'm using is:
    <DataTemplate x:Key="EO_ActionItemPersonAssignedTemplate2">
    <Grid>
    <Line
    Stroke="Gray"
    StrokeThickness="1"
    VerticalAlignment="Center"
    HorizontalAlignment="Stretch"
    Stretch="Fill"
    X1="0"
    X2="{Binding ActualWidth, ElementName=text1}"
    Visibility="{Binding AssignedToPersonEnabled, Converter={StaticResource EO_BooleanToVisibility}, ConverterParameter=Reverse}"
    />
    <TextBlock
    x:Name="text1"
    Text="{Binding LastnameFirstname}"
    ToolTipService.ToolTip="{Binding EnabledTooltip}"
    VerticalAlignment="Center"
    HorizontalAlignment="Left"
    TextWrapping="Wrap"
    />
    </Grid>
    </DataTemplate>

    A better solution.
    You need a fixed width font for the textblocks.
    <UserControl x:Class="SilverlightApplication1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:local="clr-namespace:SilverlightApplication1"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400"
    FontFamily="Courier New"
    >
    <Grid x:Name="LayoutRoot" Background="White">
    <Grid.Resources>
    <local:UnderlineConverter x:Key="underlineConverter"/>
    <DataTemplate x:Key="TestTemplate">
    <Border HorizontalAlignment="Left" Loaded="Border_Loaded">
    <Grid VerticalAlignment="Center">
    <TextBlock TextWrapping="Wrap"
    Text="{Binding Name}" Foreground="Gray" />
    <TextBlock TextWrapping="Wrap"
    Text="{Binding Name, Converter={StaticResource underlineConverter}}" Foreground="Black" Margin="0,-6,0,0" />
    </Grid>
    </Border>
    </DataTemplate>
    </Grid.Resources>
    <StackPanel>
    <sdk:DataGrid ItemsSource="{Binding Items}" AutoGenerateColumns="False">
    <sdk:DataGrid.Columns>
    <sdk:DataGridTemplateColumn Header="Name" CellTemplate="{StaticResource TestTemplate}" Width="100"/>
    </sdk:DataGrid.Columns>
    </sdk:DataGrid>
    <ComboBox Name="cbo"
    ItemsSource="{Binding Items}"
    ItemTemplate="{StaticResource TestTemplate}" Height="30" Width="300"
    />
    </StackPanel>
    </Grid>
    </UserControl>
    Converter:
    public class UnderlineConverter : IValueConverter
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    if (value != null)
    string str = value as string;
    string underLines = new String(str.Select(r => r == ' ' ? ' ' : '_').ToArray());
    return underLines;
    return "";
    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    throw new NotImplementedException();
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • ADF DataControl for WebService with unexpected blank objects

    Hello experts!
    I'm developing for BPM Suite 11.1.1.5 PS4 Feature Pack using JDeveloper 11.1.1.5
    I am currently using Data Controls for web services that interact with SAP; I can retrieve information successfully displaying items in tables and selectOneChoice lists without a problem.
    There are no Java classes for the Data Controls, everything is handled by the XML files created by JDeveloper.
    The issue happens when creating the input parameters for a web service that updates data in the remote system. The web service has complex types with lists of complex types. I am currently using the iterator for the items on the complex types to create rows and add values to those rows. The problem is that for some reason the input for those lists always contain one extra object with no data (this was identified with the help of tcpmon).
    I'll use the example of the Barcodelist list of items; the corresponding iterators are BarcodelistIterator and itemIterator2. There's also an action binding for the creation of a new row.
    The bindings:
    <accessorIterator MasterBinding="ZPostInvoiceAndAttachment_parametersIterator"
    Binds="Barcodelist" RangeSize="25" DataControl="sapPost"
    BeanClass="sapPost.Types.ZPostInvoiceAndAttachment.Barcodelist"
    id="BarcodelistIterator"/>
    <accessorIterator id="itemIterator2" MasterBinding="BarcodelistIterator"
    Binds="item" RangeSize="25" DataControl="sapPost"
    BeanClass="sapPost.Types.ZPostInvoiceAndAttachment.Barcodelist.item"/>
    <action IterBinding="itemIterator2" id="CreateInsert2"
    InstanceName="sapPost.Types.ZPostInvoiceAndAttachment.Barcodelist.item"
    DataControl="sapPost" RequiresUpdateModel="true"
    Action="createRow"/>
    This is the definition for item.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.60.13"
    id="item"
    Package="sapPost.Types.ZPostInvoiceAndAttachment.Barcodelist"
    BeanClass="sapPost.Types.ZPostInvoiceAndAttachment.Barcodelist.item"
    isJavaBased="false">
    <Attribute Name="Barcode" IsNotNull="true" Type="java.lang.String"/>
    <Attribute Name="BarcodeId" IsNotNull="true" Type="java.lang.String"/>
    <Attribute Name="Contrep" IsNotNull="true" Type="java.lang.String"/>
    <Attribute Name="Docid" IsNotNull="true" Type="java.lang.String"/>
    <Attribute Name="Ardate" IsNotNull="true" Type="java.lang.String"/>
    <Attribute Name="Doctype" IsNotNull="true" Type="java.lang.String"/>
    </JavaBean>
    This is the code to insert a single item in the list. I clear all items for the iterator with a method I will show below
    //Barcode List
    DCIteratorBinding itr4 = ADFUtils.findIterator("itemIterator2");
    ADFUtils.clearAllRowsForIterator(itr4);
    OperationBinding createBarcodeList = ADFUtils.findOperation("CreateInsert2");
    createBarcodeList.execute();
    Row barcodeRow = itr4.getCurrentRow();
    barcodeRow.setAttribute("Barcode", "20120208114025");
    barcodeRow.setAttribute("BarcodeId", "01");
    barcodeRow.setAttribute("Contrep", "ZT"); //ZT for Test Documentum, ZD for Production
    barcodeRow.setAttribute("Docid", "DCTM3701E24080000D9A");
    barcodeRow.setAttribute("Ardate", "2011-09-01");
    barcodeRow.setAttribute("Doctype", "PDF");
    ADFUtils.clearAllRowsForIterator method:
    public static void clearAllRowsForIterator(DCIteratorBinding itr) {
    Row[] allItems = itr.getAllRowsInRange();
    for( int i = 0; i < allItems.length; i++ ) {
    itr.removeCurrentRow();
    The code below is implemented in an ActionListener for a button which calls the web service method:
    public void postToSAP(ActionEvent actionEvent) {
    setPostInput(); //sets all input parameters
    OperationBinding op = ADFUtils.findOperation("ZPostInvoiceAndAttachment");
    Object returned = op.execute();
    When I monitor what is being sent in the SOAP envelop using tcpmon I get 2 items for the barcodelist (and similarly an additional blank item for every list in the input parameters):
         <Barcodelist>
              <item>
                   <Barcode>20120208114025</Barcode>
                   <BarcodeId>01</BarcodeId>
                   <Contrep>ZT</Contrep>
                   <Docid>DCTM3701E24080000D9A</Docid>
                   <Ardate>2011-09-01</Ardate>
                   <Doctype>PDF</Doctype>
              </item>
              <item>
                   <Barcode/><BarcodeId/><Contrep/><Docid/><Ardate/><Doctype/>
              </item>
         </Barcodelist>
    This causes the web service to return an error as there's a blank item in the list.
    I have checked the number of rows in the barcode list before and after the web service call and it is always 1. I can't find where this blank item is coming from. I searched the web but all I found which would address this would be to implement java classes; but the goal here would be to achieve this with as less java programming effort as possible.
    Any help is greatly appreciated.
    Bruno

    user1113055 wrote:
    ... the consequent adaptation of the existing JSPXs based on the previous definition of the view objects was quite painful: i found very hard to reflect the changes to the JSPXs and, in some cases, i had to rewrite the pages from scratch! You will need to be more specific about the issues that you have encountered. Synchronization and refactoring is supported in JDeveloper for the model, the view and the controller. For what it's worth, take a look at these entry-level posts that could provide some additional inside:
    http://jdeveloperfaq.blogspot.com/2010/02/faq-15-how-to-synchronize-adf-entity.html
    http://jdeveloperfaq.blogspot.com/2010/04/faq-20-how-to-refactor-adf-components.html

  • LOV based on Query - ORDER BY :P_ITEMVALUE does not work

    Hello guys! I have a special request that I'm focussing on. I have a couple of select lists in my application that contain tree species.
    On the first page the user has the opportunity to assign a ranking to the respective tree species. The database column storing that information is named INT_BEDEUTUNG.
    Instead of using that order by clause continously I want to be able to change the order by definition using two buttons. One is used to order alphabetically (column BA_LANG) and one is used to order by the field INT_BEDEUTUNG.
    Hence I tried to bind an item (P6_SORT) via a button, assigning it to either BA_LANG or INT_BEDEUTUNG.
    The tree species select lists in my reports are based on LOVs using the following query:
    SELECT BA_LANG, LNG_BAUMART
    FROM VT_TBL_BAUMART, vt_tbl_BAUMARTENBEDEUTUNG
    where CNT_BAUMART = LNG_BAUMART and
    LNG_GEBIET=:P6_lng_gebiet
    order by :P6_SORTI thought that if :P6_SORT conatins the value BA_LANG or INT_BEDEUTUNG, the selct list would be ordered accordingly. Unfortunately it doesn't, although P6_SORT is not empty?
    Do you have an idea what I am doing wrong or how to change the order by clause for that query for the whole application?
    I'd appreciate your interesting answers and thoughts!
    Best regards,
    Sebastian
    Edited by: skahlert on 17.09.2009 08:52

    @ Roel
    Thanks Roel! I believe your suggestion works! Thanks a lot! Great to get such a rapid solution! :-)
    Nevertheless I have one more question. I am using 2 html buttons on page 1 with URL-redirect in order to set the item on a specific page. This was for testing purposes only.
    Now I just want to set the attribute or value on page one where the respective buttons are placed.
    I have other navigating buttons on the same page, which when clicked, bind items on the target page. These should be used throughout the application to forward the item value for P_SORT.
    Now the question is - how can I bind an item on page 1 without being redirected? Is there a javascript routine or a simple trick that does the trick???
    Thanks again and best regards,
    Sebastian

  • About DDl and Dml Operations On B1

    Hi ,
    I had Created A form In SDk Using UiAPI, It Contains Five Text Fields And One Button. And I had Created An EMP Table.It Contains Five Fileds. My Question Is:----
    >
    When I clicked Button , The data Entered In TextFields(EditText) Need To stored in Database.  Similirly All The Operation Need To Do. How Can we Do In sdk. Please tell Me code
    Regards
    Srinivas

    Srinivas,
    Please look at the subject of "Binding Items to Data SourcesBinding Items to Data Sources" in the SAP Business One SDK Help Center Documentation.  This should assist you and show you code samples.
    Eddy

  • Data Modeling for controls using XML views(SAPUI5)

    Hello ,
    I am trying to create Table control using XML view and binding data to it through controller onInit method.
    XML View Code is as follows :
    <core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
        <l:VerticalLayout width="100%">
            <l:content>
                <Text id="description" class="marginAll" />
                <Table id="idProductsTable" items="{       
                    path:'/businessData'
                }">
                    <headerToolbar>
                        <Toolbar>
                            <Label text="Products"></Label>
                        </Toolbar>
                    </headerToolbar>
                    <columns>
                        <Column>
                            <Label text="Product" />
                        </Column>
                        <Column>
                            <Label text="Supplier" />
                        </Column>
                        <Column>
                            <Label text="Dimensions" />
                        </Column>
                    </columns>
                    <items>
                        <ColumnListItem>
                            <cells>
                                <ObjectIdentifier title="{COUNTRY}" text="{COUNTRY}" />
                            </cells>
                            <Text text="{REGION}"></Text>
                            <Text text="{CITY}"></Text>
                        </ColumnListItem>
                    </items>
                </Table>
            </l:content>
        </l:VerticalLayout>
    </core:View>
    Controller onInit method Code is as follows :
    var oData = {
                businessData : [ {
                    'COUNTRY' : "Canada",
                    'CITY' : "Toronto",
                    'REGION' : "US",
                    'LANGUAGE' : "English"
                    'COUNTRY' : "China",
                    'CITY' : "Bejeing",
                    'REGION' : "Ashia",
                    'LANGUAGE' : "Chinese"
            var demoJSONModel = new sap.ui.model.json.JSONModel();
            demoJSONModel.setData(oData);
            sap.ui.getCore().getElementById("idProductsTable").setModel(
                    demoJSONModel);
    Same thing when i tried with JS views , it worked however through XML view , I am getting empty table.
    Is the data modeling correct for XML views?
    Thanks,
    Mahesh.

    I've got it ! The reason for that is you bind items as below,
         <Table id="idProductsTable" items="{    
                    path:'/businessData'
                }">
    This pattern is followed if you wanna add a formatter/sorter/grouping.
    As you don't do any of those you can bind items as below &  it doesn't require  data-sap-ui-xx-bindingSyntax="complex".
    <Table id="idProductsTable" items="{/businessData}">

  • Adobe Form print/email - Attach IXOS .tif images via string table param?

    I am attempting to create an Adobe Form print/e-mail output for Invoices, with zero, one or many attached pages from the IXOS archive.  (TIFF files.)  So far I have managed to attach exactly one IXOS image.  Now I need to make the number of attached images dynamic.
    This is in Netweaver 7.0 / ECC 6.0 ehp 3 / LiveCycle Designer 8.1.
    My ABAP driver program is a copy of SD_INVOICE_PRINT01.  In pseudocode, I've added:
    Logic to identify correct IXOS image.
    Logic to extract IXOS image to application server's file system.
    OPEN DATASET image.tif FOR INPUT IN BINARY MODE.
    READ DATASET image.tif INTO xstring.
    CALL FUNCTION 'SSFC_BASE64_ENCODE' EXPORTING xstring IMPORTING string.
    APPEND string TO string_table.
    CALL FUNCTION form_name EXPORTING attachments = string_table.
    The form interface is a copy of INVOICE_INTERFACE (ABAP dictionary-based.)  I've added import param. ATTACHMENTS type STRING_TABLE.
    In the form's context tab, interface import param. ATTACHMENTS was dragged & dropped onto the context pane, yielding:
    - Table ATTACHMENTS
    -- Structure DATA
    --- Field ITEM.
    In Adobe LiveCycle Designer 8.1, I *can* create an image field with binding ATTACHMENTS.DATA[1].ITEM - that prints the TIFF from IXOS just fine.
    What *does not* work is placing ATTACHMENTS on the form as a table of image fields.  I've tried several combinations - most look like this:
    - Table or Subform ATTACHMENTS, binding ATTACHMENTS, repeat for each data item max = 1.
    -- Row or Subform DATA, binding DATA[*], repeat for each data item min = 1.
    --- Image field ITEM, binding ITEM.
    The result is consistently one blank page.  No more, no less.
    Can anyone help?
    Edited by: Eric Hopp on May 12, 2010 12:09 AM

    Hello,
    I have no experience regarding the table of pictures, but you could try a workaround if you don´t insist of displaying the images. You could attach the pictures as attachments (you know, the little attachments icon on the left in your Reader). The ABAP coding for this can be found in SE38 FP_* and when you check the descriptions you should be able to find the one working with the attachments.
    Would be better than nothing I guess,
    Otto

Maybe you are looking for

  • How to use one variable as a default value for another variable?

    Hi Experts, Is it possible to use one variable as a default value for another variable? For example: Variable 1 = current calendar year month Variable 2 = mandatory input ready variable for calendar year month I want to use variable 1 as default valu

  • Errors - Search not working

    In a newly configured SharePoint 2013 Farm , we have deployed Search using process defined in TechNet. Have checked everything multiple time and all steps in Technet have been followed. When we try search is a site, we get an error: "Sorry Something

  • Inbound IDOC:First record is not an IDoc control record

    Dear Experts, I am currently testing an inbound IDOC with program RSEINB00. Unfortunatelly I always get the errror "First record is not an IDoc control record (please check file)". So apparently it picks up the file, but there are some format errors

  • Installment plan v/s payment schema

    Hello, Instalment paln and payment schema(Budget Billling) both does the same functions.If i am right what are the differences. which gives the higher flexibility?where, how , when we use????

  • Display of total ansal for each org unit using the sdepth (depth level)

    Hi all,      We have a requirment in which we will be getting all the active employees related to a perticular org unit then  For every PERNR,we need to  find (as of run date) the org ID on PA0001- ORGEH and total the dollars at the org unit ID level