enquirerfm Posted January 22, 2018 Posted January 22, 2018 I have set up a portal which correctly shows the records I need. I want to be able to select the data from one of the fields - say there are 5 fields across one row of the portal and there are 5 rows of data showing. Is it possible to create a script which I can assign to a button which would copy the data in field 3 row 2, say? Thank you.
bcooney Posted January 22, 2018 Posted January 22, 2018 Yes. Perhaps you can describe the use case here and I can offer a more informed answer.
enquirerfm Posted January 23, 2018 Author Posted January 23, 2018 (edited) Please see the attached FM file (v8.5). Basically I am using this to try and adjust commissions payable. I want the portal to show the later entries which I import from a web download - both the file and portal sort so that the latest created records are either first or at the top. I am using a self-joined DB. I could just add the fields manually - not terribly onerous but would be nice to copy and paste using a button... Therefore the record created first, which has the earliest creation date is the main record for processing the adjustments since this would have been the record which created the original posting for commissions. The later records imported into the file provide the basis for adjustments. Sorry if this isn't clear. I have set up the example with 3 records. The first created record is the base record from which the original account postings are made. The other 2 records provide the adjustments. In the real world these are likely to be weeks apart. I have completed the entry for the second adjustment. The portal needs to show the adjusted totals with the latest at the top - obviously the first record (base record) doesn't show in the portal for the base record which is good. PortalEx.zip Edited January 23, 2018 by enquirerfm clarification
Agnes Riley Posted January 23, 2018 Posted January 23, 2018 As Bcooney said before, please explain in layman's terms what you are trying to achieve.
bcooney Posted January 23, 2018 Posted January 23, 2018 LOL, Agnes. EnquireFM, I had a look at your file. Your data structure is a bit questionable to me (anytime you see field 1, field 2, field 3 notation, you question the data model). Quick answer...you can use buttons to capture values and set values. You can string values together as script parameters by concatenating them and then parsing them on the receiving side. FM 8.5!!! So many new functions and features since then that I cannot even think in 8.5 anymore. Sorry. 1
Pavlk Posted January 24, 2018 Posted January 24, 2018 I would recommend you to start with updating your Filemaker. New features will help you to find optimal and elegant solution. 1
enquirerfm Posted January 25, 2018 Author Posted January 25, 2018 Thanks for your interest. here is the file in v12adv. All I want to know - is there a quick way to copy the contents of the fields which show in the portal. eg button to copy contents of R1F1, R1F2,R1F3 etc and then if I want R2F1, R2F2 etc (R=Row, F=field). PortalEx.fmp12 OK, thanks everyone - sorted.
Pavlk Posted January 26, 2018 Posted January 26, 2018 Well, there is a script step called "Copy". You can create a button, that would perform the script. I hope it covers your needs.
Agnes Riley Posted January 26, 2018 Posted January 26, 2018 I would recommend staying away from the "Copy" function in FM. You should use "Set Field". tell it where you want to get the data from and where it should send it. I didn't see your file, but just wanted to let you know.
Pavlk Posted January 26, 2018 Posted January 26, 2018 (edited) Agnes, I think that enquirerfm wants to Copy the content to Clipboard to be able to Paste it later. Is that right, enquirerfm? Edited January 26, 2018 by Pavlk
Agnes Riley Posted January 26, 2018 Posted January 26, 2018 It seems to me he wants to copy data from a field in a portal.
Recommended Posts
This topic is 2786 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