Hi Guys,
We have an image of the member in the table. The field is in the grid but hidden. There is a button on each row of the grid to open another grid which is filtered. The button uses the following Javascript to collect row values.
In the Text area above the second grid we are using the values of headline fullname and phone.
We would also would like to display the memb_pic. Using the following only the text is displayed, not the image.
What needs to be changed to display the image as well?
All help is gratefully received.
We have an image of the member in the table. The field is in the grid but hidden. There is a button on each row of the grid to open another grid which is filtered. The button uses the following Javascript to collect row values.
Code:
//{grid.Object}.setFocus(rowNum); {grid.Object}.setSelectedRow({Grid.RowNumber}); var rowNum = {grid.object}._selectedRow; Memb_id1 = {grid.Object}.getValue('G','SCLL_MEM_ID',rowNum); memb_name = {grid.Object}.getValue('G','MEMBER_NAME',rowNum); call_req_1 = {grid.Object}.getValue('G','CALL_ID',rowNum); phone = {grid.Object}.getValue('G','TELEPHONE',rowNum); headlines = {Grid.object}.getValue('G','HEADLINE_NOTES',rowNum); memb_pic={grid.Object}.getValue('G','MEMBER_PIC',rowNum); alert('Call Req ID: '+call_req_1+'; Mem ID: '+ Memb_id1+' '+memb_name+'... '+phone+' ... '+headlines); // add the _myA5Globals object to the global namespace if it does not exist if (typeof _myA5Globals == 'undefined') { _myA5Globals = {}; } _myA5Globals.headline=headlines; _myA5Globals.fullName = memb_name; _myA5Globals.phone=phone; _myA5Globals.memb_pic=memb_pic;
We would also would like to display the memb_pic. Using the following only the text is displayed, not the image.
Code:
<font size="4"><strong>{Total_Records} Log Items for:</strong></font> <font size="4"><font color="#ff0000"><div id="name"></div></font></font> <font color="#008000"><font size="4"><div id="headtext"></div></font></font><div id="memb_pic"></div>
All help is gratefully received.
Comment