Thought it is simple, but.............(web Application)

Hi

this is u can say stupid question: though it is simple(WEB Appliacation)

i have one form one that have one text filed (nearer) that there is one picturebox, on cliking of that the picture, it is going to open one form and selecting that field, my parent form is going to field by that selected value: but after i got select i wanna to transfer that value in to another hidden filed:

though i have transeffered value from onchage event (javascript) but thing is going to work) is there anything will be happening behiend that code:

HELP please

DEVs""

Subject: thought it is simple, but…(web Application)

You didn’t make it easy to help you because you didn’t mention why you think it is not working, what error messages you are getting, what debugging steps you have taken, etc.

If I understand the scenario, instead of using a button, you want to use an image with an onClick event to get the value from one field, open a new window, and put the value into a specific field. Right? That is very doable.

First code the onClick event of the image with JavaScript. Do some debugging to make sure it is getting the current value. Then open a new window and put the value in. Don’t forget that by default Domino does not render read only fields as fields unless your form is set to render all fields. You can code up the field manually with an tag with READONLY set.

var theValue = document.forms[0].origfield.value;

…

var urlstr = ‘put a URL here…’;

var winFeatures = ‘resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,left=200,top=200,width=780,height=500’;

var wMyNew = window.open( urlstr, ‘’, winFeatures );

wMyNew.focus();

…

wMyNew.newField.value = theValue;

…

p.s. It would be better to use getElementByID form.

Subject: RE: thought it is simple, but…(web Application)

hi

thanks for embarking replying

Question 1

basically i means is that if field is going to leave blank(on load), thats why mine dblookup is giving error. because absence of key value. what is de solution? what should i do?

mine thoughtable solution and question.

Question 2

you dont understand mine question,

see on near to text field(parent field,parent form), there is one picture box element, and clicking on that. new window(chiled field , child form) is going to open.and selecting perticular value it should be transffered to parent field(parent form). i want to take the parent filed’s value in same form(parent)where there is hidden field. i want it be for my dblookup use.

and one more thing is that by default hidden field value should not blank; bcs if it is goes to blank my lookup will be giving error on the load of the form(parent)

see, upto transferring of child field value to parent field value is working nicely, but i wanna to transfer it for hidden field.

i think you got soon,.

DEV/"