You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

multiple file layouts

7 replies [Last post]
Guest's picture
Guest

i have one component with one page of 3 levels.university,colleage,department,student records are there.i want to read this component information into 3 files.i think using multiple file layouts it's possible.
help me

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Read from tables?

I'm not sure I fully understand what you are trying to do. If you are trying to read data and output to a file, then why not just hit the database tables and out put the data you need?

Can you explain a little more please?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
i have some files contains

i have some files contains data about related record data.that means data constructs parent-child relation ship.we want to import that data to tables in one database hit.i saw related topic on peoplebooks.but i can't understand.path is peoplebooks->peoplecode reference ->file class ->multiple filelayout concepts
related concept is sending one component data(with levels) to different files using multiple filelayouts .
could you explain these two concepts?

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Output to files or Input from files?

"i have some files contains data about related record data."
"sending one component data(with levels) to different files using multiple filelayouts"

I'm confused now, you started saying you want to import data into the database and finished by saying you want to export data from a component to files?

Are we trying to write to files or read from files?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
retrive the data from database which as parent and child relatio

i am also trying to retrive the data from the data base using multiple file layout's.but i am not sucessed...could u plz help me in this..

just think i 2 levels like level 0 ,level1 and level 2

i want to know how to retrive the all level's data by using one multiplt file layout

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
PeopleBooks WriteRowset Example

"i am also trying to retrive the data from the data base using multiple file layout's.but i am not sucessed...could u plz help me in this.."

PeopleBooks have an example that is exactly what you are looking for! The example is located at PeopleBooks > Enterprise PeopleTools 8.49 PeopleBook: PeopleCode API Reference > File Class > File Layout Examples (scroll until you see WriteRowset Example). This is almost all what you need, just modify the records and file layouts to fit your needs and you are set! They even have screen prints of the component with level 0, 1 and 2.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

green's picture
User offline. Last seen 12 years 10 weeks ago. Offline
Joined: 12/29/2008
Posts: 1
Writing output file

Hi,

I am trying to write a file (using Application Engine) with header, details and trailer. The individual records and file layout are defined and I am able to write the header and detail records. However, I could not write the trailer record. The trailer record consists of one constant field and another field where the total counts of the detail records written are saved. I have tried saving this info in state records and do not know how to pass this while writing the trailer record. Your input is greatly appreciated. Thanks!!
green

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: multiple file layouts

Green, welcome to the site! Can you please start a new forum post for your problem? You will be able to get more help that way. Your issue is not related to "multiple file layouts" that this post is for. Thank you!

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog