Question
How to get the value of edit_field
I'm new to creating plug-ins in Lua.
So far i'm using this forum and the Adobe SDK to write my code.
At the moment i'm stuck to get the value back of the edit_field.
My code
function ShowDialog()
LrFunctionContext.callWithContext ("test", function (context)
local f = LrView.osFactory ()
local p = LrBinding.makePropertyTable (context)
p.SourceDir = ""
local res = LrDialogs.presentModalDialog {
title = "Set Source directory",
contents = f:row {
bind_to_object = p,
f:static_text {
title = "Path:",
alignment = "left",
width = LrView.share "label_width",
},
f:edit_field {
alignment = 'left', place_horizontal = 0,
width_in_chars = 50, immediate = true,
value = bind "SourceDir"
},
},
actionVerb = "Save",
}
end)
end
gij = ShowDialog()
