Matt Klein Posted November 7, 2006 Posted November 7, 2006 Anyone know of way to get the table name of a portal the user is working in without being in a field in that portal? For example, let's say I have a button in the portal and I want to be able to tell what the table name is for that portal when a user clicks on the button. Why do I want this?....I want it so that I can write some generic code for use in all portals without having to hard code the portal table name into the script parameter.
ThatOneGuy Posted November 8, 2006 Posted November 8, 2006 Hi Matt: FM8.5 has some new functions for Objects that may hold promise, but your profile reflects FM8. Short of that, If script parameters and field entry are both off the table then, no, I don't know of any way to achieve it. Maybe someone else will post a bright idea. Your goal of unified scripting is admirable, though. If you're willing to put up with script parameters, you can get there!
Matt Klein Posted November 8, 2006 Author Posted November 8, 2006 Woohoo! I don't know why I didn't think of that. I have been using the Objects functions for tab control and some other things. Thanks for getting my mind back on track! Also, thanks for pointing out my profile error. I have fixed it now. Lastly, I have no problem with script parameters at all. In fact, I can't live without them. The goal of this exercise is to reuse a button in multiple locations without having to change the script parameter everytime to reflect it's current context. Thanks again!!
ThatOneGuy Posted November 8, 2006 Posted November 8, 2006 Thanks for getting my mind back on track! You're quite welcome, Matt! I haven't worked in FM8.5 yet, so I could only reference Object functions in passing. Glad we gotcha goin'! :beer:
Recommended Posts
This topic is 6590 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