Skip 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.

Move Text from Field to Portal

Featured Replies

  • Newbies

This is my first post, so any help will be greatly appreciated!

I have a solution I have created and I need to move data from a text field to a portal row.

My text field has style codes separated by a semi-colon. This is the format that our website requires to handle our data. There may be between 5 and 500 styles codes per product. I have created a separate table that I want to move each occurrence of a style code into a record in that other table.

Example:

Product 1234 has style codes "abc;abd;abe;abf;abg" assigned to it in the text field "style_codes". I want to have those codes end up as records in a related table.

How do I get the text in my style code field to be moved into a portal row? What solutions do you suggest?

Thanks!

I believe the easiest way is to define a repeating calculation field with 500 repetitions (so that each code ends up in its own repetition) =


Let ( [

i = Get (CalculationRepetitionNumber) ; 

v = Substitute ( Extend ( style_codes ) ; ";" ; ¶ )

] ;

Case (

i ≤ ValueCount ( v ) ;

GetValue ( v ; i )

)

)

Then import the ProductID and the calculation field into the new table, while splitting them into individual records.

Edited by Guest
Added the code

  • Author
  • Newbies

That worked PERFECTLY!!!! Many many thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.