Very Hot Topic (More than 25 Replies) hierarchichal imports (Read 3229 times)
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
hierarchichal imports
May 26th, 2005 at 11:56am
Print Post Print Post  

would someone step me through this again?
When I tried it, my data came through scrambled.
I selected all elements, and exported to the default file type.
Then, went to the empty app, and selected all elements, and imported.
It seems that everything came across, but the entries are in the wrong LEs. The date is in the name LE etc.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: hierarchichal imports
Reply #1 - May 26th, 2005 at 12:09pm
Print Post Print Post  
Did you remember to turn off the Ignore column when you did the Import?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #2 - May 30th, 2005 at 12:14pm
Print Post Print Post  
Nope, forgot that, tried again, but it's reporting errors in the log, and nothing came through.
I have yet to read the log.
  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #3 - May 30th, 2005 at 12:27pm
Print Post Print Post  
Ok, I went back, and did another export, and when I imported this time there were no errors. But, nothing seems to be linked up.

I'm still doing something wrong. I did a search from the parent form, and got no child entries. I'm currently doing a search in the child, but it seems to be taking a long time.
  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #4 - May 30th, 2005 at 12:39pm
Print Post Print Post  
The above locked up. Had to reboot,  restart the server using emergecy shutdown (too many clients), and unlock the app.
The Server log contains the entry "cannot set a field" ???
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #5 - May 30th, 2005 at 2:38pm
Print Post Print Post  
How many Parent records were exported?
How many Parent records were imported?
Do all the fields look correct? Pay attention to the ones before and after the subform.

to start debugging lets try a simple case.

Retrieve one parent record that has a few children records.
Export it using the Set All option.
Name it something that you will remember. Leave all settings as defaults.
Open the database you are importing the record into.
Set up the import spec by clicking Set All and then turning off the ignore column.
Click Run.
Choose the export file you just made.

Does the parent record import? Do the child records import?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #6 - Jun 1st, 2005 at 3:18pm
Print Post Print Post  
I guess I should have been more specific.
I am merging two apps, and then trying to make one the child of the other. These apps were imported from QA4, and are full of data, hence the export import routine.
  
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: hierarchichal imports
Reply #7 - Jun 2nd, 2005 at 5:03pm
Print Post Print Post  

  
Back to top
 
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: hierarchichal imports
Reply #8 - Jun 2nd, 2005 at 5:07pm
Print Post Print Post  
Hi Boneyard

Have you succeeded in your import attempts? I Plan to do the same type of import but haven't tried it yet. Any tips would be appreciated.

Harley
  
Back to top
 
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #9 - Jun 6th, 2005 at 11:47am
Print Post Print Post  
Still driving me nuts, I just am not getting much computer time right now.

Ok, I have two QA4 translations.
I want to make one, a child of the other.
I have had a student, enter a 'code' field, so I can use relational linking for the two Apps.
I go into the child app, and export all data to file.
I create a copy of the child app, and then delete all data.
Going into the parent app, I created a subform. and direct it to use relational linking to the now blank child app.
I try to import into the subform,

That's as far as I've got so far, I either get no data, or very scrambled data (data in wrong LE's)

  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #10 - Jun 7th, 2005 at 11:54am
Print Post Print Post  
anyone?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #11 - Jun 7th, 2005 at 5:48pm
Print Post Print Post  
Bob,

Quote:
I go into the child app, and export all data to file.
I create a copy of the child app, and then delete all data.
I try to import into the subform,


These above steps are unnecessary as far as I am understanding what you are doing.

When you had the student enter in the codes, are they on both the form you plan to use as a parent and the form you plan to use as a child? If they are only on one of the two forms do not follow the below steps.

Open your DB, that has both databases in it, in designer.
Redesign the Parent Form
Add a Subform element to the form
Select the form you want to display as the subform
Choose Relational linking
In Step 4 choose the correct field for both the parent and the child. Note these are the field names from the underlying database. Do not confuse these with the element names. They may be the same, they may not, double check.
Click Okay
Save
Preview
Open Search Update
Hit F10
The first parent record will display
***Does it show any child records?
If it does not show any child records, copy the value that is in the Code element and open the child form standalone in Search Update.
Paste the value that you copied from the parent form into the code element on the child form.
Hit F10
***Are any records retrieved?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #12 - Jun 8th, 2005 at 12:57pm
Print Post Print Post  
***
No it does not show any child records

Paste the code into the child and hit F10.

Search continued for five minutes... Finally I closed with Windows, as it apeared to be locked.

I have now gone back in, and through preview mode, confirmed that the record does exist. Just not visible in the subform.  ???
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #13 - Jun 8th, 2005 at 1:10pm
Print Post Print Post  
Bob,

Send me your DB and DAT files. I will have a look at them and see if anything is wrong.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #14 - Jun 8th, 2005 at 3:36pm
Print Post Print Post  
Mail server won't let me send the files, too large, even individually,
I will save a copy with only one entry of data, and see if that goes.
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #15 - Jun 8th, 2005 at 3:54pm
Print Post Print Post  
If you can, send them with more than one record, preferably around a dozen parent records and all the child records.  You may also want to try zipping them up using winzip.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #16 - Jun 8th, 2005 at 4:00pm
Print Post Print Post  
Ok, I sent you the files, with data for just my family name.
If you need to make stuff up for more records, go for it.
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #17 - Jun 10th, 2005 at 3:57pm
Print Post Print Post  
Bob,

Did you get my e-mail last night? You may want to check your spam folder if you did not. If you need me to resend it I can.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #18 - Jun 10th, 2005 at 9:01pm
Print Post Print Post  
No, I didn't get it, did you send it to my work email?

That's the one that is in my profile. If that's the case, I won't have it yet, I've been out of the office for a bit.

  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #19 - Jun 14th, 2005 at 11:11am
Print Post Print Post  
Ray,
Lotowner is the parent form
Register is the subform
I hope to add four more subforms, all translations from QA4.
The LE that should connect them is called 'CODE'
The field name should also be 'code', but, please note that in 'lotowner', this Field was originally named 'record#', my attempt to change it to 'code' may not have stuck. (I changed it to avoid future confusion).
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #20 - Jun 14th, 2005 at 1:48pm
Print Post Print Post  
Bob,

I believe I see what your problem is. On your parent form Code is Text and on your subform Code is also text.

In your parent datbase you have the code values of
3926.000000
3977.000000
4023.000000

In your child database you have code values of
1294
3977
4023

Since the code fields are text 3977.000000 is not the same as 3977. If you mass update your parent form to remove the decimal place and the zeros, then the linking will work. Let me know if you need me to send back the copy I have working here.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #21 - Jun 14th, 2005 at 4:32pm
Print Post Print Post  
I need to use mass update to do that?
I can't just set the decimal format?

How would I use mass update to do that?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: hierarchichal imports
Reply #22 - Jun 14th, 2005 at 4:44pm
Print Post Print Post  
Yes you will need to use a Mass Update unless someone wants to do it by hand.

You can't set the decimal format as both of the elements are bound to text fields not number fields. It looks as if the element on the parent form was once bound to a number field hence the multiple zeroes.

A mass update that can do this is
Code
Select All
Var vCode as Int

vCode = @ToNumber(Code)
Code = @Str(vCode) 



The reason to use an Int variable is because they can not store decimal places, which eliminates the zeros.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #23 - Jun 14th, 2005 at 4:58pm
Print Post Print Post  
Obviously, you speak Sesame.
Thanks, I'll have a go tonight.
  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #24 - Jun 14th, 2005 at 9:34pm
Print Post Print Post  
Things are going very well, I have brought in two subforms so far, no need for the import/export routine I was doing before. Real easy, takes maybe five minutes.
Thanks very much Ray

One thing though, the pallate colour doesn't reconcile from designer to sesame. It shows in the preview, but won't come across.
  
Back to top
IP Logged
 
Boneyard_Scrounger
Junior Member
**
Offline


Canadian Government =
Elected Dictatorship

Posts: 88
Location: Peoples Republic of Kanada
Joined: Apr 20th, 2005
Re: hierarchichal imports
Reply #25 - Jun 17th, 2005 at 11:38am
Print Post Print Post  
Solved the Palate colour issue. Instead of changing the palate of the subform, change the palate of the form the subform represents. That will automatically change the subform's palate.
  
Back to top
IP Logged