This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 6, 2012, 5:44 PM
7 Posts

Show single category by using iframe

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 4
Hi ,
 
I am new in xpage, so I want to some tips from forum side to go deep in xpage.
 
I have one custom control named 'A' with one combobox named 'Cities'.
There is one xpage with embedded view ("details") named 'Details.xsp' . 
 
I have another xpage (body.xsp)with two table cells named cell A and cell B. Custom control is in cell A and cell B has iframe with src="/Details.xsp"
 
I want to display the details as per the seleted value of cities which is on custom control. I want to use show single category by using the custom conrtol field value
 
Any response would be appreciable
 
With Regards
Zubair   
 
 
Feb 6, 2012, 8:15 PM
13 Posts
Re: Show single category by using iframe
1.Your Details.xsp need not be an xpage. It has to be a Custom control(CC) with property definition to capture
dropdown value. (The CC should have view container control with category filter or keys value pointed to compositeData.property), whatever you define in property definition ,you should be able to access it through compositeData
2.Drop this Details Custom control to the cell B.
3.Select the Custom Control in xpage and pass the value(Dropdown value(get it from scope variable)) to the CC property.
4.When you select the value from the cities drop down, store the selected value into a scope variable and
partially refresh the cell B.
Feb 7, 2012, 5:15 PM
7 Posts
Re: Show single category by using iframe
Thanx for your prompt response, But I dont want to change the scenario. My landing page is devided in three parts. One is left navigation, second is Top header, and third is body part. I have to put the cities combo on top header and based on selected values body part should update. Body part is a iframe binding the xpage which has the embedded view.
 
 
further response will appreciate me. 
 
With Regards 
Zubair 
Feb 8, 2012, 9:13 PM
13 Posts
Re: Show single category by using iframe
If you can change the Details.xsp to a custom control, then you can use
"getComponent(customcontrolName).getPropertyMap();"
You can get the properties of the Details Custom Control and set those properties with the drop down value.
I am not sure about other ways...
 
Feb 11, 2012, 7:15 AM
129 Posts
Re: Show single category by using iframe
If the iframe has a name property, e.g. detailsFrame..

onChange, client side script in the combobox:
window.frames.detailsFrame.location.search = 'city=' + thisEvent.target.value;

In Details.xsp:
Set categoryFilter="#{param.city}" in source mode, or param.city in el syntax with editor.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal