Thread: Handler to pick up URL clicks
-
January 27th, 2020, 21:02 #11
I was being stupid, and got the DB.getValue() and DB.getText() messed up in my head. Once I took a step back and rewent over it I realized I was calling the wrong one. the DB.getValue() got me exactly what I want. and I actually got the entire extension working the way I want it to. I am doing some final testing on it now, but it seems to work great.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
January 27th, 2020, 21:09 #12
And I really did try the code you included. I dont know if I was tired or what, but up until 30 mins ago, I would swear it wasnt returning the xml.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
January 27th, 2020, 21:14 #13
I didn't understand exactly what you were trying to do - I thought (mistakenly) that the link details you were after were stored directly in a database node and not in a formattedtext field. Sorry I misled you.
Hopefully what I posted might be useful for when you do want data directly from a the database!Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
January 27th, 2020, 22:12 #14
I appreciate the help. I am still fairly new to LUA and programming with Fantasy Grounds. But I think this piece is finally coming together.
for a better explanation of I was trying to do, I have a module with a list of story entries. Each story entry has a bunch of links in the form of:
<link class="url" recordname="http:/abc.com">Name</link>
I wanted to go through the links and convert them into the form
<link class="url" recordname="http:/abc.com?authentication_code=123445">Name</link>
So initially I was trying to get the text from the formatted text field, but obviously I was going about it the wrong way. now with a simple nNode.getValue() I can get the data I need to make the changes.For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks