Selecting data in forms from site column fields

We are seeing some unusual actions when selecting data from site columns on the new item form.  Here's the context.
2 lists are maintained at the Intranet level and designated as a site column.
4 lists are maintained at a subsite level and are also designated as a site column.
We created a list on the second tier subsite (third level) and added all 6 of the site columns to the list.
When opening the new item to add an entry, some of the fields have a default value listed.  You only need to click your selection once to populate the field.  Some fields appear with (none) as the default value.  Other fields are blank and
you have to double click your selection to populate the field.
We have not edited the default forms in any way...they are straight out of the box.
I'm assuming this has something to do with the setup on some of the lists, sites, or site columns, but haven't the foggiest as to what may be causing the issues.  All list settings I've thought to check are consistent with each other.  Any help
would be greatly appreciated.

robin, you are on to something with the 20 item question.  i created three lists with 19, 20, and 21 items respectively and then added 3 columns to my test library and attached to those lists.  when in internet explorer, 19 works perfect.  however,
on the new item form, the fields for 20 and 21 are 3 times the length of the 19 field and do require a double click for entry.  when adding a new item in firefox, all three fields were single click entry.  is there someway to change this behavior?
the mystery remains though on the default value.  in this test library and test columns, (none) shows up as the default value on the new item form for all fields regardless of the number of items in the list.  cameron, since these are lookup columns,
the default value option disappeared on the column creation page.  is there another location where i need to select a default value?  or, hopefully not, do i need to copy over my data and delete/recreate the lists?  
i know early on the creation of the lists were somewhat haphazard in that some users turned off required entry for the title field and skipped over it for data entry while others simply renamed the title field and entered data in it.  that may be more
of a nit on my end, but wasn't sure if it might randomly have an impact.

Similar Messages

  • How to run report with selected data in form?

    Hi,
    Imagine I have a form with a Data block with this inside :
    Code | Name
    1 | Product1
    2 | Product2
    I want to run a report that will only select these 2 records from the table "product".
    I manage to run a report from forms, but it's a pre-defiined report that will always display the same things. (all the table)
    Maybe it's with the paramlist, would you have an exemple or tutorial about that?
    Edit : When I create the report object in the form, I can give the source Data Block, but how to use in the report Data Model?
    Edited by: Danicela on 24 avr. 2009 10:41

    One way to achieve this is to use a "temporary" ID-table.
    Create a table with just two columns RUN_ID and ID
    Then, in forms before starting the report, create a new RUN_ID, e.g. by using a sequence and then, for every record in your block, create a record with the RUN_ID and the record's PK-column-value, in your case this might look like
    RUN_ID  ID
    4711     1
    4711     2Commit that data in Forms (e.g. with using an autonomous transaction).
    Now, pass the RUN_ID as a parameter to the report, and in reports, restrict your query like
    SELECT ..
      FROM YOURTABLE
    WHERE ID IN (SELECT ID
                    FROM ID_TABLE
                   WHERE RUN_ID=:PARAM_RUN_ID
                 )To be clean, delete the data with the run_id in the AFTER-REPORT-trigger of the report.

  • Select dates that match from same table.

    I wish to update a selection of records
    where the order_date is the same, and the customer_id is the same.
    The update simply need to be to change the order date on both to the lowest date of the two(or how ever many there are for that date).
    e.g.
    Ship_date / Order_date / customer_id
    1-02-01 2-01-01 1
    1-02-01 12-01-01 1
    12-01-01 1-01-01 2
    12-01-01 5-01-01 2
    ## So above the first 2 records would have the order_date set to the lowest date of the two records.
    A self join ?
    Not really sure about this, Thanks in advance!

    You could try this (not tested):
    UPDATE yourTable t1
    SET t1.Order_Date = (SELECT min(t2.Order_date)
                               FROM yourTable t2
                               WHERE t2.ship_date = t1.ship_date
                               AND t2.customer_id = t1.customer_id)However this also updates columns that already have the minimum value. Maybe you would like to avoid it, then add some where clause to the Update statement.
    Changed because order_date and ship_date needed to be switched.
    Message was edited by:
    Sven Weller

  • How to find where the data is coming from in appended field for BW extract

    I am not an ABAP'er ... And this problem is about a BW Extractor
    I am extracting data for my (Utility Industry) Sales Statistics Cube using 0UC_SALES_STATS_01 data source. The Extract structure is BIW_ISU_ESTA and we are appending the structure with a few fields:
    I_ZAHL1
    I_ZAHL2
    I_ZAHL3
    I see some similar fields in DBERCHZ1 which are not the same. The data gets filled in the above fields somehow. I need to find out how and where. We have now diffrent variation of the same data and I'd like to extract that transactional data as well using the same fields rather than appending more fields to an already huge extract structure. When I click on the fields in BIW_ISU_ESTA, it takes me no where. I also tried out the extractor program (RSA3) in debug mode but somehow the fields are already populated. I tried using the ABAP dictinary but can't find a way to find these fields there.
    Any help would be appreciated.
    Thanks a lot.
    Bilal

    Thanks Renata,
    This is a standard business content extractor with the fields enhanced. Usually we have some user exits to populate the fields but in this case we only append the extract table. I couldn't see these fields being part of any existing includes in the extract struct but some how they get populated. I guess system knows from where to copy the data.
    Thanks for your reply though. I am closing this thread as it seems not a very popular cube.
    Bilal

  • Select data into LOV as Multi Column form a Single Column Table

    Table: CALL_DETAILS
    FLT_NO  CALL_NO LOCATION  DATE_ARRIVAL     PRV_FLT_NO
    FLT01      1      DXB        01/07/07      FLT00
    FLT01      2      TIL       02/07/07      FLT00
    FLT01      3     HKG       03/07/07      FLT00
    FLT01      4      SIN       04/07/07      FLT00
    FLT01      5      DXB       05/07/07      FLT00
    FLT02      1     DXB       05/07/07      FLT01
    FLT02      2      TIL       06/07/07      FLT01
    FLT02      3     HKG       07/07/07      FLT01
    FLT02      4      SIN       08/07/07      FLT01
    FLT02      5      DXB       09/07/07      FLT01
    FLT03      1      DXB       09/07/07      FLT02
    FLT03      2      TIL       10/07/07      FLT02
    FLT03      3      HKG       11/07/07      FLT02
    FLT03      4      SIN       12/07/07      FLT02
    FLT03      5      DXB        13/07/07      FLT02Above is my Table & Data
    I want a query to populate like blow after selecting 2 LOCATIONS.
    LOC 1 = DXB
    LOC 2 = HKG
    LOV Data........
    FLT01  DXB  01/07/07  HKG  03/07/07
    FLT02  DXB  05/07/07  HKG  07/07/07
    FLT03  DXB  09/07/07  HKG  11/07/07On the form the user will type LOC_1 and LOC_2. Then on the next field the user have to select the
    available Flight Details between LOC_1 and LOC_2. May through a LOV the Flight_Details to be populated.
    Also there will be a possibility to have the Locations like below
    LOC 1 = SIN
    LOC 2 = TIL
    LOV Data........
    FLT01  SIN  04/07/07  TIL  06/07/07
    FLT02  SIN  08/07/07  TIL  10/07/07

    Another go, including an extra flight which is not connected to the first. Original query would break with this data. It would be better if you could structure your data so that flights were grouped into logical services instead of using the previous flights column.
    WITH data AS(
      SELECT 'FLT01' FLT_NO, 1 CALL_NO, 'DXB' LOCATION, To_Date('01/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 1.5 CALL_NO, 'DXB' LOCATION, To_Date('01/07/07 12','DD/MM/YY HH') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 2 CALL_NO, 'TIL' LOCATION, To_Date('02/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 2.5 CALL_NO, 'HKG' LOCATION, To_Date('02/07/07 12','DD/MM/YY HH') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 3 CALL_NO, 'HKG' LOCATION, To_Date('03/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 4 CALL_NO, 'SIN' LOCATION, To_Date('04/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT01' FLT_NO, 5 CALL_NO, 'DXB' LOCATION, To_Date('05/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT00' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT02' FLT_NO, 1 CALL_NO, 'DXB' LOCATION, To_Date('05/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT01' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT02' FLT_NO, 2 CALL_NO, 'TIL' LOCATION, To_Date('06/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT01' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT02' FLT_NO, 3 CALL_NO, 'HKG' LOCATION, To_Date('07/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT01' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT02' FLT_NO, 4 CALL_NO, 'SIN' LOCATION, To_Date('08/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT01' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT02' FLT_NO, 5 CALL_NO, 'DXB' LOCATION, To_Date('09/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT01' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT03' FLT_NO, 1 CALL_NO, 'DXB' LOCATION, To_Date('09/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT02' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT03' FLT_NO, 2 CALL_NO, 'TIL' LOCATION, To_Date('10/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT02' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT03' FLT_NO, 3 CALL_NO, 'HKG' LOCATION, To_Date('11/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT02' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT03' FLT_NO, 4 CALL_NO, 'SIN' LOCATION, To_Date('12/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLT02' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLT03' FLT_NO, 5 CALL_NO, 'DXB' LOCATION, To_Date('13/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLTXX' FLT_NO, 1 CALL_NO, 'DXB' LOCATION, To_Date('14/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLTXX' FLT_NO, 2 CALL_NO, 'TIL' LOCATION, To_Date('15/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLTXX' FLT_NO, 3 CALL_NO, 'HKG' LOCATION, To_Date('16/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLTXX' FLT_NO, 4 CALL_NO, 'SIN' LOCATION, To_Date('17/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual UNION ALL
      SELECT 'FLTXX' FLT_NO, 5 CALL_NO, 'DXB' LOCATION, To_Date('18/07/07','DD/MM/YY') DATE_ARRIVAL, 'FLTAA' PRV_FLT_NO FROM dual
    SELECT flt_no, f_location, f_date, t_location, t_date
    --,rn_from, rn_to
    FROM(
      SELECT
        tfrom.flt_no,
        tfrom.location f_location,
        tfrom.date_arrival f_date,
        tto.location t_location,
        tto.date_arrival t_date,
        Row_Number() over(PARTITION BY tto.date_arrival ORDER BY tfrom.date_arrival DESC) rn_from,
        Row_Number() over(PARTITION BY tfrom.date_arrival ORDER BY tto.date_arrival ASC) rn_to
      FROM
        (SELECT DISTINCT sys_connect_by_path(flt_no,'/') flts FROM data CONNECT BY PRIOR prv_flt_no = flt_no) service,
        (SELECT * FROM data d1 WHERE call_no != (SELECT Max(call_no) FROM data WHERE flt_no = d1.flt_no)) tfrom,
        (SELECT * FROM data d1 WHERE call_no != (SELECT Max(call_no) FROM data WHERE flt_no = d1.flt_no)) tto
      WHERE tfrom.location = 'SIN'--'DXB'
      AND tto.location = 'TIL'--'HKG'
      AND tto.date_arrival > tfrom.date_arrival
      AND InStr(service.flts,tfrom.flt_no) > 0
      AND InStr(service.flts,tto.flt_no) > 0
    WHERE rn_from = 1
    AND rn_to = 1
    ORDER BY 1,3;

  • Report with Form Passing date to form from report issue

    Hi All ,
    I got stuck up in the below issue .Can anyone point out the issue behind it and how to get rid of this.
    I have created a report page with form page .The report page have 2 column identified as conjugate primary key.the col1 is varchar2 and col2 is date .
    The report page have one link on col1 field which is passing the Item_value for both col1 and col2 to form page .
    In the DB level the col2 data type is date (for e.g : 26/07/2007 07:08:56) .But the probem is when we are clicking on the link of col1 it is displaying error like Error like ORA-01403: no data found .
    But if the data in DB is only in format of DD/MM/YYYY removing the timestmap the link is working fine and returing data for other fields in the form page .
    Could anyone pls pointed out the problem and let us know the issue.
    Thanks in advance.
    Regards,
    Deba

    Hi Deba,
    I suppose your problem is due to the : in the time.
    You're passing these values with the url I suppose? Have a look how APEX generates/constructs the url, it uses : to separate things.
    I'm not sure why you want a date in a Primary Key?
    Thanks,
    Dimitri

  • Select data to Restore from Time Machine

    I am having some issues with my software and i want to reinstall my snow leopard.
    But, last time i tried doing that, my errors came back with my restore.
    Is there a way i can select which applications and files i want to restore??

    you can pick and choose to some degree with Migration Assistant. but only to some degree. You can do an erase and install of Snow leopard. you'll need to wipe your hard drive with disk utility on the install dvd and then proceed with the install. after the install is finished you restart and get to setup assistant. it will offer to migrate your data from a TM drive. as i recall it gives you the same flexibility as Migration Assistant. that is you can choose to migrate applications and/or users. but you can not pick and choose which apps to migrate. it's all or nothing. you can choose which users to migrate and it will give you some flexibility about what to migrate from users home directories. if you don't migrate during original setup you can always do it later using Migration Assistant located in /Applications/Utilities.
    If you want full flexibility you can decline to migrate anything and restore what you want by hand from TM backups. that's pretty tedious but will give you the cleanest system. you'll have to reinnatll all your apps from scratch if you go that route.

  • Select data as table from xml string using xquery.

    Hi ,
    I have this xml 
    declare @xml xml
    set @xml =' <StudentsData>
    <StudentData>
    <id>1</id>
    <subjects>
    <subject>
    <subid>1</subid>
    <marks>30</marks>
    </subject>
    <subject>
    <subid>2</subid>
    <marks>40</marks>
    </subject>
    </subjects>
    </StudentData>
    <StudentData>
    <id>2</id>
    <subjects>
    <subject>
    <subid>1</subid>
    <marks>30</marks>
    </subject>
    <subject>
    <subid>2</subid>
    <marks>40</marks>
    </subject>
    </subjects>
    </StudentData>
    </StudentsData>'
    select @xml
    I wan the output to be shown as
    id subid marks
    1 1 30
    1 2 40
    2 1 30
    2 2 40
    how can i do this using XQUERY in sqlserver ?.
    Thanks in advance for any help.

    how can i do this using XQUERY in sqlserver ?
    Sure you can and it's easy:
    declare @xml xml
    set @xml =' <StudentsData>
    <StudentData>
    <id>1</id>
    <subjects>
    <subject>
    <subid>1</subid>
    <marks>30</marks>
    </subject>
    <subject>
    <subid>2</subid>
    <marks>40</marks>
    </subject>
    </subjects>
    </StudentData>
    <StudentData>
    <id>2</id>
    <subjects>
    <subject>
    <subid>1</subid>
    <marks>30</marks>
    </subject>
    <subject>
    <subid>2</subid>
    <marks>40</marks>
    </subject>
    </subjects>
    </StudentData>
    </StudentsData>'
    select students.Rows.value('subid[1]', 'int') AS id
    ,students.Rows.value('marks[1]', 'int') AS marks
    FROM @xml.nodes('/StudentsData/StudentData/subjects/subject') AS students(Rows)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Creating a new Column for my list Versus adding it from existing site columns, when to use each approach

    I have created a new issue tracking list inside SharePoint 2013 team site. And it comes with predefined columns, some of them are useful while the other are not . Can anyone help me in figuring out the following:-
    The list come with a field named “Assigned To”, while in my case I want a column named “Approver”. So what is preferred , to re-name the “Assumed to ”column to “Approver”, or create new field name “Approver”.?.
    If I rename an existing column, could this be overridden in any future updates for my SharePoint server?
    Now we want to add a column named “Office location”.so I need to create a new field for this. But seems there are two ways to do so either to add a new Site Column at the site level and then assign it to the list as follow :- 
    , or to directly adding a column to the list, even if it is not available in the site columns , as follow:-
    So what are the differences between the two approaches ? .if I am not wrong defining a site column will allow me to re-use it in another list , but defining the column at the list level, will allow me to add a column even if it is already defined as site
    column.
    So can anyone advice on my three questions please? Thanks

    1) 'Assigned to' has a different meaning then 'Approver' , it will be better if you create a new field for 'Approver'. Assigned to is a Site Column which has managed property for search, so it will be confusing type of data it will return from search in
    future. 
    2) Any rename of fields should not / and will not get modified in SharePoint updates. So, you can rename is without any issue since the internal name will remain the same. But its always better to create your own custom column for business use.
    3) Creating a site column or not depends upon your need, If you create a Site Column - in whole site collection you will be able to add this field in any list - It will be crawled, SharePoint will automatically provide managed property for site column and
    you will be able to get this value via search. These things will not be present in list column, you will need to do specific settings in case its required.
    If these things are needed then you can go for Site Column, usually its good to create a Site Column and use it.
    For Site Columns you can check following links 
    Introduction to Columns
    From site column to managed property - What's up with that?
    Create a site column
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
    thanks a lot for your reply it is really helpful. so as i understand that using site columns will be better in most cases, and there is not any specific reason for not using it? is this right ?
    Second question, do u mean that if i have a list column named "Serial number", then this column will not be searched ? For example if i have serial number such as "12345" and i try searching this text "12345" i will not get
    the item in my search ?
    Thanks

  • Indexing a Site Column

    We have some columns that are at site level and are used in multiple libraries. When I come to index columns in individual libraries, these columns are not available. As they are month and year indicators they would be important columns upon which to
    index.
    Is there a way of indexing a site level column used in more than one library?

    You can index site column
    Check below:
    http://blogs.technet.com/b/tothesharepoint/archive/2013/03/06/from-site-column-to-managed-property-what-s-up-with-that.aspx

  • Data fields selected in a form are not displaying

    I have selected "Size" & "Outlook Data File" as 2 fields that I need to see on the front tab of all my contacts.  In testing to see if it works I opened a new contact (blank).  Upon it trying to open I get the same error
    twice  "The Property does not exist.  The field you want to modify does not exist for this type of item."  I don't want to modify these two fields, just display them.  I chose the same field names in the forms developer/design
    area as when I added the field as a display cols. in a simple list of contacts (e.g. phone book).  So it works in Viewing a list but I can't see these 2 fields when I add them to a form.  More precisely the labels show, "0" shows as the
    size and blank in the other display field.

    Hi Steve,
    Situation:  Through the yrs I've had multiple email domains.   I've discovered that as I opened and edited contacts they did not always save to my main contact  (.pst) I want to consolidate my contacts to my new one.  
    If I open the same email address from 3-5 different .pst & now MSX too, I want to know which file (domain) they are being displayed from so I don't necessarily have to ck every field to know if I can simply delete one or if I have to go field
    by field to do a merge.  Secondly, I've found that some contacts from older domains never got to my current .MSX so I'm trying to figure the best way to see these.   (Doing an export, then import & then removing dups is not a feasible answer. 
    The exports truncate my notes to 250 chars so I loose too much of my history.)  I added "InFolder" to the contacts form but several say "contacts" so that is not enough to differentiate them.  I tried to go & change the name of the older contacts
    folders but still have 3 contacts folders that I can't seem to change.
    "A field appears in the Field Chooser but it doesn't mean we can use it on every type of Outlook item. We can only use fields appropriate for the form we are designing."  I realize this but these 2 fields are available & display beautifully when
    I select them in my "View" of a list of contacts so it's associated in the OutL database.  Seems logical that it should be on a design form too.
    Is there another suggestion for differentiating where the source of the contact comes from?
    Not sure I follow what you mean by, "We can also post in Outlook for Developers forum to check the properties of Outlook contact form, and confirm which fields we can add to it:" ?? Will this serve as that posting or are you saying post a separate thread?

  • Need to select XMLTYPE data in unindented form, from a query.

    I need to select XMLTYPE data among relational data as an xml element.
    SELECT
      XMLSERIALIZE(DOCUMENT
      XMLELEMENT ("Account",
          XMLATTRIBUTES (LPAD(ROWNUM, 10 , '0')        AS "recordId"    )
           ,XMLELEMENT ("Header"
               ,XMLELEMENT ("AccountId"
                  ,XMLELEMENT ("AccountNumber"          ,car.acc_nbr              )))
                  ,XMLELEMENT ("CreditPurpose"            ,car.credit_purp           )
                 ,XMLELEMENT ("AccountType"              ,car.acc_type              )
                , (cdx.cus_dtls)  -- /*THIS IS XMLTYPE data*/
      ))AS crdtrpt
    FROM  cus_acc_rpt car , cus_dtls_xml cdx
    WHERE car.ar_id = cdx.ar_id
    Here cdx.cus_dtls need to be selected in unindented form (each records as a long unbroken string of data). So that I can SPOOL huge number of records in lesser time.
    I am trying to convert this into CLOB and Insert into CLOB type column of a table.
    But XMLSERIALIZE does not seem to serialize the xml data in cus_Dtls column.
    However it does serialize the xml typ data selected other than cus_dtls.
    Any quick hints to meet the requirements will be very welcomed !!
    Cheers !!
    Saxena

    Use XMLSerialize with NO INDENT option :
    SELECT XMLSERIALIZE(DOCUMENT
             XMLELEMENT ("Account",
             NO INDENT
           )AS crdtrpt
    FROM  cus_acc_rpt car , cus_dtls_xml cdx
    WHERE car.ar_id = cdx.ar_id

  • Need help - select data from NCLOB column problem

    Hi,
    Im having problem retrieving data from NCLOB columns via ODBC. After SQLExecdirect on my SELECT statement call to SQLFetch gives me following error:
    ORA-24806 LOB form mismatch
    I tried following two ways of data retrieval:
    SQLExecDirect(hstmt,(SQLTCHAR*)szSQLStatement,SQL_NTS);
    SQLBindCol(hstmt,3,SQL_C_TCHAR,chBuffer,sizeof(chBuffer),&iDataLen);
    SQLFetch(hstmt);
    OR
    SQLExecDirect(hstmt,(SQLTCHAR*)szSQLStatement,SQL_NTS);
    SQLFetch(hstmt);
    SQLGetData(hstmt,3,SQL_C_TCHAR,chBuffer,sizeof(chBuffer),&iDataLen);
    Both times call to SQLFetch gives me ORA-24806 LOB form mismatch error.
    INSERT and UPDATE for this table works just fine.
    If I change NCLOB type to CLOB works just fine, but I will be storing Unicode data, so using CLOB cant be a solution
    Any ideas appreciated.
    Thanks in advance,
    Vlad
    Server:
    Oracle 9.2 database on Windows 2000 Server
    NLS_LANGUAGE = AMERICAN
    NLS_TERRITORY = AMERICA
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    Client:
    Unicode C++ application, connects via Oracle 9.2 ODBC driver on Windows XP
    NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
    CREATE TABLE my_nclob_table (
         id number (10,0) NOT NULL ,
         name nvarchar2 (255) NOT NULL ,
         description nvarchar2 (255) NULL ,
         definition nclob NOT NULL ,
         creation date NOT NULL ,
         lastmodified date NOT NULL ,
         CONSTRAINT PK_cat_pricelist PRIMARY KEY
              id
    #define     nil NULL
    #define     null NULL
    #define     SQL_ERR(__sqlerr__)     (((__sqlerr__) != SQL_SUCCESS) && ((__sqlerr__) != SQL_SUCCESS_WITH_INFO))
    #define     STOP_IF_SQL_ERR(__sqlerr__)                                                                 \
                                                      do                                                       \
                                                           if (SQL_ERR(__sqlerr__)) goto stop_;     \
                                                      } while (false)                                                  
    void eqTestOracleLOBSelect(void)
         SQLHENV henv     = null;
         SQLHDBC hdbc     = null;
         SQLHSTMT hstmt     = null;
         SQLRETURN retcode     = SQL_SUCCESS;
         TCHAR          szSQLStatement[]     = T("select id, name, definition from mynclob_table");
         int               iFetchedRows = 0;
         TCHAR          szMsg[512];
         TCHAR          chBuffer[2049];
         SQLLEN          iDataLen = 0;
         try
              retcode = eqOpenConnectionODBC(_T("myTestDsn"),_T("user"),_T("pwd"),henv,hdbc);
              STOP_IF_SQL_ERR(retcode);
              retcode = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
              STOP_IF_SQL_ERR(retcode);
              retcode = SQLExecDirect(hstmt,(SQLTCHAR*)szSQLStatement,SQL_NTS);
              STOP_IF_SQL_ERR(retcode);
              retcode = SQLBindCol(hstmt,3,SQL_C_TCHAR,chBuffer,sizeof(chBuffer),&iDataLen);
              STOP_IF_SQL_ERR(retcode);
                   while (retcode == SQL_SUCCESS)
                        retcode = SQLFetch(hstmt);
                        if (retcode == SQL_NO_DATA)
                             retcode = SQL_SUCCESS;
                             break;
                        STOP_IF_SQL_ERR(retcode);
                   //     retcode = SQLGetData(hstmt,3,SQL_C_TCHAR,chBuffer,sizeof(chBuffer),&iDataLen);
                   //     STOP_IF_SQL_ERR(retcode);
                        ++iFetchedRows;
         stop_:
              if (SQL_ERR(retcode))
                   MessageBox(null,_T("SQL statement execution error."),_T("Error"),MB_OK);
                   eqShowStatementError(SQL_HANDLE_STMT,hstmt,retcode);
              } else     {
                             _stprintf(szMsg,_T("SQL execution success. Fetched rows: %ld"),iFetchedRows);
                             MessageBox(null,szMsg,_T("Success"),MB_OK);
         catch(...)
              MessageBox(null,_T("Unknown exception in eqTestOracleLOBSelect"),_T("Unknown exception"),MB_OK);
         if (hstmt != null)
              SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
              hstmt = null;
         if (hdbc != nil)
              SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
              hdbc = nil;
         if (henv != nil)
              SQLFreeHandle(SQL_HANDLE_ENV, henv);
              henv = nil;
    SQLRETURN eqOpenConnectionODBC(TCHAR          *szDSN,
                                       TCHAR          *szUser,
                                       TCHAR          *szPassword,
                                       SQLHENV     &henv,
                                       SQLHDBC &hdbc)
         SQLRETURN retcode;
         henv = nil;
         hdbc = nil;
         //Allocate environment handle
         retcode = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &henv);
         STOP_IF_SQL_ERR(retcode);
         //Set the ODBC version environment attribute
         retcode = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (void*)SQL_OV_ODBC3, 0);
         STOP_IF_SQL_ERR(retcode);
         // Allocate connection handle
         retcode = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
         STOP_IF_SQL_ERR(retcode);
         // Set login timeout to 5 seconds.
         SQLSetConnectAttr(hdbc, SQL_LOGIN_TIMEOUT, (void*)5, 0);
         STOP_IF_SQL_ERR(retcode);
         retcode = SQLConnect(hdbc, (SQLTCHAR*)szDSN, SQL_NTS,
                                            (SQLTCHAR*)szUser, SQL_NTS,
                                            (SQLTCHAR*)szPassword, SQL_NTS);
    stop_:
              if (SQL_ERR(retcode))
                   MessageBox(null,_T("Connection Error."),_T("Error"),MB_OK);
                   if (hdbc != nil)
                        eqShowStatementError(SQL_HANDLE_DBC, hdbc,retcode);
                        SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
                        hdbc = nil;
                   if (henv != nil)
                        eqShowStatementError(SQL_HANDLE_ENV, henv,retcode);
                        SQLFreeHandle(SQL_HANDLE_ENV, henv);
                        henv = nil;
              } else MessageBox(null,_T("Connected."),_T("Success"),MB_OK);
         return retcode;
    void eqShowStatementError(SQLSMALLINT chHandleType, SQLHANDLE hHandle,long lErrOrig)
         SQLRETURN          nErr          = SQL_SUCCESS;
         int                    nRecNum = 1;
         SQLTCHAR          szSqlState[6];
         SQLTCHAR          szMsg[SQL_MAX_MESSAGE_LENGTH];
         SQLSMALLINT          nMsgLen;
         SQLINTEGER          nNativeError;
         while ((nErr = SQLGetDiagRec(chHandleType,hHandle,nRecNum,
                                            szSqlState, &nNativeError,
                                            szMsg, sizeof(szMsg), &nMsgLen)) != SQL_NO_DATA)
              szSqlState[5] = 0;
              MessageBox(NULL,(const TCHAR *)szMsg,_T("ODBC Error"),MB_OK);
              ++nRecNum;

    Yes, the 9.2.0.2 driver can be downloaded from OTN. I don't believe it will solve your particular problem, but it will help in general. If you don't grab the latest version, you'll probably have to chack the "Force SQL_WCHAR Support" option in the DSN configuration.
    From the help file
    "The C data type, SQL_C_WCHAR, was added to the ODBC interface to allow applications to specify that an input parameter is encoded as Unicode or to request column data returned as Unicode. The macro SQL_C_TCHAR is useful for applications that need to be built as both Unicode and ANSI. The SQL_C_TCHAR macro compiles as SQL_C_WCHAR for Unicode applications and as SQL_C_CHAR for ANSI applications."
    My first thought would be that your application is not being compiled as Unicode. If you substitute SQL_C_WCHAR for SQL_C_TCHAR when you're dealing with NCLOB columns, I suspect you'll have better luck.
    More help file
    "The SQL data types, SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR, were added to the ODBC interface to represent columns defined in a table as Unicode. These values are potentially returned from calls to SQLDescribeCol, SQLColAttribute, SQLColumns, and SQLProcedureColumns. In Oracle release 8.1.7.0.0 or 9.0.1.0.0, the Oracle database does not support encoding columns as Unicode. These values would not be returned from the ODBC Drivers for Oracle release 8.1.7.0.0 or for Oracle 9.0.1.0.0 databases.
    In Oracle release 9.2.0.0.0, Unicode encoding was supported for SQL column types NCHAR, NVARCHAR2, and NCLOB. In addition, Unicode encoding was also supported for SQL column types CHAR and VARCHAR2 if the character semantics were specified in the column definition.
    Starting with release 9.2.0.2.0, the ODBC Driver supports these SQL column types and maps NCHAR to the SQL data type SQL_WCHAR, NVARCHAR2 is mapped to SQL_WVARCHAR, and NCLOB is mapped to SQL_WLONGVARCHAR. The SQL CHAR column is mapped to SQL_WCHAR and the VARCHAR2 column is mapped to SQL_WVARCHAR if the character semantics are specified for the column. While the Force SQL_WCHAR Support option is still available in the 9.2.0.2.0 ODBC Driver, it is no longer required for Unicode support."
    Justin

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How to select data from a table using a date field in the where condition?

    How to select data from a table using a date field in the where condition?
    For eg:
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
                                                      and bdatu = '31129999'.
    thanks.

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

Maybe you are looking for

  • Segment E1PITYP occurs for each subtype of Infotype 1001 in update mode

    Hi, I am using transaction PFAL and IDoc HRMD_A for transferring HR data. In update mode the resulting IDoc contains segment E1PITYP for each subtyp (for example A002) of Infotype 1001 even if it contains no segments of type E1P1001. Could somebody e

  • Contact form not working :( Please Help...

    Hey guys, I am really in trouble with flash forms and need help please. Ive been trying to get a contact form working for a few weeks but have had no luck. Below is the code I am putting in to the flash form and php file. (this is the code I have put

  • Case and decode - nested functions

    Can i use a case statement inside a decode or nvl2 function? eg. decode(col_a,'ABC', case when col_b in (1,2) then 'CCC' else when col_b in (3,4,5) then 'XXX' end , 'NA') Can i use a function like this basically, can i nest a case statement within a

  • Multiple masking

    Hi! I have an application which is needed tricky mask for one movie. This mask should contain several movies. But as result, mask needs to have just common part of these movies. Thanks for any ideas

  • HT203167 I can't even find the app in the store. Please help. I contacted the camadu app support but they haven't rep

    I bought the app peru tv in march. Sometimes it stays idle when downloading a tv channel so I ended up deleting the app and reinstalling it. Today I can't even find the app in the store. Please help. I contacted the camadu app support but they haven'