Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with XML Import

Featured Replies

  • Newbies

I am importing sales data into my FM6 Invoices DB

I have a .XSL stylesheet and I have one small problem

I need to import "C12345" into each record

Something like C12345

I need this line imported into each record but it is not present in my xml that I am importing.

Here is my current .XSL

<?xml version='1.0' encoding='UTF-8' ?>

0

Where or how can I add the info I need?

Thanks,

Craig

Say what? If it's not in the xml you're importing, then how could you "import" it? There is an "Internet Cust#". There is a "Username." If those can be matched with a field in your database, then you could run a scripted post-import Replace (or Loop) operation to populate the CustomerID, from a relational match.

It is fairly common to have to do this when you receive data from an external source. What you'd really want to know however is whether any records did NOT match; likely if you have to use only the name.

I am not quite following this either. To take the request literally, all it would take is:

...

C12345

...

and a corresponding field declared in the section.

  • Author
  • Newbies

I will try an simplify my question.

I am importing into FM6 via XML. I have a XSL sheet working. I want to set all these orders imported to a specific name, C12345.

This info is not in my xml data. I want all the records I import to have this data. Can I put some instructions in my XSL so every order will have C12345. This is not coming from the source.

If I can how do I write it in my XSL?

Thanks for any imput.

Craig

OK, to create a "fixed" data in the xsl do as comment says. Duplicate one of your existing Field rows, in the METADATA section, to create the field. Put it in the order you want to import (which you'll then match in FileMaker's Import dialog later).

Then, in the same order down below (between fields), put exactly what comment put in his code. That is, do not put an "xsl:value-of" element, just put your data, just type it in. You are just putting your own data instead of having the xsl select it.

Or just put it at the end of your Metadata and

's; easier.
  • Author
  • Newbies

That was exactly what I needed.

Thank You

Craig

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.