|
|
|
Ребята, подскажите плз как такой файл (xml) затянуть в datawindow ???
|
|||
|---|---|---|---|
|
#18+
руками. задай вопрос иначе. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.02.2007, 10:31 |
|
||
|
Ребята, подскажите плз как такой файл (xml) затянуть в datawindow ???
|
|||
|---|---|---|---|
|
#18+
попробую, сделал я oXMLHttp.Send(s_str) получил обратно s_post_str = oXMLHttp.ResponseText s_post_str представляет из себя (например): <?xml version="1.0" encoding="utf-8"?> <DataSet xmlns="http://eunify.net/DbAPI"> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element name="Fld_58953" msdata:Caption="Name" type="xs:string" minOccurs="0" /> <xs:element name="Fld_58954" msdata:Caption="Address1" type="xs:string" minOccurs="0" /> <xs:element name="PKId" msdata:Caption="sys.PKId" type="xs:int" minOccurs="0" /> <xs:element name="PKId1" type="xs:int" minOccurs="0" /> <xs:element name="ListValue" type="xs:string" minOccurs="0" /> <xs:element name="RowColor" type="xs:string" minOccurs="0" /> <xs:element name="MoreRecords" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <Table diffgr:id="Table1" msdata:rowOrder="0"> <Fld_58953>Shaw, Sydney & Rice</Fld_58953> <Fld_58954>3000 Stemmons Freeway</Fld_58954> <PKId>5</PKId> <PKId1>5</PKId1> <ListValue>Shaw, Sydney & Rice - 3000 Stemmons Freeway - 5</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table2" msdata:rowOrder="1"> <Fld_58953>Scott & Scott Attorneys at Law</Fld_58953> <Fld_58954>40 Palm Boulevard</Fld_58954> <PKId>7</PKId> <PKId1>7</PKId1> <ListValue>Scott & Scott Attorneys at Law - 40 Palm Boulevard - 7</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table3" msdata:rowOrder="2"> <Fld_58953>Mancini & Mancini</Fld_58953> <Fld_58954>1000 Washington Place</Fld_58954> <PKId>3</PKId> <PKId1>3</PKId1> <ListValue>Mancini & Mancini - 1000 Washington Place - 3</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table4" msdata:rowOrder="3"> <Fld_58953>Bauer & Associates</Fld_58953> <Fld_58954>1500 Market Street</Fld_58954> <PKId>4</PKId> <PKId1>4</PKId1> <ListValue>Bauer & Associates - 1500 Market Street - 4</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table5" msdata:rowOrder="4"> <Fld_58953>Dewey, Cheatum and Howe</Fld_58953> <Fld_58954 /> <PKId>1</PKId> <PKId1>1</PKId1> <ListValue>Dewey, Cheatum and Howe - - 1</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table6" msdata:rowOrder="5"> <Fld_58953>Phillips and Lyon, LLC</Fld_58953> <Fld_58954>123 S. Hampton Blvd</Fld_58954> <PKId>2</PKId> <PKId1>2</PKId1> <ListValue>Phillips and Lyon, LLC - 123 S. Hampton Blvd - 2</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table7" msdata:rowOrder="6"> <Fld_58953>Carter & Lewis - Attorneys at Law</Fld_58953> <Fld_58954>1 Peachtree Blvd.</Fld_58954> <PKId>6</PKId> <PKId1>6</PKId1> <ListValue>Carter & Lewis - Attorneys at Law - 1 Peachtree Blvd. - 6</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> <Table diffgr:id="Table8" msdata:rowOrder="7"> <Fld_58953>Mancini & Mancini</Fld_58953> <Fld_58954 /> <PKId>8</PKId> <PKId1>8</PKId1> <ListValue>Mancini & Mancini - - 8</ListValue> <RowColor /> <MoreRecords>0</MoreRecords> </Table> </NewDataSet> </diffgr:diffgram> </DataSet> на базе этой s_post_str, хочу построить datawindow. file -> new -> datawindow выбираем tabular -> Ok -> External кишки будушего datawindow, здесь: <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element name="Fld_58953" msdata:Caption="Name" type="xs:string" minOccurs="0" /> <xs:element name="Fld_58954" msdata:Caption="Address1" type="xs:string" minOccurs="0" /> <xs:element name="PKId" msdata:Caption="sys.PKId" type="xs:int" minOccurs="0" /> <xs:element name="PKId1" type="xs:int" minOccurs="0" /> <xs:element name="ListValue" type="xs:string" minOccurs="0" /> <xs:element name="RowColor" type="xs:string" minOccurs="0" /> <xs:element name="MoreRecords" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> вот они колонки: tableid roworder fld_58953 ....... morerecords вместе с datatype, что string, что number и т.д. начинаем строить datawindow, Define Result Set -> Enter Result Set Description -> заполняем наши колонки с соответствующим type. сохраняем как d_test потом идём view -> import/export template -> xml его layout ессесвенно совсем не такой как твой. вот с этого места плз. ты всё делаеш delete, потом строиш по новому глядя в s_post_str, a потом сохраняеш как template? так? Или есть какой нибудь инструмент, который базируясь на s_post_str может построить соответсвуюший template inside datawindow? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.02.2007, 17:12 |
|
||
|
Ребята, подскажите плз как такой файл (xml) затянуть в datawindow ???
|
|||
|---|---|---|---|
|
#18+
voronk.... ты всё делаеш delete, потом строиш по новому глядя в s_post_str, a потом сохраняеш как template? так? да ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.02.2007, 11:05 |
|
||
|
|

start [/forum/topic.php?fid=15&msg=34356723&tid=1337321]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
49ms |
get topic data: |
15ms |
get forum data: |
3ms |
get page messages: |
56ms |
get tp. blocked users: |
2ms |
| others: | 235ms |
| total: | 394ms |

| 0 / 0 |
