Display data from the database in a table

Hello

How to display data from my database in an ADF table using a backing bean? I created an arraylist in the bean, but only the last row of my query is displayed in the table...

Thank you...

Hello

Create a simple Java class that implements Serializable. Create attributes that represent each column in your table. This class represents on the row of your table. A list of these objects, and you can fill your af:table.

Visit this link below for an example.
Re: Is it possible to create a static array of ADF and the tree?

Kind regards
Amélie Chan

Tags: Java

Similar Questions

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • Received the error when transferring data from the database file

    Hello...

    I have my using SOA 10.1.3.1.0. I am trying to transfer the data from the CSV of the oracle database.

    The settings of connection in file xml oc4j DBA adapter file in the path C:\product\10.1.3.1\OracleAS_1\j2ee\oc4j_soa\application-deployments\default\DbAdapter is shown below.

    < location connector-factory = name of the connector "ist/DB/DBConnection1" = "Adapter database" >
    < config-property name = "xADataSourceName" value = "jdbc/DBConnection1DataSource" / >
    < config-property name = "dataSourceName" value = "loc/DBConnection1DataSource" / >
    < config-property name = "platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/ >
    < config-property name = "usesNativeSequencing" value = "true" / >
    < config-property name = "sequencePreallocationSize" value = "50" / >
    < config-property name = "defaultNChar" value = "false" / >
    < config-property name = "usesBatchWriting" value = "true" / >
    < connection pooling using 'none' = >
    < / connection pooling >
    < use security-config 'none' = >
    < / security-config >
    < / connector-factory >


    I get the following error:

    < name of part = "summary" >
    < Summary >
    file:/C:/product/10.1.3.1/OracleAS_1/BPEL/domains/default/tmp/.bpel_FileToDb_v1.0_188277739ed1e0b720c1fefd0275d1c0.tmp/FileToAdapterService.WSDL [FileToAdapterService_ptt::insert (FiletodbCollection)] - SISM JCA Execute of operation "insert" has no reason to: could not create/access the TopLink Session.
    This session is used to connect to the data store. Caused by: loc/DBConnection1DataSource not found
    ; nested exception is:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the data store. [Caused by: loc/DBConnection1DataSource not found]
    See the first exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml), and then restart the server. Caused by the Exception TOPLINK-7060 (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException

    Description of the exception: could not acquire data source loc/DBConnection1DataSource

    Inner exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    < / Summary >
    < / part >


    What is the error in the loc/DBConnection1DataSource line? Guys thank you in advance...


    Thank you...

    Published by: userus007 on January 2, 2010 17:16

    Published by: userus007 on January 2, 2010 17:18

    Visit similar thread oc4j - RA.xml and data - sources.xml

  • How can I transfer data from the database in a variable (or array)?

    I made my request according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed a single function to query the database - add two parameters and get the value from the table to a string format. A test operation shows that everything is ok. If I want to display this value in the text box, I just do drag and drop off service to this element in Design view

    (< s:TextArea = "153" x = "435" id = "nameText" text = "{getDataMeanResult.lastResult [0] .name}" width = "296" height = "89" / > ").

    Also, it works fine, just a warning and encouraged to use ArrayCollection.getItemAt ().

    Now, I want to send the value to a variable or an array, but in both cases, I get an error: TypeError: Error #1010: a term is undefined and has no property..

    How can I pass a value to the database in a variable? Thank you.

    public var nameTemp:String;

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [0], dir_id);

    nameTemp = getDataMeanResult.lastResult [0] .name;

    public var nameArray:Array = new Array();

    for (var i: uint = o; i < 3; i ++) {}

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [i], dir_id);

    NomTableau [i] = getDataMeanResult.lastResult [0] .name;

    }

    And how do I use syntax highlighting in this forum?

    Astraport2012 wrote:

    Thank you.

    Then this simple question: How can I place a mySQL database data in a variable using the wizards FB4 (connect with PHP)?

    If you can show examples please.

    I couldn't find examples. Send data to a field text or DataGrid - much, but no variable.

    the use of assistants? not sure... it is generally a bad idea to rely on them, because they will never fully what you want anyway. I would recommend learning abit of PHP and manage by yourself, because it allows you to manage everything exactly as you wish.

    small example of communicating with a database using PHP + FB4:

    mount a database

    write you a small script that will access your database, get a value, for example:

    ";
    
        while($row = mysql_fetch_array($result))
        {
            if($row['messageID'] == "3")
            {
                print $row['message'];
            }
        }
        print "\n";
    ?>
    

    This will get the message with ID '3 '.

    make an HTTPService in FB4 app to call this Script, as follows:

    
    
        
            
    
            
        
    
        
            
        
        
    
    
    

    and the value must be picked up by the Script and properly stored in a variable

  • Export data from the database to excel file using the procedure

    Hello

    I need to export data from database to oracle 10 g for the excel file, I try this code:

    First, I create directory to the user sys and give permition to user that I'm working on it
    create or replace directory PALPROV_REPORTS as 'c:\temp';
    
    grant read, write on directory PALPROV_REPORTS to user12 ;
    then I run this code
    declare
        output utl_file.file_type;
    begin
        output := utl_file.fopen( 'user12' , 'emp1.slk', 'w',32000 );
        utl_file.put_line(output, 'line one: some text');
        utl_file.fclose( output );
    end;
    the problem appears as
    ORA-29280: invalid path ORA-06512: at "SYS." UTL_FILE", line 29 ORA-06512: at"SYS." UTL_FILE", line 448 ORA-06512: at line 4

    Notice that I use the operating system windows as a client and a linux as a server database

    The file will be written to the database server or your GNU / linux and I'm quite sure, there is no folder named "c:\temp" on linux. It will probably be ' / tmp' on a unix server.

    And open the file, you must give the name logic directory 'PALPROV_REPORTS' it instead of the user name "utilisateur12".

  • Timekeeper group does not display data from the former employee

    When you set up a group of timekeeper, we cannot find any former employees.

    If a employee leaves mi period... and if the timekeeper may not display former employees, how would (s) he enter/edit data?


    Thank you

    Alex

    Hi Alex,

    Yes, the final processing date should be later or null if you are not allowed to change the date of the final trial and you can try to change the date of entry into time guardian Group screen for before January 31, 2016 "and find the employee. "

    Kind regards

  • Error when displaying data from the data store

    Hello gurus,


    We are also facing the issue with driver when we try to view data from a data store links to Hyperion Essbase technology.
    ODI version is 11.1.1.6.
    Here is the error we receive:

    java.lang.IllegalArgumentException: Driver name cannot be empty
         at org.springframework.util.Assert.hasText(Assert.java:161)
         at com.sunopsis.sql.SnpsConnection.setDriverName(SnpsConnection.java:302)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.setDefaultConnectDefinition(DwgConnectConnection.java:380)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:274)
         at com.sunopsis.dwg.dbobj.DwgConnectConnection.<init>(DwgConnectConnection.java:288)
         at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.createDwgConnectConnection(DwgConnectConnectionCreatorImpl.java:53)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.snpsInitializeSnpsComponentsSpecificRules(EditFrameTableData.java:85)
         at com.sunopsis.graphical.frame.SnpsEditFrame.snpsInitialize(SnpsEditFrame.java:1413)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:623)
         at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:868)
         at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:176)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Is there a specific JAR file associated with Hyperion Essbase?
    and where do I find the default drivers provided with ODI?

    Help, please.

    Thank you
    Santy.

    You cannot view data from a store of essbase data as it is not configured with a driver that supports this feature

  • Merge data from the database

    Hello

    I have data on two different machines. The data are different, but the table structure is the same. What is the best way to extract all of the data on a single machine

    Thank you and best regards

    Import/export with ignore = y (adds data to the existing table on the target). Possible in double data imported into the target table.

  • problem to extract data from the database using UTL_FILE

    Dear members

    I make use of series for the SUBSTR and INSTR function to extract the fields of a data file and carve out spaces based on the number of post mentioned in the Excel worksheet. I was able to extract the first 3 areas namely, customer, manufacturer, product, but for quantity, requested delivery date, price, I can't do it.

    the flat file structure is as follows:
    Field                       Position From     Position To
    CUSTOMER_NAME               1     30
    MANUFACTURER              31     70
    PRODUCT_NAME              71     90
    QUANTITY                        91     95
    REQUESTED_SHIP_DATE    96     115
    REQUESTED_PRICE            116     120
    Sample data in the flat file is as follows:
    BESTBUY                       SONY ERICSSON                           W580i               25   1-AUG-2008          50
    BESTBUY                       SAMSUNG                                 BLACKJACK           50   15-JUL-2008         150
    BESTBUY                       APPLE                                   IPHONE 4GB          50   15-JUL-2008         
    BESTBUY                       ATT                                     TILT                100  15-JUN-2008         
    BESTBUY                       NOKIA                                   N73                 50   15-JUL-2008         200
    My program code is the following:

    CREATE OR REPLACE PROCEDURE ANVESH.PROC_CONVERSION_API(FILE_PATH IN VARCHAR2,FILE_NAME IN VARCHAR2) 
    IS
        v_file_type utl_file.file_type;
        v_buffer VARCHAR2(1000);
        V_CUSTOMER_NAME VARCHAR2(100);
        V_MANUFACTURER VARCHAR2(50);
        V_PRODUCT_NAME VARCHAR2(50);
        V_QUANTITY NUMBER(10);
        V_REQ_SHIP_DATE DATE;
        V_REQ_PRICE NUMBER(10);
        V_LOG_FILE utl_file.file_type;
        
        V_COUNT_CUST NUMBER;
        V_COUNT_PROD NUMBER;
        
        v_start_pos number := 1;
        v_end_pos number;
       
    BEGIN
        DBMS_OUTPUT.PUT_LINE('Inside begin 1');
        v_file_type := UTL_FILE.fopen(FILE_PATH, FILE_NAME, 'r',null);
            DBMS_OUTPUT.PUT_LINE('Inside begin 1.1');
    
        
        LOOP
        
            BEGIN
                    DBMS_OUTPUT.PUT_LINE('Inside begin 2');
    
            
                UTL_FILE.GET_LINE (v_file_type,v_buffer); 
                    DBMS_OUTPUT.PUT_LINE('Inside begin 2.1');
                    
                           select instr('v_buffer',' ', 1, 1) - 1
                            --into v_end_pos
                            from dual;
    
                   
                            select substr('v_buffer', 1, 7)
                            --into V_CUSTOMER_NAME
                            from dual;
    
                            select instr('v_buffer', ' ', 31, 2)-1
                            --into v_end_pos
                            from dual;
    
                            select trim(substr('v_buffer', 28, 43))
                            --into V_MANUFACTURER
                            from dual;
    
                            select instr('v_buffer', ' ', 45, 1) - 1
                            --into v_end_pos
                            from dual;
    
                            select trim(substr('v_buffer', 44, 45))
                            --into V_PRODUCT_NAME
                            from dual;
    
                
                V_LOG_FILE := UTL_FILE.FOPEN(FILE_PATH, 'LOG_FILE.dat', 'A');
                
                    IF (V_QUANTITY > 0)
                    THEN
                       SELECT COUNT (*)
                       INTO V_COUNT_CUST
                       FROM CONVERSION_CUSTOMERS
                       WHERE CUSTOMER_NAME = V_CUSTOMER_NAME;
               
                       IF(V_COUNT_CUST > 0)
                       THEN
                           SELECT COUNT(*)
                           INTO V_COUNT_PROD
                           FROM conversion_products
                           WHERE PRODUCT_NAME = V_PRODUCT_NAME;
                  
                          IF(V_COUNT_PROD >0)
                           THEN
                                INSERT INTO XXCTS_ORDER_DETAILS_STG VALUES (V_CUSTOMER_NAME, V_PRODUCT_NAME, V_MANUFACTURER, V_QUANTITY, V_REQ_SHIP_DATE, V_REQ_PRICE, 'ACTIVE', 'ORDER TAKEN');   
            
                           ELSE
                                DBMS_OUTPUT.PUT_LINE('PRODUCT SHOULD BE VALID');
                                UTL_FILE.PUT_LINE(V_LOG_FILE, 'PRODUCT SHOULD BE VALID');                    
            
                           END IF; 
                       ELSE
                          DBMS_OUTPUT.PUT_LINE('CUSTOMER SHOULD BE VALID');
                          UTL_FILE.PUT_LINE(V_LOG_FILE, 'CUSTOMER SHOULD BE VALID');
                       END IF;       
               
            
                    ELSE
                        DBMS_OUTPUT.PUT_LINE('QUANTITY SHOULD BE VALID');
                        UTL_FILE.PUT_LINE(V_LOG_FILE, 'QUANTITY SHOULD BE VALID');
                    END IF; 
    
            
                    EXCEPTION
                    WHEN NO_DATA_FOUND THEN
                        EXIT;
                    END;
            
        END LOOP;
        
    END;
    
    /
    I was able to extract the first 3 fields of the file data, but when I use the same SUBSTR and INSTR functions to extract then three fields I am unable to do so (I get 5, 6 on the ground as well when I extract the 4th field). I've hardcoded the position values in these functions, such as mentioned in the structure of flat file.

    It would be great if someone can tell me how to extract the three fields in the flat file.


    Thank you
    Romaric

    Romaric,

    Why you use v_end_pos to trim spaces when you know the beginning and end of all columns positions?
    I do not see the code when you check out the values of other 3 columns (Qty, Date & price).

    You can use substr underneath rather do SELECT each time.

    V_CUSTOMER_NAME  := SUBSTR(v_buffer,1,30);
    V_MANUFACTURER    := SUBSTR(v_buffer,31,70);
    V_PRODUCT_NAME    := SUBSTR(v_buffer,71,90);
    V_QTY := SUBSTR(v_buffer,91,95);
    V_SHIP_DATE := SUBSTR(v_buffer,96,115);
    V_PRICE := SUBSTR(v_buffer,116,120);
    

    -Raj

  • Impossible to activate the broker configuration or display information from the database

    -J' I add databases primary and standby in a broker configuration:

    DGMGRL > see Configuring

    Configuration - DGConfig1

    Protection mode: MaxPerformance
    Databases:
    TEST_PRI - primary
    TEST_STD - physical of the standby database

    Fast-Start Failover: DISABLED

    The configuration status:
    SUCCESS
    ####################################
    - And the configuration of the

    DGMGRL > activate configuration;
    Permit.
    ################################
    - And see the new configuration

    DGMGRL > see the configuration;

    Configuration - DGConfig1

    Protection mode: MaxPerformance
    Databases:
    TEST_PRI - primary
    TEST_STD - physical of the standby database

    Fast-Start Failover: DISABLED

    The configuration status:
    SUCCESS

    ##################################
    -But, when I show the information of database

    DGMGRL > see the TEST_PRI database
    Object "test_pri" not found.

    #############################################
    -J' noticed 'ACTIVATE' notation is not see the place in the broker configuration, like this

    DGMGRL > see Configuring

    Configuration
    Name: DGConfig1
    Activated: YES < < < -.
    Protection mode: MaxPerformance
    Databases:
    pc00prmy - primary database
    pc00sby1 - physical of the standby database

    Fast-Start Failover: DISABLED

    Current situation for 'DGConfig1 ':
    SUCCESS

    ###########
    -Why my setup notes the mention: "enabled: Yes/No?
    - And in the configuration, it will list the databases (pri and stdby), but why I can not use 'show the TEST_PRI/TEST_STD database'

    :(

    Help, please
    So thank you
    Ch

    Hello;

    Show you:

    See the TEST_PRI database

    I think it should be:

    See the "TEST_PRI" database

    Other examples:

    DGMGRL > see THE DATABASE 'TEST_PRI', 'StatusReport. "
    DGMGRL > see THE DATABASE 'TEST_PRI', 'LogXptStatus;
    DGMGRL > see THE DATABASE 'TEST_PRI', 'InconsistentProperties ';
    DGMGRL > see THE DATABASE 'TEST_PRI', 'InconsistentLogXptProps ';

    Best regards

    mseberg

  • How to display data from the emp table?

    Hi everyone, this is my first post in this portal. I want to display the details of the table emp... for this I use this SQL statement.

    Select * from emp where mgr = nvl(:mgr,mgr);

    When I give the entry as 7698 it shows the matching records... and also when I don't give any input then it shows all the records except the Archbishop with null values.

    (1) I want to display all the records when I do not give any input, including null values
    (2) I want to display all the records that a Bishop is null

    Is it possible to integrate in order to include all these in a single query.

    Hello

    937440 wrote:
    Hi everyone, this is my first post in this portal.

    Welcome to the forum!
    Don't forget to read the forum FAQ {message identifier: = 9360002}

    I want to display the details of the table emp... for this I use this SQL statement.

    Select * from emp where mgr = nvl(:mgr,mgr);

    When I give the entry as 7698 it shows the matching records... and also when I don't give any input then it shows all the records except the Archbishop with null values.

    (1) I want to display all the records when I do not give any input, including null values
    (2) I want to display all the records that a Bishop is null

    Is it possible to integrate in order to include all these in a single query.

    It's a little unsure what you're asking.
    The following query always includes the lines where mgr is NULL and when the binding variable: mgr is NULL, it displays all the lines:

    SELECT  *
    FROM     emp
    WHERE     LNNVL (mgr != :mgr)
    ;
    

    In other words, when: 7698 = mgr, it displays 6 rows and when: mgr is NULL, it displays 14 rows (assuming you are using the table provided by Oracle scott.emp).

    The following query includes lines where Bishop is ZERO only when the binding variable: mgr is NULL, in which case it shows all lines:

    SELECT     *
    FROM     emp
    WHERE     :mgr     = mgr
    OR       :mgr       IS NULL
    ;
    

    When: mgr = 7698, this will display 5 rows and when: mgr is NULL, it displays 14 rows.

    The following query includes lines where Bishop is ZERO only when the link variab; e: mgr is NULL, in which case it shows only those rows where mgr is NULL. In other words, it treats NULL as a value:

    SELECT     *
    FROM     emp
    WHERE     DECODE ( mgr
                , :mgr, 'OK'
                )     = 'OK'
    ;
    

    When: mgr = 7698, this will display 5 rows and when: mgr is NULL, it displays 1 row.

  • How to change the data from the database and displayed in a DG

    Hello, it's me again with a simple question:

    I received the request of SQLi that returns multiple lines.

    In this line, I have for example:

    Reward-> 1

    How, instead of show 1 in the data grid, change this value to 'YES '.

    I followed this thread:

    private void onResultStats(event:ResultEvent):void

    {

    ServerStatsArr = new ArrayCollection (event.result.source);

    for (var i: int = 0; i < ServerStatsArr.length; i ++)

    {

    If (.abonnement ServerStatsArr [i] == 304) {}

    ServerStatsArr [i] .abonnement = 'Premium ';

    } else {}

    . Subscription ServerStatsArr [i] = 'no ';

    }

    If (ServerStatsArr [i] .transparence == 1) {}

    . Transparency ServerStatsArr [i] = 'yes ';

    } else {}

    . Transparency ServerStatsArr [i] = 'no ';

    }

    }

    ServerStatsArr.refresh ();

    }

    Why this method works for the subscription when (.abonnement ServerStatsArr [i] == 304) he displays Premium, but it does NOT work for transparency ?

    I tested (.transparence ServerStatsArr [i] == 1) and (.transparence ServerStatsArr [i] == '1')

    Thank you

    Hi again,

    private void setLabel(item:Object,column:DataGridColumn):String

    {

    Switch (Column.DataField)

    {

    case 'transparency ':

    If (item.transparence is "1")

    return ('yes')

    on the other

    return ('no')

    break;

    case "subscription":

    If (item.abonnement is "304")

    return ("premium")

    on the other

    return ('none')

    break;

    by default:

    Return("");

    }

    }

    and your grid adjustments - add the labelfunction to the following topics
    I hope we get a credit of distinction for this mission...
    David.
  • Display data from a database

    I have 2 questions
    first: I need to have the information automatically sorted "descending".
    Second: ineed to wrap information.
    summer work on this for a while and can't seem to solve these 2 items.
    Any help would be greatly appreciated.

    Here is my code:

    < cfquery Name = "tbl_Issue" DATASOURCE = "AdminServerIssues" >
    Select * from tbl_Issue

    < / cfquery >
    < br >
    < br >
    "< img src="/Departments/Life_Minot/AdminServer/Images/AdminServer.png "> < br >
    < br >
    < br >
    < span class = "t18" > AdminServer questions </span > < br >
    < br >
    < br >
    < cfoutput Query = "tbl_Issue" >
    < TD > < span class = 't20' > #Date_Time # </span > < span class = "t6" > resolved: </span > < span class = 't20' > #resolved # </span > < /dt >
    < dd > < span class = "t1" > #issue # </span > < br >
    < br >
    < foreigners >
    < / cfoutput >

    I don't know if this helps, but you could just output the data in a table HTML Dreamweaver makes what we call dynamic tables, this will give you and HTML output and you allow the formatting even as a table.

    Turn the borders of table border = '0' to hide any information from border

  • With the help of data from the database on my Web page

    Hello

    This is probably a simple great question, so I apologize in advance. I looked through a lot of information on BC and I can't seem to find the answer to my question (although a lot of it seems to go over my head that I'm a n00b full BC., and I feel that my hands are tied without being able to just stir up the something in Python or PHP!).

    I am trying to create a Web page that displays a single product (the entire site exists just for 1 product), and the user can click on the color chart of different color in order to customize it. I would like my client (owner of site) so you can easily add new colors (using the hexadecimal code) for different parts of the product.

    So I basically just need a place where the client can enter these values, and then I can write on my page in JavaScript format and build dynamic page using JavaScript.

    It seemed that the way to do would be to create a new "Web App" inside the BC. I did, and I created a "Web App Item" called "Data". Under "Data", I added a 'field Item' named 'Color', which is a multiline text area. I entered a few different hexadecimal codes like this:

    000000

    FFFFFF

    003366

    (I thought that I can analyze the lines with JS)

    The problem, I comes across however, is to know how to enter these data in my source code on my Web page? I created a Web page and I put the code in it:

    {module_webapps, 6042, one,}

    but this will display a list of links, with a link to 'Data', and then if you click on "Data" you go to a separate web page that says only: "Data" in this topic. Very strange.

    Is there a way I can get the data entered here in the source of my Web page? (Or is there a better way to do it?)

    As a more general question... It's basically just how use BC as a CMS and have custom fields that you can then access your web page. A bit like plugin, WordPress Advanced Custom Fields, if you're familiar with that. (I know that's not WordPress, but just a way that I can access certain values that my client has entered in)

    Thanks in advance!

    Heather

    You may be better to use electronic commerce and assign different attributes for your colors?

  • Data from the CSV into a TABLE

    Hello world...

    I have the csv file in c:\city.csv (this file have 2 fields that are 'id' and 'short-term'
    I have a form... There is a button on it.
    and I have a table in my database of CITY and its fields are (id number, city varchar2 (50))

    I want a procedure that when I press the button on the form fields CSV file copy of table

    I saw the number of threads, but I did not understand...
    Please make me a procedure...
    don't give me links refrence...
    Thanks in advance

    concerning
    Sani...

    Hoek put the right answer :) so... try next time

    Here is your code:

    -- Test-Table
    CREATE TABLE city_table (
      city_id    VARCHAR2(100),
      city_name  VARCHAR2(100)
    );
    
    -- Test-File
    1000,Cologne
    1001,Amsterdam
    1002,KFC :)
    1003,Blabla
    
    --Forms-Procedure to call
    PROCEDURE get_city_data
    IS
    
      file_handle   text_io.file_type;
      seperator     VARCHAR2(1) := ',';
      city_row      VARCHAR2(32767);
      city_id       VARCHAR2(100);
      city_name     VARCHAR2(100);
    
    BEGIN
    
      file_handle := text_io.fopen('c:\city.csv', 'R');
    
         BEGIN
    
           LOOP
    
             text_io.get_line(file_handle, city_row);
             city_id := SUBSTR(city_row, 1, INSTR(city_row, seperator) - 1);
             city_name := SUBSTR(city_row, INSTR(city_row, seperator) + 1);
             INSERT INTO city_table
             VALUES(city_id, city_name);
    
              END LOOP;
    
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
        NULL;
      END;
    
         text_io.fclose(file_handle);
    
         COMMIT;
    
    EXCEPTION
         WHEN OTHERS THEN
              message('Error!!');
              RAISE FORM_TRIGGER_FAILURE;
    END;
    

Maybe you are looking for

  • "Reply to" address wrong in the copy of the recipient of my emails

    I have several e-mail accounts. If I send an email from account 'A', the reply-to field seems correct because I'm composing email. However, when the recipient replies to my email response will in the Inbox for the account "D". The same thing happens

  • user accounts may be on another partition for the file system

    I want to have two versions of the operating system on my computer, 10.7.5 and El Capitan, but as all the files from the user to access both. I can define a Directory users on the same system?

  • How to reset the admin or power on password on envy

    Hi, I have a laptop of jealousy with admin or power on password protected. However, I forgot the password and he gave me 53791281 after 3 attempts. Help, please!

  • RAID6

    We got an email Dell fom, raid 50 is is more convenient pest for tables with 1 TB SATA disks a NL - SAS. You converting RAID 6 arrays or let them run raid 50? Michael

  • VLC media player issues on Windows 8

    I installed vlc media plauer on my Windows laptop, 8. When I open a video file, there is only audio nd no video game. I read the other threads but I can't find any help solutions.plz