Home > database >  Pb (power builder) how to implement data import XML files in the window?
Pb (power builder) how to implement data import XML files in the window?

Time:09-19

In pb, how android applications of XML into the data window,
1.
XML is this:



,,,
,,,
,,,
I want to import the result is:
Serial number name element
1 ntp_bookmarks editing
2 ntp_most_visited sure
3 ntp_other_devices cancel
,,,
,,,
,,,
2. XML file directly drag the data window should be in the event, how do you write specific code?
How to write the code, your help? Hope to provide a specific code

CodePudding user response:

1. Importfile can import XML format file, but the format is like format and you, need you to have a try, if not, just need you to write code by hand, interception of data, written to the data window (PBDOM can also be used to realize, if not clear, to baidu)

2. In the data window dragdrop implementation, specific code, need oneself to realize, a little bit of a problem

CodePudding user response:

Can you provide the code?

CodePudding user response:

This provides code is a little trouble, I make a, I used the method, I use the DW, saveas, stored in an XML file, and then use IMPORTFILE to import this file, if the XML is exotic, alien so demanding the whole into me to format, if outside, I made a tool used to transform, but the tool was stupid, the basic idea is that the XML files line read, themselves filter into the file, then written to another file, then import the file to write their own,
  • Related