Hi,

You can do something like that in your controller

    <request-map uri="testUrl">
        <security https="true" auth="true"/>
        <response name="success" type="url" 
value="https://github.com/apache/ofbiz-framework"/>
    </request-map>

Jacques

Le 06/05/2022 à 03:11, Avijit Bose a écrit :
Dear Sir,

Unable to do so. Pls help with the code.

regards
Avijit

On Thu, May 5, 2022 at 11:52 AM Jacques Le Roux
<[email protected]> wrote:
Hi Avijit

TL;DR: use the "url" response type

You could have helped yourself. If you look into a controller file you will see 
its related schemaLocation: site-conf.xsd

In site-conf.xsd you can find under response element (for reques-map element) the 
possible types, "url" is there explained.

A faster way, if you use an IDE (I guess you do), is to hover over the reques-map 
response type and you will see "url", though there there is no
explanation shown

HTH

Jacques

Le 05/05/2022 à 03:59, Avijit Bose a écrit :
Hello,

My form list is as follows:
----------------------------------------------------------------------------------------------------------------------------
<form name="ListSuppliers" type="list" list-name="listIt"
paginate-target="FindSuppliers"
          default-entity-name="AkmSupplier" separate-columns="true"
odd-row-style="alternate-row"
          header-row-style="header-row-2"
default-table-style="basic-table hover-bar">
          <actions>
                 <service service-name="performFind" result-map="result"
result-map-list="listIt">
<field-map field-name="inputFields" from-field="eximCtx"/>
<field-map field-name="entityName" value="AkmSupplier"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
          </actions>

          <field name="supplierWebsite" title="${uiLabelMap.supplierWebsite}">
          <hyperlink target="external" description="${supplierWebsite}"
also-hidden="false">
          <parameter param-name="supplierWebsite"/>
          </hyperlink>
          </field>
          </form>
-----------------------------------------------------------------------------------------------------------------

${supplierWebsite} in the above form is http://www.abconsultancy.co.in
which is an external website.

While clicking the above link in the form, it is taking through the
controller. I want to open the external website directly bypassing the
controller and in a different window.

Pls help.

regards
Avijit Bose

Reply via email to