knussear Posted October 15, 2001 Posted October 15, 2001 Hello, I have an online db with a portal, using fmpro5.5. I can't get portals on the site to display with the new line below (like is displayed in built in publishing). I can only use cdml-portals to show the existing portal data. How can I enter new data to add records to the portal. I have seen elsewhere that it may be possible to do this with an Inline action tag to create that new record in the related database when the page loads (and the portal should show it as long as the -inline is above it on the web page), but I cannot figure out the syntax that one might use to make this happen, as it does not seem to be well covered in the dev guide. Thx for help!
Vaughan Posted October 16, 2001 Posted October 16, 2001 I've never done this, but can't you add a faux "row" just below the portal that contains the hard-coded CDML to generate the functionality you want? (This assumes you are using Custom web publishing of course.)
knussear Posted October 16, 2001 Author Posted October 16, 2001 I'm willing to try anything, but what would that look like. I have the following code (and yes I'm using custom publishing) which displays the portal values as pop up menus vertically [FMP-Portal: Collaborators] <select name='Collaborators::CollaboratorName' size="1"> [FMP-Option: Collaborators::CollaboratorName] <br> </select> [/FMP-Portal]
Vaughan Posted October 16, 2001 Posted October 16, 2001 Well that's the part I'm not sure of! The trick though is to realise that this faux row is actually not part of the portal, it's beneath it. Depending on how you want it to look etc, it might be something as simple as a link that generates the codes that create a new record in the related database and insert the master key into the match field for the current master record, that changes to a suitable form for data entry with a -new action. Or the faux row could be the form itself with all the boxes for field entry. You *don't* want new blank records being created in your database every time somebody hits or reloads the page!
knussear Posted October 16, 2001 Author Posted October 16, 2001 I see now about the faux line not being a part of the portal I tried this, but it fails miserably. Some how it places all of the already entered portal values, plus the one I want into the next portal record. Is there a way to tell it to find out the last portal row, add one, and then place the new selection in the next one? <div align="center"> [FMP-Portal: Collaborators] <select name='Collaborators::CollaboratorName' size="1"> [FMP-Option: Collaborators::CollaboratorName] <br> </select> [/FMP-Portal] </div> <div align="center"> <SELECT NAME='Collaborators::CollaboratorName' SIZE=1 > <OPTION VALUE=""> - No Selection - [FMP-VALUELIST: Collaborators::CollaboratorName, LIST=collaborator] <option [FMP-ValueListItem]>[FMP-VALUELISTITEM][/FMP-VALUELIST] </SELECT> </div>
Recommended Posts
This topic is 8536 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now