Jump to content
Salesforce and other SMB Solutions are coming soon. ×

About portal


jealindgar
 Share

Recommended Posts

Hello from Spain,

sorry my poor english

my database is about photos and I want this:

 

I have register A and a field "numphotos" and its portal

I write a number in that field but I need that if I write, for example, a six (6) and that portal generate automatically 6 lines like this one:

 

Field Photo

001

002

003

004

005

006

 

and an other field of my portal I write photographer and description, like:

 

Field Photo (generate automatically by FM)| Photographer (by me) | Description

 

001 | Silkdie Suzan | Me with embassy Loren Driek

002 | Lorraine Hei | Loren Driek, Derick Mujdki and his right is me

etc.

 

did you understand me? smiley-cry

Link to comment
Share on other sites

Set Variable [$Num, 1]

Go to Portal Row [First]

Loop

Set Field [Portal::Numphotos, "00"&$Num]

Set Variable [$Num, GetAsNumber($Num)+1]

Exit Loop If [GetAsNumber($Num)>6]

Go to Portal Row [Next]

End Loop

Link to comment
Share on other sites

It's a script. You write it in the ScriptMaker and attach it to a button next to your portal.

 

Examples: I could make you one and post it here but you'll have to sign up to be able to download attached files.

Link to comment
Share on other sites

Here you go

 

 

EDIT: Aha, you want to SAY how many and then it makes that many rows.

 

OK, I changed the example file, it does that now.

 

Set Field [Local Table::g.NumPhotos, ""]

Show Custom Dialog ["How many Photos? Type a number" {Input field = Local Table::g.Numphotos} "OK", "Cancel"]

If [Get(LastMessageChoice) = 2]

Exit Script

End If

Set Variable [$Num, 1]

Go to Portal Row [First]

Loop

Set Field [Portal::Numphotos, "00"&$Num]

Set Variable [$Num, GetAsNumber($Num)+1]

Exit Loop If [GetAsNumber($Num)>Local Table::g.NumPhotos]

Go to Portal Row [Next]

End Loop

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use