What LinkItem property is used to set the href attribute of the generated link? Specifying ‘value’ has no effect and there doesn’t appear to be an ‘href’ property. I always end up with a link that has an href of " ".
Thanks
What LinkItem property is used to set the href attribute of the generated link? Specifying ‘value’ has no effect and there doesn’t appear to be an ‘href’ property. I always end up with a link that has an href of " ".
Thanks
It comes from the actual data in the form or grid.
I guess I don’t know what you mean by ‘actual data’. If I am trying to create a LinkItem in a form, how do I need to modify the following to get it to work? The ‘value’ attribute appears to be ignored.
{name: "linkField", type: "link", title: "Return", canEdit: false, value: "/home", linkTitle: "My Home Page"}
Thanks
Looks like this may be a bug. Setting the link field value after initialization works.
Not a bug acually - defaultValue is how you set an initial value, or via form.values.
Problem in Modal Window
Thanks, using defaultValue go the link to display properly. But now I have another problem (maybe I should start a new thread?)
If the link item is in a form within a modal window it does not respond to click events. It renders correctly and the link URL appears in the browser status bar but it doesn’t load the page. I tried all of the various values for the “target” attribute but it does nothing.
Is there some way to get this to work?
Not a known bug. Can you post code that reproduces the problem?
Not pretty code, but it should show you what I mean.
<script type="text/javascript">
isc.Window.create({
ID: "win",
isModal: true,
width: 300
});
isc.DynamicForm.create({
ID: "form1",
fields: [
{name: "linkField", type: "link", title: "Return", canEdit: false, defaultValue: "/todo", linkTitle: "My Home Page"}
]
});
win.addItem(
isc.VLayout.create({
members: [
form1
]
})
);
</script>
Thanks
Thanks Mark
We’ve got this fixed now - will be present in 7.0 final