Skip navigation
Currently Being Moderated

Cannot bind a property to the value of an LrView:picture

Mar 11, 2012 12:14 PM

Tags: #picture #sdk #binding #lrview

Per this discussion, I wonder of there is a bug binding specific properties to viewFactory:picture()

 

I can't seem to bind the value, even with a hacky transform that logs and returns a string. This snippet is from a sectionsForTopOfDialog() callback, with the keys we want in that property table passed in.

 

f:picture {
                         value = bind {
                              key = 'pic',
                              transform = function ( value, fromModel )
                                   local res = _PLUGIN:resourceId( value )
                                   tracef(" Will return: %s", res)
                                   return res
                              end,
                         },
                         tooltip = bind 'picTT',
                    },

 

The tooltip works (so far) but I can't get resource to show up. I tried a variety of ways of getting the string into the value. It seems like you can't bind properties to this value.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points