cancel
Showing results for 
Search instead for 
Did you mean: 

Goto page navigation

nu_dang
Explorer
0 Kudos

Hello,

I need help/some sample code to display (result) page on same window as the tableview where the user click on the cell data.

The following is my current prototype codes.

(on display.htm page)

<htmlb:form>

<htmlb:tableView id = "t1"

visibleRowCount = "15"

table = "<%= it_contracts %>" >

<htmlb:tableViewColumns>

<htmlb:tableViewColumn columnName = "lifnr"

title = "Vendor" />

<htmlb:tableViewColumn columnName = "name1"

title = "Name1" />

<htmlb:tableViewColumn columnName = "ebeln"

title = "Agreement No"

horizontalAlignment = "center" />

<htmlb:tableViewColumn columnName = "kdate"

title = "Validity End dt."

horizontalAlignment = "center" />

<htmlb:tableViewColumn columnName = "ekgrp"

title = "Purchasing Grp"

horizontalAlignment = "center"

type = "user" >

[<b>b]<htmlb:link id = "$ekgrp$"

onClick = "buyer.htm"

text = "$ekgrp$"/></b>

</htmlb:tableViewColumn> <htmlb:tableViewColumn columnName = "ltex1"

title = "Agreement Title" />

<htmlb:tableViewColumn columnName = "zterm"

title = "Terms"

When the user click on Purchasing group, the OnInputProcessing event is called, the following code pass the parameters

IF event->name = 'link'.

buyer = event->id.

navigation->set_parameter( name = 'ekgrp' value = buyer ).

navigation->goto_page( 'buyer.htm' ).

ENDIF.

This will open up another page window "buyer.htm" to show the detail information for the buyer selected but how do I code so this page buyer.htm to open up in page window of display.htm ( like how target="_blank" works).

I hope my question is not confusing.

Thank you for any suggestions.

nhd

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

In the <htmlb:form> element you can specify the target attribute. ( <htmlb:form id = "myFormId"

method = "post"

target = "_blank" )

Regards

Raja

maximilian_schaufler
Active Contributor
0 Kudos

I'm a bit confused by what you really want to achieve, so I can just extend Raja's suggestion, but maybe not changing the target for the whole form, just set target="_blank" for the link in your column ... at least if I got that part of your problem the right way ...

Max