DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #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

  2. #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

  3. #13
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by mattekure View Post
    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.
    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!

  4. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in