Data control - Attributes in custom table

Hi!
Is it possible to design a custom data table (output) with the desired attributes of a data control? For example, dragging the attributes
and placing them in a specific cell of a table(html) ?

Hi,
you can use Trinidada tablelayout, rowLayout and cellLayout components to build a grid. However, the attributes you drag and drop will only show the data of the current row in the ADF iterator binding.
Frank

Similar Messages

  • How to find out the volume of the data updated in the custom table

    Hi,
    I need to find out the the volume of the data inserted or updated in the the custom table(Y tables).I have tried by the sm37.the job running in to update the table but i didnot get thde amount of the data.and if get the volume of the data which being updated in the custom table is there any option to control that amount to being updated?
    Thanks in advance .....waiting for the respone.

    Hi Sreenivas.
    How did you find the solution to this? Trying to do the same thing!
    Cheers,
    Tom

  • How to cause POJO data control to use custom base ViewObject class

    ADF 11.1.1.4
    We have a POJO data control that displays data in a table.  We can filter the table using the column filters and this performs in-memory filter.   If an exception occurs I see that it is using a ViewObject for the in-memory filtering because this shows up in the stack trace.
    oracle.jbo.server.ViewObjectImpl.rowQualifies(ViewObjectImpl.java:2811)
    It uses DCDataVO which extends ViewObjectImpl
    We have a Custom base view object defined that all our normal view objects inherit from, defined in Project Properties/BC/Base Classes
    Is there any way to make the DCDataVO also extend from  our Custom View Object that inherits from ViewObject so that we can override methods?  For example if I wanted to customize the rowQualifies method.
    In DCBeanDataControl.Java I see where it actually gets created.
    vo = DCDataVO.createViewObjectFromDef(vdef, this, getApplicationModule());

    So you have already overridden then rowQualifies() method in your custom base View Object ? Are you calling super in that ?
    Cheers
    AJ

  • Regarding custom currency data element issue in custom Table.....

    Hello,
    I am currently working on creation of a Z custom table in SAP. There is data coming from
    mainframe for amount field in the form -9999.9999.
    To store data like this I am creating a custom Z data element with Z domain definition as follows:
    Data type; Curr
    No of characters: 5
    Decimal places: 4
    Sign box is checked.
    Now when I use this Z data elemnt for a firle in custom table, while activating, it asks for table refernce and table field. What do I give it here ?
    Please help.
    Regards,
    Jainam..

    Hi Jainam,
    very basic ABAP knowledge: A field of type CURR isn used to store a currency amount. Every currency field must be connected to a currency key of type CUKY.
    The same concept applies for quantities and units.
    You can spare a lot of trouble if you look at standard tables and programs, copy or use data elements and/or structures from standard.
    If you want to re-invent the world, you may need more than seven days.
    Regards,
    Clemens

  • Data is not saaving custom tables

    hi all
    i created blank record for this
    public void xxcrmCompanyCreate(int orgid)
    xxcrmCompanyCreationCompanyVOImpl company =
    getxxcrmCompanyCreationCompanyVO1();
    xxcrmCompanyCreationPersonVOImpl person =
    getxxcrmCompanyCreationPersonVO1();
    xxcrmCompanyAddressTVOImpl address = getxxcrmCompanyAddressTVO1();
    xxcrmcompanyphoneEmailTVOImpl phone = getxxcrmcompanyphoneEmailTVO1();
    Number pid = getOADBTransaction().getSequenceValue("XXCRM_PERSON_SEQ");
    Number aid = getOADBTransaction().getSequenceValue("XXCRM_ADDRESS_SEQ");
    Number companyid =
    getOADBTransaction().getSequenceValue("XXCRM_COMPANY_SEQ");
    Number contactid =
    getOADBTransaction().getSequenceValue("XXCRM_CONTACTID_SEQ");
    /*Create Blank record for Company*/
    if (!company.isPreparedForExecution())
    company.setMaxFetchSize(0);
    Row companyrow = company.createRow();
    companyrow.setAttribute("CompPrimarypersonid", pid);
    companyrow.setAttribute("CompCompanyid", companyid);
    companyrow.setAttribute("CompPrimaryaddressid", aid);
    company.insertRow(companyrow);
    companyrow.setNewRowState(Row.STATUS_INITIALIZED);
    /*Create Blank record for Person*/
    if (!person.isPreparedForExecution())
    person.setMaxFetchSize(0);
    Row personrow = person.createRow();
    personrow.setAttribute("PersPersonid", pid);
    personrow.setAttribute("PersCompanyid", companyid);
    personrow.setAttribute("PersAddressid", aid);
    personrow.setAttribute("OrgId", Integer.valueOf(orgid));
    person.insertRow(personrow);
    personrow.setNewRowState(Row.STATUS_INITIALIZED);
    /*Create Blank record for Address*/
    if (!address.isPreparedForExecution())
    address.setMaxFetchSize(0);
    Row addressrow = address.createRow();
    addressrow.setAttribute("AddrAddressid", aid);
    addressrow.setAttribute("CompCompanyid", companyid);
    addressrow.setAttribute("CompPersonid", pid);
    addressrow.setAttribute("OrgId", Integer.valueOf(orgid));
    address.insertRow(addressrow);
    addressrow.setNewRowState(Row.STATUS_INITIALIZED);
    /*Create Blank record for Phone*/
    if (!phone.isPreparedForExecution())
    phone.setMaxFetchSize(0);
    Row contactrow = phone.createRow();
    contactrow.setAttribute("PhonContactid", contactid);
    contactrow.setAttribute("PhonCompanyid", companyid);
    contactrow.setAttribute("PhonPersonid", pid);
    contactrow.setAttribute("OrgId", Integer.valueOf(orgid));
    phone.insertRow(contactrow);
    contactrow.setNewRowState(Row.STATUS_INITIALIZED);
    in my phone vo data is not saved
    remaining vo's data is saved
    Regards
    Sreekanth

    Hi Srikant,
    Correcting the last part.
    if (!phone.isPreparedForExecution())
    phone.setMaxFetchSize(0);
    Row contactrow = phone.createRow();
    contactrow.setNewRowState(Row.STATUS_INITIALIZED); //If in last, This line stops your vo row from commiting.
    contactrow.setAttribute("PhonContactid", contactid);
    contactrow.setAttribute("PhonCompanyid", companyid);
    contactrow.setAttribute("PhonPersonid", pid);
    contactrow.setAttribute("OrgId", Integer.valueOf(orgid));
    phone.insertRow(contactrow);
    contactrow.setNewRowState(Row.STATUS_NEW); //Now infact this line can also be remved, if you wish to remove.
    Use Above.
    Abdul Wahid

  • URL Data Control: Connection to the URL source could not be created

    Using JDev Studio 10.1.3.2
    Trying to use a new URL data control pointing to a csv file.
    I have successfully create a new URL data control using the New Gallery->Web Services->URL Services Data Control. I have successfully tested the connection and I am able to see the Data control in the DC Palette. The attributes shown are correct.
    However, when I create a test client displaying the new CSV Data Control attributes in a table and try to run it, I get the following error:
    "Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Exception in thread "main" oracle.adf.model.adapter.AdapterException: DCA-50006: The URL data control call failed. A connection to the URL source could not be created.
    The data controls configuration file is shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <DataControlConfigs xmlns="http://xmlns.oracle.com/adfm/configuration"
    version="10.1.3.40.66" Package="com.xp.model"
    id="DataControls">
    <AdapterDataControl id="URLDataControl1"
    FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
    ImplDef="oracle.adfinternal.model.adapter.url.csv.CSVDCDef"
    SupportsTransactions="false" SupportsSortCollection="true"
    SupportsResetState="false" SupportsRangesize="false"
    SupportsFindMode="false" SupportsUpdates="false"
    Definition="URLDataControl1" BeanClass="URLDataControl1"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol">
    <Source>
    <Definition xmlns="http://xmlns.oracle.com/adfm/adapter/url/csv"
    ConnectionName="URLConnection1"
    Source="http://phusca-w20909:8080/client_war/WRK_COMPUTERS.csv" Delimiter=","
    QuoteChar="{none}" IsFirstRowNames="true" Encoding="UTF-8"/>
    </Source>
    </AdapterDataControl>
    </DataControlConfigs>

    Using JDev Studio 10.1.3.2
    Trying to use a new URL data control pointing to a csv file.
    I have successfully create a new URL data control using the New Gallery->Web Services->URL Services Data Control. I have successfully tested the connection and I am able to see the Data control in the DC Palette. The attributes shown are correct.
    However, when I create a test client displaying the new CSV Data Control attributes in a table and try to run it, I get the following error:
    "Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Exception in thread "main" oracle.adf.model.adapter.AdapterException: DCA-50006: The URL data control call failed. A connection to the URL source could not be created.
    The data controls configuration file is shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <DataControlConfigs xmlns="http://xmlns.oracle.com/adfm/configuration"
    version="10.1.3.40.66" Package="com.xp.model"
    id="DataControls">
    <AdapterDataControl id="URLDataControl1"
    FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
    ImplDef="oracle.adfinternal.model.adapter.url.csv.CSVDCDef"
    SupportsTransactions="false" SupportsSortCollection="true"
    SupportsResetState="false" SupportsRangesize="false"
    SupportsFindMode="false" SupportsUpdates="false"
    Definition="URLDataControl1" BeanClass="URLDataControl1"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol">
    <Source>
    <Definition xmlns="http://xmlns.oracle.com/adfm/adapter/url/csv"
    ConnectionName="URLConnection1"
    Source="http://phusca-w20909:8080/client_war/WRK_COMPUTERS.csv" Delimiter=","
    QuoteChar="{none}" IsFirstRowNames="true" Encoding="UTF-8"/>
    </Source>
    </AdapterDataControl>
    </DataControlConfigs>

  • POJO Data Control af:table with selectOneChoice

    Hello All,
    JDeveloper 11.1.1.6/7
    I have a peculiar issue that I am trying to solve.
    I have a POJO based data control and an af:table based out of it. One of the fields (category) is to be a selectOneChoice driven by a WS Data Control. When I drag-drop the target attribute (category) as a Select One Choice and create a dynamic list based on the WS Data Control the row becomes uneditable.
    The selectOneChoice from the jspx:
              <af:column headerText="#{bindings.children.hints.category.label}"
                         id="c3">
                <af:selectOneChoice value="#{row.bindings.category.inputValue}"
                                    label="#{row.bindings.category.label}" autoSubmit="true"
                                    required="#{bindings.children.hints.category.mandatory}"
                                    shortDesc="#{bindings.children.hints.category.tooltip}"
                                    id="soc1">
                  <f:selectItems value="#{row.bindings.category.items}" id="si1"/>
                </af:selectOneChoice>
              </af:column>
    The relevant sections from the pageDef are as follows:
    <tree IterBinding="childrenIterator" id="children">
          <nodeDefinition DefName="info.bijesh.samples.ws.model.Children"
                          Name="children0">
            <AttrNames>
              <Item Value="id"/>
              <Item Value="name"/>
              <Item Value="category" Binds="category"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
    <list IterBinding="childrenIterator" id="category" DTSupportsMRU="true"
              StaticList="false" ListIter="ReturnIterator">
          <AttrNames>
            <Item Value="category"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="categoryCode"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="categoryDisplay"/>
          </ListDisplayAttrNames>
        </list>
    If I remove the Binds attribute from the Item definition, then the row becomes active but of course the drop-down list is empty. Any ideas on what I am doing wrong. I have uploaded the sample workspaces here - http://www.bijesh.info/bijesh/ADFWS_TestCase.zip. WebServiceHost contains the LOV Web Service and the WSClient workspace contains the test page.

    Hi,
    there is a bug I filed this week on that issue. Could it be you filed the issue as a SR with support? Because this is where I got the test case from. For me the problem reproduced witha static list as well. So if you want to check if this is the same you see, please try a static list in the SOC. If this too makes the field un-editable then its the same effect. The testcase I had was 11.1.1.7 and I fixed an issue in its POJO model to run the sample (just in case you belong to the same customer). I didn't test with 11.1.1.6 as obviously the bean data control is different in 11.1.1.7 (at least it complained about a missing class when I tried in 11.1.1.6).
    If the testcase I true is not yours, please contact customer support with your test case or send it my way in a zip file renamed to "unzip"
    Frank

  • Problem mapping inputText field to a variable in a data control

    I have encountered the following problem. Please help. Any feedback is appreciated.
    I have a page that contains first name, last name, address, city, state zip and country input text fields and a submit button. When the submit button is clicked, user entered information will be commited to database. This is easily achieved by using a managed bean.
    Now I would like to achieve the same functionality by using data control. The reason I want to use data control is to avoid putting the controls (first name, last name, address, city, state zip and country) in the managed bean. I was hoping that they can be directly mapped to the data control variables. The data control is created from a Java object which contains attributes of first name, last name, address, city, state zip and country. The data control is dragged and dropped to a jsff page and the jsff looks like the following:
    <af:inputText label="First Name"
    value="#{bindings.firstName.inputValue}"
    required="true"
    maximumLength="25" autoSubmit="true"
    id="it10">
    </af:inputText>
    When I run the page, I can see the label First name but the input box was not shown. So I removed: value="#{bindings.firstName.inputValue}" and the input box appears.
    Why did that happen? Can I directly map a data control attribute to an input text field?
    Thank,
    Cecilia

    Thanks for the response, Shay. Really appreciate it.
    I tried your first solution - modified the property IsUpdateable to Updateable. However the input text box is still not appearing.
    My java class is just a simple Java class. In the class all I have is just a get method for a domain model object.
    In the jsff, if I assigned a value to the value attribute (value="Jane"), the input text box would appear as updateable.
    Any idea?

  • How to CHECK WHETHER LOWER CASE OR UPPER CASE  IN CUSTOM TABLE

    Dear Friends,
                     I have a requirement where from  the flat file  i have collected into the internal table is as below :
      IDNo.     Name     Date      Location   Designation  Dept
      101       raja      4/12/2007  Delhi      manager      HR
      102       james    4/12/2007  Delhi      clerk          HR
    now iam checking against my custom table where iam   if the designation for the employee name already exists then i shouldnt modify/update the custom table that record
      now iam facing a problem where is the flat file is always having the Lower Case only ,
    as per the scenario  if my custom table already have the employee name i shouldnt modify/update i.e i shouldnt overwrite,
    this scenario is working but it is failing in the case
    by chance in the Custom table the employee name or designation is in Upper Case  the condition where iam checking in the code  is failing as the flat file data coming into the internal table is having always lower Case.
    So could any one please let me know how i should check in my custom table whether iam having upper case or lower case and how can i make it lower case ?
    because iam able to manage in the case where if the flat file data coming in Upper case i can check before only by
    using Translate to lower case . how i unalbe to  check for the data coming from the Custom table if  in Uppercase , so i want to change that to lower case then checking my condition whether that data already exists in my custom table before modifying the data coming from the flat .
    because the condition is failing when the data in the custom table is in upper case and the Flat file data is in lower case.
    please help how i can check for the data in the Custom table is in upper case and then change it to lower case.
    Regards
    Madhuri.

    Hi Madhuri,
    Translate both data in your flat file & custom table to lowercase before comparing them. With that, you're able to identify if there's a differences in for both data.
    If you're putting data that is pulled from custom table, what you can do is after selecting/reading the data, translate to lowercase or uppercase (whichever you prefer) but make sure if you translate to lowercase, your data in the flat file must be lowercase to and vice versa.
    Happy doing !!..
    Regards,
    Loo

  • Need help for record deletion from custom table

    Hi friends
    I have to write a custom program which will be generic to delete any table record with date field.
    This program needs to be generic (should be able to delete records from any custom table) in nature with selection screen parameters as:
    Table Name and Number of Days prior to which records are deleted, both mandatory.
    Program Flow:
    1.     From number of days calculate date before which records are deleted, ( current date u2013 no. of days = past date).
    2.     Custom table have date field, delete records prior to that date.
    3.     Program may be scheduled for background job, put default values for both fields. No. of days should not be less than 60.
    4.     Classical Report output with number of records deleted.
    My query is how will I know the name of the Date field so that I can write a DELETE query.
    If I use 'DDIF_FIELDINFO_GET' it gives me all field names but how to filter out?
    with regards
    samikhya

    Hi
    I have added  field on the selection screen as p_fieldname and got the F4 help for it , so that the user will get the field name run time as per the table name.
    Now I am facing problem while writing the DELETE query.
    I wrote like
    DELETE (fp_tab)
    where (fp_fieldname) LE date
    It is not working. I also tried with taking a string to concatenate fp_fieldname, LE and date to l_string
    when I write like this:
    DELETE (fp_tab)
    where (l_string) , sy-subrc is getting 4 and no records are getting deleted.
    I do not understand where the dynamic Delete is failing??
    with reagards
    Samikhya

  • Customized table logging

    Hi,
    There's a customized table that we would like to turn logging on but it's doesn't seem to be working.  Here's what I've done :
    1) ticked the "Log Data Changes" of the customized table in SE11 -> Technical Settings
    2) set the parameter "rec/client" to "ALL" and SAP restarted to activate the profile
    Did I miss any other steps?  The logging doesn't seem to be working.
    Thanks !
    Edited by: Sisab Nimda on Nov 2, 2009 9:29 AM

    DO you have more than once instance? rec/client set  equal for all the instances?
    Please check the note https://service.sap.com/sap/support/notes/1916
    By the way, do you really want to set log on for all the clients? You should not set logging on for all the clients.

  • Lock custom tables

    Hi,
    I am writing program to upload data from excel to custom tables.
    Here i add/ update/delete records from the table based on entries from excel sheet.
    While i run this program, how do i maintain locks on the table, so that any other user is not modifying the tables at the same time.
    Points will be awarded immediately.
    Thanks

    <b>Lock objects</b> are used to lock the database table while making the modifications on the database table.
    you can create your own lock objects using SE11.
    if you create lock objects on any table system will create two function modules.
    <b>1.ENQUEUE....
    2.DEQUEUE.....</b>
    first one is used to lock the table
    second one used to removing lock on the table.
    <b>This lock object</b> facilitates synchronous process. That is suppose if you are changing the table entries, and simultaneously there might be several programs running in the background or by anything else which also does changes to the same table. In this case you can lock the table so that other program will not able to update/insert/ do any other operation unless or until your program executes successfully.
    You can create lock objects for this purpose in transaction SE11. SAP by default create 2 function modules. One for locking ( Enqueue) and other for unlocking ( Dequeue ). You can call these function module in appropriate places in your program.
    ex...
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    <b><u>check the below links:</u></b>
    http://help.sap.com/saphelp_40b/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    Re: lock objects
    Regards,
    Moqeeth.

  • How to fetch the Table Control data to Customer Table(Z-Table) ?

    How to fetch the Table Control data to Customer Table(Z-Table) ?

    Hi Krishna,
    Check this sample programs
    http://www.planetsap.com/online_pgm_main_page.htm
    http://sap.niraj.tripod.com/id29.html
    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
    Have a look at below links. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    Thanks,
    Reward If helpful.

  • Creation of Data Control for custom java method  which will return records

    Hi Guys,
    I have a requirement of creating a a custom java method in App module which will return a record set taking an id as input.In case of single return type it works fine but in case of returning record set it is not working.In my case i have to combine two tables and return it as a single entity as a view in Data Control.
    Warm Regards,
    Srinivas.

    Why don't you just create a custom view object? There's even an example or 2 in the docs:
    http://docs.oracle.com/cd/E16162_01/web.1112/e16182/intro_tour.htm#CHDGDIEC (check out "View object on refcursor" example)
    Edit: you are aware that you can create a View Object based on more than one table?
    John

  • How to manage data in a custom table added in SBO?

    Hello,
    I'm developing a addon for one client that needs to control an aditional step, after each Invoice is posted.
    Since SBO does not allow me to add additional fields to Invoice header table (OINV), I thought to add a custom table to SBO database to control the process for each Invoice (simple table with 2 columns: DocNum to hold the Invoice number, and Status to keep track if the Invoice was processed or not).
    When I added a Custom Table in SBO and checked the table definition in SQL Manager, I found that SBO added automatically 2 new columns (Code and Name).
    Since the PK is defined at Code column (and not the DocNum has I wanted), I found that it not very handy to manage data (insert, delete & update) with this table definition.
    I tried to find a DI object that could manage easily the data of this table type but had no sucess.
    Then I thought in adding the custom table directly in SQL Manager, and manage it directly with Recordet objects.
    However this seems not a standard process to manage data since it interacts directly with the DBMS, which can be dangerous...
    Is there any way or DI object to manage this custom tables added in SBO?
    Thanks all!
    Manuel Dias

    Hi Manuel,
    What do you mean by SBO does not allow me to add additional fields to Invoice header table (OINV).
    Have you tried it add a UDF to OINV,if so what is the exception you got while adding.
    If you Have not tried Use the following code to create.
    Dim oUserFieldMD As SAPbobsCOM.UserFieldsMD
            oUserFieldMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
            If (Not isColumnExist(TableName, ColumnName)) Then
                oUserFieldMD.TableName = "OINV"
                oUserFieldMD.Name = ColumnName
                oUserFieldMD.Description = Description
                oUserFieldMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
                oUserFieldMD.EditSize = Size
                (objUserFieldMD.Add() )
            End If
    if the field is added successfully.
    Then open the Invoice screen and goto View menu and click on user defined fields then it will show you one form which contains the field you added,
    You can access this field using DIAPI of Invoice object
    regards
    Vishnu

Maybe you are looking for