Create attributes with image type
There is only one image attribute in the Item Type attribute, I need an additional image attribute for the item, is it possible to add ? However I can't find the datatype of "image" when creating an attribute. Thanks !
hi,
i tested this and there is no image attribute type. so to render an additional image with your item you need to use a workaround. one solution i can think of is to add an additional custom file attribute to your item type. then use an attached pl/sql procedure that get executed for your item type and render this attribute as icon. i think you should be able to use the content management view wwsbr_all_items to query the name of the icon in the document table. you can pass itemid, pageid and pagegroup id to your procedure. on the region level you need to enable the associated functions attribute to display the result of the procedure.
find more information here:
http://www.oracle.com/technology/products/ias/portal/pdf/cm_search_10g_associated_functions_search.pdf
regards,
christian
Similar Messages
-
How to create table with row type in smart forms
How to create table with row type in smart forms with out line type
please explain me the procedureHI,
A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.
A table type is defined by:
its line type, that defines the structure and data type attributes of a line of the internal table
the options for managing and accessing the data ( access mode) in the internal table
the key ( key definition and key category) of the internal table
The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.
<b>for more info :</b> http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
Internal table
Regards
Sudheer -
Type attribute with Object type or Nested table?
I have been creating lot many threads around the same problem, however i thought i knew but realized I do not know or else do not know how to..
I have created object type with an attribute READINGVALUE NUMBER(21,6)...How can i use type attribute on this object while declaring variable.....can we use type attribute on NESTED TABLES, similar to the db tables?
example
CREATE TYPE READING AS OBJECT(READINGVALUE NUMBER(21,6));
CREATE TABLE INTERVALREADINGS OF TYPE READING;meghavee wrote:
Thanks Solomon, however this approach does not preserve precision/scale of number data type.....What you can do is create placeholder tables:
SQL> create table reading_type_placeholder of reading
2 /
Table created.
SQL> desc reading_type_placeholder
Name Null? Type
READINGVALUE NUMBER(21,6)
SQL> declare
2 v_var reading_type_placeholder.readingvalue%type;
3 begin
4 v_var := 123456789012345;
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> declare
2 v_var reading_type_placeholder.readingvalue%type;
3 begin
4 v_var := 1234567890123456;
5 end;
6 /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: number precision too large
ORA-06512: at line 4
SQL>And if you modify type attribute:
SQL> alter type reading modify attribute readingvalue number(26,6) cascade;
Type altered.
SQL> desc reading_type_placeholder
Name Null? Type
READINGVALUE NUMBER(26,6)
SQL>SY. -
How to deal with image type from SQL*Server2005
when using transparent gateway between oracle 10 g and SQL*Server 2005 querying image type from SQL*Server 2005 error returned as follow:
ORA-28500: When ORACLE connect to a non-Oracle system return this information:
[Transparent gateway for MSSQL] (SQL State: 00000; SQL Code: 2090171257)
ORA-02063: Followed by 2 lines (From OKFOC)
My SQL is: select "attachment" from table@dblink where "empid"=empid
I am using image type to store attachments.
Regards!
Edited by: BK_Ferdinand on 2013-1-10 下午7:09(0) Original SQL:
(0) select NON_UNIQUE , INDEX_NAME , TYPE , SEQ_IN_INDEX , COLLATION ,
CARDINALITY , COLUMN_NAME from NAV_PROC : SP_STATISTICS ( 'OKFOC' , '%'
, 'T_FLY_FLYER_REWARD' , 1 , 0 , 0 ) order by 3 , 1 , 2 , 4
(0)
(0)
(0) Accessing saved query spec SP_STATISTICS()
(0) from NAV_PROC DB
(0)
Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) <PROC> : -->>>> OPEN
(0) <PROC> < OK>: OPEN SP_STATISTICS(0)
(0) <PROC> : -->>>> SET_BUFFER
(0) <PROC> < OK>: SET_BUFFER SP_STATISTICS(0)
(0) <PROC> : -->>>> SET_PARAMS
(0) <PROC> < OK>: SET_PARAMS SP_STATISTICS(0)
(0) <PROC> : -->>>> FETCH
(0) <PROC> < OK>: FETCH SP_STATISTICS(0)
(0) <PROC> : -->>>> FETCH
(0) <PROC> < EOS>: FETCH SP_STATISTICS(0)
(0) <PROC> : -->>>> CLOSE
(0) <PROC> < OK>: CLOSE SP_STATISTICS(0)
(0) HOAUTIL.C (1259): ; ------ hoadtab (hoat) -------:
(0) HOAUTIL.C (1262): ; hoatnam: T_FLY_FLYER_REWARD, hoatnml: 18,
hoatnrw: 3,
(0) hoatarl: 1881
(0) HOAUTIL.C (1273): ; ------ hoadtab (hoai) -------:
(0) HOAUTIL.C (1274): ; n_index_stat: 0
(0) HOAUTIL.C (1224): ; -------- hoadtab for table T_FLY_FLYER_REWARD--
(0) HOAUTIL.C (1225): ; hoadamsz: 12, hoadasiz: 12, hoadambr: 1,
hoadabrc: 0
(0) HOAUTIL.C (1228): ; row 0 - hoadambl: 4, hoadadty: 8, hoadaprc: 10,
hoadacst: 0
(0) HOAUTIL.C (1232): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 4,
hoadanam:
(0) pkid, hoadabfl: 4, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 1 - hoadambl: 4, hoadadty: 8, hoadaprc: 10,
hoadacst: 0
(0) HOAUTIL.C (1232): ; row 1 - hoadascl: 0, hoadanul: 1, hoadanml: 5,
hoadanam:
(0) empid, hoadabfl: 4, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 2 - hoadambl: 7, hoadadty: 167, hoadaprc: 0,
hoadacst:
(0) 0
(0) HOAUTIL.C (1232): ; row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 9,
hoadanam:
(0) startdate, hoadabfl: 7, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 3 - hoadambl: 7, hoadadty: 167, hoadaprc: 0,
hoadacst:
(0) 0
(0) HOAUTIL.C (1232): ; row 3 - hoadascl: 0, hoadanul: 1, hoadanml: 7,
hoadanam:
(0) enddate, hoadabfl: 7, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 4 - hoadambl: 8, hoadadty: 14, hoadaprc: 8,
hoadacst:
(0) 1000
(0) HOAUTIL.C (1232): ; row 4 - hoadascl: 0, hoadanul: 1, hoadanml: 6,
hoadanam:
(0) recate, hoadabfl: 8, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 5 - hoadambl: 100, hoadadty: 14, hoadaprc:
100,
(0) hoadacst: 1000
(0) HOAUTIL.C (1232): ; row 5 - hoadascl: 0, hoadanul: 1, hoadanml: 6,
hoadanam:
(0) retype, hoadabfl: 100, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 6 - hoadambl: 400, hoadadty: 14, hoadaprc:
400,
(0) hoadacst: 1000
(0) HOAUTIL.C (1232): ; row 6 - hoadascl: 0, hoadanul: 1, hoadanml: 7,
hoadanam:
(0) rereson, hoadabfl: 400, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 7 - hoadambl: 1000, hoadadty: 14, hoadaprc:
1000,
(0) hoadacst: 1000
(0) HOAUTIL.C (1232): ; row 7 - hoadascl: 0, hoadanul: 1, hoadanml: 6,
hoadanam:
(0) remark, hoadabfl: 1000, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 8 - hoadambl: 40, hoadadty: 14, hoadaprc:
40,
(0) hoadacst: 1000
(0) HOAUTIL.C (1232): ; row 8 - hoadascl: 0, hoadanul: 1, hoadanml: 12,
hoadanam:
(0) lastmodifier, hoadabfl: 40, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 9 - hoadambl: 7, hoadadty: 167, hoadaprc: 0,
hoadacst:
(0) 0
(0) HOAUTIL.C (1232): ; row 9 - hoadascl: 0, hoadanul: 1, hoadanml: 14,
hoadanam:
(0) lastmodifidate, hoadabfl: 7, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 10 - hoadambl: 2147483647, hoadadty: 166,
hoadaprc:
(0) 2147483647, hoadacst: 0
(0) HOAUTIL.C (1232): ; row 10 - hoadascl: 0, hoadanul: 1, hoadanml: 10,
hoadanam:
(0) attachment, hoadabfl: 2147483647, hoadamod: 0
(0) HOAUTIL.C (1228): ; row 11 - hoadambl: 200, hoadadty: 14, hoadaprc:
200,
(0) hoadacst: 1000
(0) HOAUTIL.C (1232): ; row 11 - hoadascl: 0, hoadanul: 1, hoadanml: 14,
hoadanam:
(0) attachmentname, hoadabfl: 200, hoadamod: 0
(0) hoadtab (26): ; hoadtab Exited with retcode = 0.
(0) hoadafr (23): ; hoadafr Entered. id = 0.
(0) hoadafr (23): ; hoadafr Exited with retcode = 0.
(0) hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
(0) nvOUT (F:\Work\Connect_4_6_3\src\qp\QP_SQTXT.C 55): SELECT
A1."attachment"
(0) FROM "T_FLY_FLYER_REWARD" A1 WHERE A1."empid"=10004036
(0) nvRETURN (F:\Work\Connect_4_6_3\src\qp\qpsynon.c 1140): -1
(0) SELECT "A1"."attachmentname" AS c001, "A1"."lastmodifidate" AS
c002, "A1"."lastmodifier" AS c003, "A1"."remark" AS c004, "A1"."rereson"
AS c005, "A1"."retype" AS c006, "A1"."recate" AS c007, "A1"."enddate" AS
c008, "A1"."startdate" AS c009, "A1"."empid" AS c010, "A1"."pkid" AS
c011 FROM "T_FLY_FLYER_REWARD" "A1" WHERE ("A1"."empid" = 10004036)
(0)
(0) r: 74 0 SQLAllocStmt:- hdbc=14247C0,pst=12E7C0
(0) r: 113 0 SQLPrepare:- hst=14254F0, css=14785772
(0) Ssss = SELECT "A1"."attachmentname" AS c001,
"A1"."lastmodifid
ate" AS c002, "A1"."lastmodifier" AS c003, "A1"."remark"
AS c0
04, "A1"."rereson" AS c005, "A1"."retype" AS c006,
"A1"."recat
e" AS c007, "A1"."enddate" AS c008, "A1"."startdate" AS
c009,
"A1"."empid" AS c010, "A1"."pkid" AS c011 FROM
"T_FLY_FLYER_RE
WARD" "A1" WHERE ("A1"."empid" = 10004036)
(0) r: 863 0 SQLNumResultCols:- hst=14254F0,pcol=11
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=1,scn=c001,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=2,scn=c002,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=3,scn=c003,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=4,scn=c004,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=5,scn=c005,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=6,scn=c006,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=7,scn=c007,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=8,scn=c008,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=9,scn=c009,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=10,scn=c010,cnm=64,pcn=12E6DE,
pst=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=11,scn=c011,cnm=64,pcn=12E6DE,
pst=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E4
(0) r: 147 0 SQLFreeStmt:- hst=14254F0, fop=1
(0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin
<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(0) Original SQL:
(0) SELECT A1 . "attachment" FROM "T_FLY_FLYER_REWARD" A1 WHERE A1 .
"empid" = 10004036
(0)
(0)
(0) Accessing Database 'OKFOC' with SQL:
(0) SELECT "A1"."attachmentname" AS c001, "A1"."lastmodifidate" AS
c002, "A1"."lastmodifier" AS c003, "A1"."remark" AS c004, "A1"."rereson"
AS c005, "A1"."retype" AS c006, "A1"."recate" AS c007, "A1"."enddate" AS
c008, "A1"."startdate" AS c009, "A1"."empid" AS c010, "A1"."pkid" AS
c011 FROM "T_FLY_FLYER_REWARD" "A1" WHERE ("A1"."empid" = 10004036)
(0)
(0)
Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) hoapars (15): ; hoapars Exited with retcode = 0.
(0) hoaopen (19): ; hoaopen Entered. id = 1.
(0) hoaopen (19): ; hoaopen Exited with retcode = 0.
(0) hoadscr (16): ; hoadscr Entered. id = 1.
(0) hoastmt.c (304): ; Array fetch size is: 1.
(0) HOAUTIL.C (1224): ; ------ hoadscr() -------:
(0) HOAUTIL.C (1225): ; hoadamsz: 1, hoadasiz: 1, hoadambr: 1, hoadabrc:
1
(0) HOAUTIL.C (1228): ; row 0 - hoadambl: 2147483647, hoadadty: 166,
hoadaprc:
(0) 2147483647, hoadacst: 0
(0) HOAUTIL.C (1232): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 13,
hoadanam:
(0) A1.attachment, hoadabfl: 2147483647, hoadamod: 0
(0) hoadscr (16): ; hoadscr Exited with retcode = 0.
(0) hoaftch (21): ; hoaftch Entered. id = 1.
(0) apiutil.c (0): ; hoaftch()::
(0) apiutil.c (0): ; Column 0 - pszName: A1.attachment, size: 1827, id:
0, width:
(0) 1827, scale: 0, flags: 68.
(0) SELECT "A1"."attachmentname" AS c001, "A1"."lastmodifidate" AS
c002, "A1"."lastmodifier" AS c003, "A1"."remark" AS c004, "A1"."rereson"
AS c005, "A1"."retype" AS c006, "A1"."recate" AS c007, "A1"."enddate" AS
c008, "A1"."startdate" AS c009, "A1"."empid" AS c010, "A1"."pkid" AS
c011 FROM "T_FLY_FLYER_REWARD" "A1" WHERE ("A1"."empid" = 10004036)
(0)
(0) r: 74 0 SQLAllocStmt:- hdbc=14247C0,pst=12EBBC
(0) r: 113 0 SQLPrepare:- hst=14254F0, css=14635668
(0) Ssss = SELECT "A1"."attachmentname" AS c001,
"A1"."lastmodifid
ate" AS c002, "A1"."lastmodifier" AS c003, "A1"."remark"
AS c0
04, "A1"."rereson" AS c005, "A1"."retype" AS c006,
"A1"."recat
e" AS c007, "A1"."enddate" AS c008, "A1"."startdate" AS
c009,
"A1"."empid" AS c010, "A1"."pkid" AS c011 FROM
"T_FLY_FLYER_RE
WARD" "A1" WHERE ("A1"."empid" = 10004036)
(0) r: 863 0 SQLNumResultCols:- hst=14254F0,pcol=11
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=1,scn=c001,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=2,scn=c002,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=3,scn=c003,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=4,scn=c004,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=5,scn=c005,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=6,scn=c006,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=7,scn=c007,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=8,scn=c008,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=9,scn=c009,cnm=64,pcn=12EADA,p
st=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=10,scn=c010,cnm=64,pcn=12EADA,
pst=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12EAE0
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=11,scn=c011,cnm=64,pcn=12EADA,
pst=12EAF0,pcd=12EAE8,psc=12EAEC,pnul=12EAE4
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12EADC
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12EAE0
(0) r: 147 0 SQLFreeStmt:- hst=14254F0, fop=1
(0) e: 744 0 SQLAllocStmt:- hdbc=14247C0,pst=DF7A98
(0) e: 760 0 SQLPrepare:- hst=14254F0, css=14646584
(0) Ssss = SELECT "A1"."attachmentname" AS c001,
"A1"."lastmodifid
ate" AS c002, "A1"."lastmodifier" AS c003, "A1"."remark"
AS c0
04, "A1"."rereson" AS c005, "A1"."retype" AS c006,
"A1"."recat
e" AS c007, "A1"."enddate" AS c008, "A1"."startdate" AS
c009,
"A1"."empid" AS c010, "A1"."pkid" AS c011 FROM
"T_FLY_FLYER_RE
WARD" "A1" WHERE ("A1"."empid" = 10004036)
(0) e: 765 0 SQLNumResultCols:- hst=14254F0,pcol=11
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=1,scn=c001,cnm=128,pcn=DFE17A,
pst=DFE17C,pcd=DFE180,psc=DFE184,pnul=DFE186
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=2,scn=c002,cnm=128,pcn=DFE22A,
pst=DFE22C,pcd=DFE230,psc=DFE234,pnul=DFE236
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=3,scn=c003,cnm=128,pcn=DFE2DA,
pst=DFE2DC,pcd=DFE2E0,psc=DFE2E4,pnul=DFE2E6
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=4,scn=c004,cnm=128,pcn=DFE38A,
pst=DFE38C,pcd=DFE390,psc=DFE394,pnul=DFE396
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=5,scn=c005,cnm=128,pcn=DFE43A,
pst=DFE43C,pcd=DFE440,psc=DFE444,pnul=DFE446
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=6,scn=c006,cnm=128,pcn=DFE52A,
pst=DFE52C,pcd=DFE530,psc=DFE534,pnul=DFE536
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=7,scn=c007,cnm=128,pcn=DFE5DA,
pst=DFE5DC,pcd=DFE5E0,psc=DFE5E4,pnul=DFE5E6
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=8,scn=c008,cnm=128,pcn=DFE68A,
pst=DFE68C,pcd=DFE690,psc=DFE694,pnul=DFE696
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=9,scn=c009,cnm=128,pcn=DFE73A,
pst=DFE73C,pcd=DFE740,psc=DFE744,pnul=DFE746
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=10,scn=c010,cnm=128,pcn=DFE7EA
,pst=DFE7EC,pcd=DFE7F0,psc=DFE7F4,pnul=DFE7F6
(0) e: 782 0 SQLDescribeCol:-
hst=14254F0,icol=11,scn=c011,cnm=128,pcn=DFE8EA
,pst=DFE8EC,pcd=DFE8F0,psc=DFE8F4,pnul=DFE8F6
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=1,fct=-
8,rgv=DFF114,cbvm=202,pcv=14
674388
(0) e: 502 0 SQLBindCol:-
hst=14254F0,icl=2,fct=99,rgv=E04024,cbvm=16,pcv=146
98084
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=3,fct=-
8,rgv=E0504C,cbvm=42,pcv=146
98484
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=4,fct=-
8,rgv=E2B004,cbvm=1002,pcv=1
4698884
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=5,fct=-
8,rgv=E060DC,cbvm=402,pcv=14
699284
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=6,fct=-
8,rgv=E43794,cbvm=102,pcv=14
699684
(0) e: 502 0 SQLBindCol:- hst=14254F0,icl=7,fct=-
8,rgv=E0FE0C,cbvm=10,pcv=147
46100
(0) e: 502 0 SQLBindCol:-
hst=14254F0,icl=8,fct=99,rgv=E10384,cbvm=16,pcv=147
48100
(0) e: 502 0 SQLBindCol:-
hst=14254F0,icl=9,fct=99,rgv=E10E34,cbvm=16,pcv=147
50836
(0) e: 502 0 SQLBindCol:-
hst=14254F0,icl=10,fct=99,rgv=E11604,cbvm=4,pcv=147
51636
(0) e: 502 0 SQLBindCol:-
hst=14254F0,icl=11,fct=99,rgv=E11924,cbvm=4,pcv=147
52436
(0) e: 359 0 SQLSetStmtOption:- hst=14254F0, fop=0 , vprm=0
(0) e: 365 0 SQLExecute:- hst=14254F0
(0) e: 396 0 SQLSetStmtOption:- hst=14254F0, fop=9 , vprm=100
(0) e: 400 0 SQLExtendedFetch:- hstm=14254F0, fft=1, irow=0,
pcrw=DF7AC8, rgr
s=DFE90C
(0) hoautil.c (561): ; Requested chunk length: 65536
(0) SELECT "attachment" FROM "T_FLY_FLYER_REWARD" WHERE "pkid"=3 AND
(0) "empid"=10004036 AND "startdate"={ts '2012-12-28 00:00:00.000'} AND
(0) "enddate"={ts '2012-12-28 00:00:00.000'} AND "recate"='0' AND
"retype"='0' AND
(0) "rereson"='5858' AND "remark"='' AND "lastmodifier"='7' AND
(0) "lastmodifidate"={ts '2012-12-28 10:41:03.070'} AND
(0) "attachmentname"='飞行准备网一期演示沟通会议.doc
(0) '
(0) UPDATE "T_FLY_FLYER_REWARD" SET "attachment" = ? WHERE "pkid"=3 AND
(0) "empid"=10004036 AND "startdate"={ts '2012-12-28 00:00:00.000'} AND
(0) "enddate"={ts '2012-12-28 00:00:00.000'} AND "recate"='0' AND
"retype"='0' AND
(0) "rereson"='5858' AND "remark"='' AND "lastmodifier"='7' AND
(0) "lastmodifidate"={ts '2012-12-28 10:41:03.070'} AND
(0) "attachmentname"='飞行准备网一期演示沟通会议.doc
(0) '
(0) i: 924 0 SQLAllocConnect:- henv=1424718,phd=12E834
(0) i: 931 0 SQLSetConnectOption:- hdbc=1424C30, fop=1218 , vprm=1
(0) i: 938 0 SQLSetConnectOption:- hdbc=1424C30, fop=103 , vprm=0
(0) i: 945 1 SQLDriverConnect:- hdbc=1424C30, hwnd=0, scsi=12E8C4,
ccsi=-3, s
cso=12E9C4, ccsom=1020, pcso=12E83A, fdc=0,
(0) i: 955 0 SQLGetInfo:- hdbc=1424C30, fit=18 ,rif=12e840, civm=130,
piv=12E
83C
(0) i: 960 0 SQLSetConnectOption:- hdbc=1424C30, fop=1217 , vprm=1
(0) Created new MSSQLODBC connection (21122096)
(0) e:1881 0 SQLAllocStmt:- hdbc=1424C30,pst=E1C678
(0) e:1890 0 SQLSetStmtOption:- hst=14270A0, fop=0 , vprm=0
(0) e:1896 0 SQLExecDirect:- hst=14270A0, css=-3
(0) 6sss = SELECT "attachment" FROM "T_FLY_FLYER_REWARD"
WHERE "pk
id"=3 AND "empid"=10004036 AND "startdate"={ts '2012-12
-28 00:
00:00.000'} AND "enddate"={ts '2012-12-28 00:00:00.000'}
AND "
recate"='0' AND "retype"='0' AND "rereson"='5858' AND
"remark"
='' AND "lastmodifier"='7' AND "lastmodifidate"={ts
'2012-12-2
8 10:41:03.070'} AND "attachmentname"='飞行准备网一期演
示沟通? 嵋?doc '
(0) e:1905 0 SQLDescribeCol:- hst=14270A0,icol=1,scn=
(null),cnm=0,pcn=0,pst=1
2EDDC,pcd=0,psc=0,pnul=0
(0) e:1914100 SQLFetch:- hst=14270A0
(0) i: 591100 SQLError:-
hnv=1424718,hdbc=21122096,hst=14270a0,sss=00000,pne=
12EB20,cemm=1239988,pem=1FF
(0) =14247sem =
(0) DB_MSSQLODBC_ENGINE (1916): ; (SQL State: 00000; SQL Code: 16)
(0) DRV_BlobRead: (SQL State: 00000; SQL Code: 16)
(0)
(0) nvRETURN (F:\Work\Connect_4_6_3\src\drv\DRV_BLOB.C 249): -1
(0) hoaftch (21): ; hoaftch Exited with retcode = 28500, hoadabrc = 1.
(0) hoaclse (22): ; hoaclse Entered. id = 1.
(0) e: 442 0 SQLFreeStmt:- hst=14254F0, fop=1
(0) hoaclse (22): ; hoaclse Exited with retcode = 0.
(0) hoadafr (23): ; hoadafr Entered. id = 1.
(0) hoadafr (23): ; hoadafr Exited with retcode = 0.
(0) hoaroll (12): ; hoaroll Entered. tflag = 1.
(0) e:1353 0 SQLTransact:- henv=0,hdbc=14247C0, ftp=1
(0) e:1359 0 SQLSetConnectOption:- hdbc=14247C0, fop=102 , vprm=1
(0) hoaroll (12): ; hoaroll Exited with retcode = 0.
(0) hoabegn (9): ; hoabegn Entered. formatID = 306206, hoagttln = 55,
hoagttid =
(0) ORCL.REGRESS.RDBMS.DEV.US.ORACLE.COM.f04eafd4.17.20.497, hoagtbln =
10,
(0) hoagtbid = , tflag = 0, initial = 0
(0) e:1005 0 SQLGetConnectOption:- hdbc=14247C0, fop=102 , pvprm=12EA80
(0) e:1007 0 SQLSetConnectOption:- hdbc=14247C0, fop=108 , vprm=1
(0) e:1012 0 SQLSetConnectOption:- hdbc=14247C0, fop=102 , vprm=0
(0) hoabegn (9): ; hoabegn Exited with retcode = 0.
(0) hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
(0) nvOUT (F:\Work\Connect_4_6_3\src\qp\QP_SQTXT.C 55): SELECT
A1."attachment"
(0) FROM "T_FLY_FLYER_REWARD" A1 WHERE A1."empid"=10000535
(0) SELECT "A1"."attachmentname" AS c001, "A1"."lastmodifidate" AS
c002, "A1"."lastmodifier" AS c003, "A1"."remark" AS c004, "A1"."rereson"
AS c005, "A1"."retype" AS c006, "A1"."recate" AS c007, "A1"."enddate" AS
c008, "A1"."startdate" AS c009, "A1"."empid" AS c010, "A1"."pkid" AS
c011 FROM "T_FLY_FLYER_REWARD" "A1" WHERE ("A1"."empid" = 10000535)
(0)
(0) r: 74 0 SQLAllocStmt:- hdbc=14247C0,pst=12E7C0
(0) r: 113 0 SQLPrepare:- hst=14254F0, css=14606780
(0) Ssss = SELECT "A1"."attachmentname" AS c001,
"A1"."lastmodifid
ate" AS c002, "A1"."lastmodifier" AS c003, "A1"."remark"
AS c0
04, "A1"."rereson" AS c005, "A1"."retype" AS c006,
"A1"."recat
e" AS c007, "A1"."enddate" AS c008, "A1"."startdate" AS
c009,
"A1"."empid" AS c010, "A1"."pkid" AS c011 FROM
"T_FLY_FLYER_RE
WARD" "A1" WHERE ("A1"."empid" = 10000535)
(0) r: 863 0 SQLNumResultCols:- hst=14254F0,pcol=11
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=1,scn=c001,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=1,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=2,scn=c002,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=2,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=3,scn=c003,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=3,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=4,scn=c004,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=4,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=5,scn=c005,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=5,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=6,scn=c006,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=6,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=7,scn=c007,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=7,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=8,scn=c008,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=8,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=9,scn=c009,cnm=64,pcn=12E6DE,p
st=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=10,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=9,fdt=11,rgbd=0,cbdm=0,pcbd=
0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=10,scn=c010,cnm=64,pcn=12E6DE,
pst=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=10,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E4
(0) r: 886 0 SQLDescribeCol:-
hst=14254F0,icol=11,scn=c011,cnm=64,pcn=12E6DE,
pst=12E6F4,pcd=12E6EC,psc=12E6F0,pnul=12E6E8
(0) r: 903 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=10,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E0
(0) r: 909 0 SQLColAttributes:-
hst=14254F0,icol=11,fdt=11,rgbd=0,cbdm=0,pcbd
=0,pfd=12E6E4
(0) r: 147 0 SQLFreeStmt:- hst=14254F0, fop=1
(0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin
<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(0) Original SQL:
(0) SELECT A1 . "attachment" FROM "T_FLY_FLYER_REWARD" A1 WHERE A1 .
"empid" = 10000535
(0) -
Creating attributes with value as CDATA
is it possible to create elements with attributes and values where values are CDATA
You can't use a CDATA section as the value of an attribute, if that's what you were asking.
-
Hello all,
I've been writing a set of libraries for a CRUD application, whereby you specify the table and column names in a model class and it will handle the Ajax stuff for you. All well and good.
I have validation functions that use the signature:
Func<dynamic, Dictionary<string, object>, ValidationHost, string>
where the `dynamic` is the value to be validated - it might come from the database, the Ajax form or be explicitly defined (hence why I've made it dynamic).
What I would like to do now is be able to define a validation function in a custom attribute in the model. Normally that wouldn't be a problem, but with that `dynamic`, not so much.
I understand the reasons for it not working (dynamic being resolved at run time and attributes being a compile time construct), so I'm wondering if there is any way around it? More generally, I'm wondering if I've made a mistake using `dynamic` for the value
and should have perhaps used `object`?
Many thanks,
AllanCertainly!
In essence I have a model that describes the column names for a database table:
public class StaffModel
public string first_name { get; set; }
public string last_name { get; set; }
public string position { get; set; }
The class properties describe the db column names, the JSON structure sent to the client for display and the HTTP variables from the form submission (Ajax). They can be named differently, but for simplicity here...
The model and db table name are fed to a controller instance that handles the data get (i.e. reading of the db and output of data to JSON) and the create, update, delete aspects based on what is submitted:
new Editor(db, "staff")
.Model<StaffModel>()
Using reflection each model property has a `Field` instance created. Each field has a value. I don't have a value class at the moment, just a `dynamic` variable which has the value dumped into it (be it from the database or form submission).
The value is passed around and operations performed on it - for example this is a simplified numeric validation function:
public static string Numeric(dynamic val)
try
Convert.ToDecimal(val);
return null;
catch (Exception) { }
return "Not valid numeric data";
I could change that to pass in an object which has its value set and get by an overloaded method with the data types I want to support, although it seems like a bit of a pain to need to use `val.Val()` to get the value rather than just having the value in
`val` and potentially a waste of memory.
Is that what you might suggest?
Thanks,
Allan -
OLM || Issue with Image-type questions
Hi
This is with reference to an issue regarding the import of " Image-map " types questions in OLM.
The legacy system which the client uses allows creation and assignment of 'Image-map" types questions to the learners.
As far as my limited understanding goes, these types of questions are not supported in OLM.
How to handle such types of questions in OLM , any pointers ??
Also , what exactly are QTI standards and how to convert the existing question banks to QTI standards and then import them to OLM ??
Thanks in advance for your time..
CheersThere is one method to support these types of questions by using HTML code in the question text, but it is definitely a workaround.
1. Use an HTML editor like Dreamweaver to create the image map or other type of interactive question. Save the html and any related images, javascript etc and upload to a content server. If the user gets the interactive question correct, provide them with some code to enter that will be used later.
2. Select a question type like fill in the blank
3. In the question text, use an IFRAME to embed the HTML page that contains the interactive question
4. The correct response for this question will be based on the "code" you provide users in the interactive question if they get it correct. They would then enter this code in the fill in the blank area and get credit for answering correctly.
Other options include building the assessment using a content authoring tool and offering the assessment as a SCORM or AICC learning object, or integrating with a third party assessment tool such as Questionmark.
Also,
Metalink Note ID #295865.1 contains the import/export API tech specification (this was originally written for Oracle iLearning but applies to OLM for the most part as well) and has info on the QTI spec that OLM and iLearning support.
Scott
http://www.seertechsolutions.com
Message was edited by:
scottymomo -
Create LinkToAction with Image by run time
Hi,
I want to create linkToAction UI's with different images by run time. But if I try the code below I get always the same image for every linkToAction UI. What is my mistake? And how can I solve this problem?
for (int i = 0; i < wdContext.nodeGlob_Struc().size(); i++){
IWDLinkToAction linkToAction = (IWDLinkToAction)
view.createElement(IWDLinkToAction.class, "linkToAction"+i);
IPrivateDocPreAppView.ILinkToActionElement nodeLink =
wdContext.createLinkToActionElement();
wdContext.nodeLinkToAction().bind(nodeLink);
wdContext.currentLinkToActionElement().setImageSource(
wdContext.nodeGlob_Struc().getGlob_StrucElementAt(i).
getUrl_Thumbnail() );
linkToAction.bindImageSource( wdContext.nodeGlob_Struc().
getNodeInfo().getAttribute(IGlob_StrucElement.URL__THUMBNAIL) );
theGroupBox.addChild(linkToAction);
regards,
SharamHallo Sharam,
The Web Dynro binding model does not support "index binding". This means binding multiple image UI elments to the same attribute in a multiple context node (cardinaltiy 1..n) means, that all images are bound to the node's lead selection. That's what you implement with
linkToAction.bindImageSource( wdContext.nodeGlob_Struc(). getNodeInfo().getAttribute(IGlob_StrucElement.URL__THUMBNAIL) );
Armin's solution is based on the fact, that he breaks the data binding principle by directly setting the imageSource property values.
Sharam, when reviewing your code I find several "problems":
1. Never ever store UI elements in the context. I assume you do this in order to access UI elements outside wdDoModifyView() as it is static. There is no need to do this.
2. Then you break databinding by setting the imageSource property in the linkToAction object (stored in the context) directly, breaking databinding.
3.) Finally you "un-do" this hard property setting by binding it to the context again. This has the effect you described.
Breaking the data binding principle for UI elements has an important drawback. It also breaks the generic Web Dynpro caching mechanisms. Read my article on
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/301d715e-0b01-0010-1a8b-f1f83d175972">Best Practices for Building Client-Independent Web Dynpro UIs</a>, section Coding Rules, rule <i>Implement Fine-Grain UI Manipulations on Context but Not on UI Element Level</i>:
To maximize the rendering performance of your Web Dynpro application, implement all fine-grain UI manipulations on context instead of UI element level. This means do not call the setter-methods of UI element objects inside wdDoModifyView()directly but bind the related properties to the context and call the corresponding setter methods outside wdDoModifyView():
<b>Not:</b> wdDoModifyView(){ theField.setEnabled(true) }
<b>But:</b> wdDoInit(){ wdContext.currentFieldNode.setEnabled(true) }.
Otherwise Web Dynpros caching mechanisms cannot speed up the rendering of view layouts.
The view controllers wdDoModifyView() method is designed for a special purpose: the creation of a UI tree or UI sub-tree at runtime in case it is not possible to declare the UI at design time. The method is neither intended for fine-grain UI manipulations nor for context manipulations. Fine-grain UI manipulations are achieved via means of data binding. Context manipulations are done in wdDoInit(), action event handlers or event handlers.
Unfortunately, the name wdDoModifyView() is somewhat misleading since the purpose of it is to create (and not to modify) a UI tree dynamically. While the usage of wdDoModifyView() in order to create a UI tree initially (firstTime == true) is not performance critical, modifying an existing UI tree (firstTime == false) is: Changing only one single attribute of a single UI element within wdDoModifyView() flags the complete view containing the control as dirty and the complete view must be completely re-rendered again depending on the size and complexity of the view this can result in significant performance hits.
But in your case databinding cannot be applied, as index binding is not supported. The only databinding solution must use multiple/n nodes of cardinatliy 1..1 instead of 1 node of cardinality 1..n with no node elements. And this would require further coding for dynamic context node creation, copy logic based on value semantic.
Best Regards, Bertram -
Problem to create jar with images
Hello
I have a project, it's a frame with a panel that contains a image, I want to create a Jar, but I have to problems, if create a Jar and execute out the project folder, I can't see the images, if I use getClass().getResource, I have other problems, I can't add panels.
How it's difficult to say, I going to put a link from the project make with eclipse [My project|http://www.megaupload.com/?d=HBPHUWE9] , if someone wants have a look I would be grateful.
http://www.megaupload.com/?d=HBPHUWE9
Just look at the package com.constructor.interfaz
To make the jar use the class InterfazFactoriaPaneles
Thanks in advance !
Edited by: Dav1d on Jul 10, 2009 6:11 AM
Edited by: Dav1d on Jul 10, 2009 6:12 AMI explain better:
I have a Class -> InterfazFactoriaPaneles, with this main
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
InterfazFactoriaPaneles application = new InterfazFactoriaPaneles();
application.getJFrame().setVisible(true);
in the Frame I add a JPanel with an image, to load the image I override this method, where com.constructor.imagenes, it's the path where I've got my images :
public void paintComponent(Graphics g){
Dimension tamanio = getSize();
ImageIcon imagenFondo = new ImageIcon("./src/com/constructor/imagenes/patronConstructor.jpg");
g.drawImage(imagenFondo.getImage(),0,0,tamanio.width,tamanio.height,null);
setOpaque(false);
super.paintComponent(g);
the with a menu, I remove the panel with the image I load other panel with components (JTextField, JTable, JLabel,...).
If run the program from eclipse, everything it's ok, if I export into jar file, it works if the jar it's inside the project folder, but if I put the jar in other location, doens't load images, I google from answer and I read to put images path like that: new ImageIcon(getClass().getResource("/com/constructor/imagenes/patronConstructor.jpg")); , but if I do that, and run in eclipse, everything it's ok, but If I export into a Jar, I load the image, but when I try to change to other panel it doesn't work.
So I do not what's the answer, if someone check my code, and try to make a jar, and the move the jar file into other location, will be able to see images doesn't appears. -
Unable set session attribute with certain types.
Hello I was surprise that when I execute HttpSession.setAttribute("somekey", new HashMap()), "somekey" will not be stored in the Session. I can replace HashMap with HashSet and it's okay.
Out of curiosity, I create a Java class like below :
public class abc implements Serializable {
public String def = "def";
And I have the same issue with HashMap and it will not get stored in the Session attribute. Does anyone know what kind of valid object and what makes the object storable into the Session's attribute? Any inputs are appreciated. Thanks.
yienActually never mind. It have something to do with BEA's Portal Ad services. I will post this into the appropriate forum.
-
Create Report with Image on the backside of first page
Hi there,
I want to create a report with a header-section (including data and a barcode) and some data in the main section. The main section is diffing in length so that the report might be just one page or 4-5 pages or even more.
In addition I want to print an image on the backside of the first page.
The image exists in TIFF-Format and it should be printed in landscape, while the report itself is inmPortarit-Mode.
The report(s) should be printed automatically (without user-interaction).
Thanks for any ideas.
Mark RadermacherMark,
The reply could be a bit delayed and you might have got it working also.
All your requirtements are easily achieveable, you might want to look into the building reports samples and publishing reports documenation at
http://otn.oracle.com/docs/products/reports/content.html
Thanks
The Oracle Reports Team -
Error while creating function with record type as return type
Hi i tried the following code to get the nth highest sal using record type and function.
CREATE OR REPLACE PACKAGE pack_rec_cur AS
TYPE rec_type IS RECORD (
name EMP.ename%TYPE,
sal EMP.sal%TYPE);
END;The above package is created
CREATE OR REPLACE
FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
rec pack_rec_cur.rec_type;
CURSOR cur_rec IS
SELECT ename,sal
FROM emp
WHERE sal is not null
ORDER BY DESC;
BEGIN
OPEN cur_rec;
FOR i IN 1..n LOOP
FETCH cur_rec into rec;
EXIT WHEN cur_rec%NOTFOUND;
END LOOP;
CLOSE cur_rec;
RETURN rec;
END; The above function is giving errors
LINE/COL ERROR
4/7 PL/SQL: SQL Statement ignored
7/16 PL/SQL: ORA-00936: missing expression
SQL> Could you please correct me where i'm doing mistake
Thanks.You are missing the column name in order by clauase. Is it ename desc?
CREATE OR REPLACE
FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
rec pack_rec_cur.rec_type;
CURSOR cur_rec IS
SELECT ename,sal
FROM emp
WHERE sal is not null
ORDER BY ENAME DESC; ---added ename
BEGIN
OPEN cur_rec;
FOR i IN 1..n LOOP
FETCH cur_rec into rec;
EXIT WHEN cur_rec%NOTFOUND;
END LOOP;
CLOSE cur_rec;
RETURN rec;
END;
-OUTPUT
SQL> SET SERVEROUT ON
SQL>
SQL> DECLARE
2 rec pack_rec_cur.rec_type;
3 BEGIN
4 rec := fun_rec_cur (6); --you get the 6th record in order of ename desc
5 DBMS_OUTPUT.put_line ('ename::' || rec.NAME || ' sal ::' || rec.sal);
6 END;
7 /
ename::MARTIN sal ::1250
PL/SQL procedure successfully completed.
SQL> -
Creating PDF with IMAGE using CFDOCUMENT TAG
Hi Guys,
I m facing problem while creating the PDF using CFDOCUMENT
tag.
Actually my clients want the IMAGEs in PDF document.
Problem is most of the images in JPG format and while I am
going to attach images in PDF document it takes lots of time for
creating PDF. In most of time it cause timeout.
I have try to convert images JPG to PNG, yes I some what
better performance than JPG format but still it is work for 20 - 25
images. In my case I want to attach normally 50-100 images in PDF
(sometimes it is more 200).
PLZ, Help me.. F1...F1...F1
thanks in advance
Pritesh
Coldfusion ProgrammerI am having a similar and more serious problem. It takes a
long time to execute, but even attaching a small image balloons the
pdf to 6MB plus. After a few images it gets up to 20MB. These are
100k jpeg files being attached. The resulting PDF is too large to
email or process effectively. Does anyone know how to reduce
size/processing? -
Hi,
Is there any difference between .GIF or .gif ? When I�m using the image component . Sometimes when I use mymage.GIF we do not see the figure on the browse after run, but we see with no problem on CREATOR.
Regards
Marlos RodriguesHi,
Could you check if the extension is of the same case both in your application and on your hard disk. For example if the image in the file system is image.gif and in the application it is written as image.GIF then the image will not be rendered when the application is run.
Hope this helps.
Thanks,
Creator team. -
Create gallery with images in Excel
I am trying to make smth like this:
For now I use the imageMso attribute
just for testing purposes. Even though, nothing really happens.
That's the XML for the gallery:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="Gallery">
<group id="grpGallery" label="Example Gallery">
<gallery id="galleryID" label="My Gallery" columns="3" rows="2" size="large"
itemHeight="100" itemWidth="100"
getItemID="CallbackGetItemID"
getItemCount="CallbackGetItemsCount"
getItemImage="CallbackGetItemImage"
getItemScreentip="CallbackGetItemScreentip"
getItemSupertip="CallbackGetItemSupertip">
<item id="galImg1" imageMso="PictureBrightnessGallery"/>
<item id="galImg2" imageMso="ZoomPrintPreviewExcel"/>
</gallery>
And the VB code to it:
Public idCounter As Integer
Public Sub New()
idCounter = 0
End Sub
Public Function GetCustomUI(ByVal ribbonID As String) As String Implements Office.IRibbonExtensibility.GetCustomUI
Return GetResourceText("GalleryTest.Gallery.xml")
End Function
#Region "Ribbon Callbacks"
Public Sub Ribbon_Load(ByVal ribbonUI As Office.IRibbonUI)
Me.galleryRibbon = ribbonUI
End Sub
Public Sub CallbackGetItemID(control As Microsoft.Office.Core.IRibbonControl, _
index As Integer, ByRef itemID As Integer)
itemID = idCounter
idCounter += 1
End Sub
Public Sub CallbackGetItemsCount(control As Microsoft.Office.Core.IRibbonControl, _
ByRef count As Integer)
count = 6
End Sub
Public Sub CallbackGetItemScreentip(control As Microsoft.Office.Core.IRibbonControl, _
Index As Integer, ByRef screentip As String)
screentip = "Screentip"
End Sub
Public Sub CallbackGetItemSupertip(control As Microsoft.Office.Core.IRibbonControl, _
Index As Integer, ByRef supertip As String)
'TO DO'
End Sub
As you see, it's nothing fancy. I am just getting into the vb.net + excel world. What happens is that I get the "My Gallery" button for the dropdown, in the excel tab, but it is empty. No elements. Not even the dummy items.
Any suggestions?
P.S. I followed this documentation.Try to return actual values in the callbacks. For example, I see non-existing IDs in the callback.
There is no need to add the CallbackGetItemsCount callback for the gallery control if you specified items explicitly.
You can read more about the Ribbon UI in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
Maybe you are looking for
-
ugh......firefox has been wanting to install 17.01 or 17.04, can't remember which number, it bugs me and bugs me until i say o.k. i'll update my version. so i let it, it has to restart my computer,, then it says just a minute firefox is checking your
-
Drop Shadow Opacity has no effect?
It appears that the Opacity slider for Drop Shadow has no effeect on the Canvas preview. It changes the look of the icon preview, but not the actual object on the Canvas. It is either off at 0%, or on full at 1% and up. What am I doing wrong? Also, w
-
SOAP or XI adaptor should be used
Hi Expert, I have a scenario where the sender should call XI in form of web service, XI will forward the call to the ABAP using proxy. My question is how should I configure the sender agreement: 1) Since it's web service, I guess it should be SOAP se
-
I want to create very subtle light grey borders around the photos that have white near their edges ... just a hint of a line to define the frame. I'm doing an extra large book. What would be a good 'fine' line in terms of size? I'm using 0.01 right n
-
Check the sql statement of view
HI All I have a query that How can we check the SQL statement of any view in oracle 10. If any one knows then pls let me know