How to open form in another form view when click image in list view?

Hi All,
I have created list view where "Picture" is one of the column. If you click Picture column it will open its item. I achieve using this
resource.
Actually that list form has been customized by InfoPath and create two views. 
Now, when i click that Picture column in that list view, it should open in another view instead of default view. How to achieve this?
Here is my code:
// List View – Field open modal dialog Sample
(function () {
// Create object that have the context information about the field that we want to change it output render
var pictureFiledContext = {};
pictureFiledContext.Templates = {};
pictureFiledContext.Templates.Fields = {
//"Picture" is the column name.
"Picture": { "View": pictureFiledTemplate }
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(pictureFiledContext);
function pictureFiledTemplate(ctx) {
var url= ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
var itemID=ctx.CurrentItem.ID;
var itemTitle=ctx.CurrentItem.Title;
return "<img alt='"+url+"' src='"+url+"' complete='complete' onclick=\"openModalDialog('EditForm.aspx?ID="+itemID+"','"+itemTitle+"')\" />";
function openModalDialog(url,title)
var options = {
title: "Item-"+title,
width: 600,
height: 600,
url: url
SP.UI.ModalDialog.showModalDialog(options);
return false;

Hi,
According to your post, my understanding is that you customized the list form, and created two list view.
I had created two list view, named view1 and view2, and customized the list form using the InfoPath.
Then replaced the code onclick=\"openModalDialog('EditForm.aspx?ID="+itemID+"','"+itemTitle+"')\"
with
onclick=\"openModalDialog('view2.aspx?ID="+itemID+"','"+itemTitle+"')\".
Afther that, edit the view1 page, Edit the list web part. Go to Miscellaneous -> JS Link, add the following URL into the JS Link textbox.
~site/Shared Documents/PictureFieldTemplate.js
Now when you click the image, it would open the view2 page.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • How to open new window with required size when clicking on image in a table

    Hi,
    There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
    can any one help plzzzzzzzz?
    Thanks
    Raju

    You can also use OAF js function to open modal pop up:
    openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
    --Mukul                                                                                                                                                                                                                                                                                                                                   

  • Frm-92101 happens when I open a form from another form and close it.

    Frm-92101 happens when I open a form from another form, check something, show a message to the user and exit the form to the previous form.
    Forms version: 10.1.2.0.2. Java: 1.6.0_23. Browser: IE6
    When I put before the "EXIT_FORM" two messages, everything is fine and the second form is closed and I repeat to the first form just as I wanted.
    In forms 9.0 it didn't happen.
    Does it have a connection with the fact I use JRE instead of JInitiator?
    Thank you.

    >
    There are numerous causes of the FRM-92101 error. I recommend you start your investigation by tracing your Forms session so you can see what your form is doing when the error occurs. Check out My Oracle Support document How to Use Forms Trace with Forms [ID 209372.1] for information on how to enable the trace. Also, take a look at My Oracle Support document Known Causes of FRM-92101 Error In Forms [ID 604633.1].
    Hope this helps,
    Craig
    >
    I have just found that there is a "Synchronize" command in one of the main attached libraries, and when I comment that command the application works well. But I don't want to comment it because it's a great library and I assume it has a part in the system.
    I have discovered that in the new Forms' help, the fact that the System.Current_Item mustn't be null so the command "Synchronize" will work, is mentioned. In the old Forms' help, that fact is not mentioned.
    So I tried to put it inside a condition that checks if the current item is not null, but the compiler doesn't recognize the "current_item". I don't know why. Because it's a library? So how can I check this? I can sent it as a parameter, but I don't want. Do you know something about it? Thank you.

  • Open the form from another form...

    How can I open the form from another form with the PL/SQL code???
    The my form are create from OracleDesigner and developed with OracleBuilder.
    Regards
    Basilisco Giorgio

    You can read "About calling reports, displays, and other forms from generated forms" topic in the Designer on-line help. By the way in Forms there are CALL_FORM,OPEN_FORM and NEW_FORM built-ins.
    Helena

  • How can we get data from One Form to Another Form

    Hi All,
    I have 2Forms.I'm calling one form from another form buy using next form button.
    If i press itis opening 2nd form,Simultaneously i have to get the data to the 2nd form.Can any one help me in this.
    Any triggers has to be fire tell me the solution
    Regards
    Siva

    you may have better success over here
    Forms

  • How to refer the trigger written in one form from another form ?

    How to refer the trigger written in one form from another form ?
    Thanks,
    Ravi Shankar

    Try to convert the PL/SQL code from Forms trigger into a PL/SQL library(.PLL),
    and then attach that PLL in your forms.
    Note that all Forms objects should be referenced indirectly, for example,
    you have to rewrite
    :B1.DEPT_CODE := :B2.DEPT_CODE;
    :B3.TOTAL_AMOUNT := 100;
    ==>
    copy('B2.DEPT_NO','B1.DEPT_NO');
    copy('100','B3.TOTAL_AMOUNT');
    This is the best way to share PL/SQL code among Oracle Forms.

  • HOW TO CALL A FORM FROM ANOTHER FORM

    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]

    Balraj wrote:
    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
    Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
    Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
    Your should seriously have a look at FAQ.
    http://wikis.sun.com/display/Forums/Forums+FAQ
    Also here.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Please read documentation for the initial questions.
    -Ammad

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Can I have a form inside another form?

    Hi!
    Is it possible to have a form inside another form?
    Regards,
    Filipa

    I think I'm messing up everything and i'm confused with how jsf works.
    I've noticed now that my problem doen't have todo with if i'm usin one form or nested forms :(
    The problem is (as i understood) that if the backing bean that I'm using for the chart part is a request chart, every time i submit the form a new instance of the bean is created and so the initialization of the selected checkboxes is redone.
    How can I avoid this? I would like to have only the choosen checkboxes selected.
    Here is the jsp code I'm using:
    <h:form>
    <h:panelGrid id="selectMenus" columns="2" style="margin-bottom:10px">
         <h:panelGroup style="margin-right:5px">
              <h:selectOneMenu id="projectSelectBox"
                   value="#{chartTypesBean.selectedProject}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projects}" />
              </h:selectOneMenu>
         </h:panelGroup>
         <h:panelGroup>
              <h:selectOneMenu id="chartSelectBox"
                   value="#{chartTypesBean.selectedProjectChart}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projectCharts}" />
              </h:selectOneMenu>
         </h:panelGroup>
    </h:panelGrid>
    <h:panelGrid id="calcByDay_grid" columns="2"
         rendered="#{chartTypesBean.lineRendered}">
         <h:panelGroup>
              <jd:barChart3d dataset="#{lineChartBean.lineDataset}" width="400"
                   height="400" fileExt="png" chartTitle="Calc by Day"
                   includeLegend="true" formatter="#{lineChartBean.formatter}"
                   type="Line" plotColor="#D8D8D8" binding="#{lineChartBean.lineChart}" />
         </h:panelGroup>
         <h:panelGroup>
              <h:selectManyCheckbox id="lineSeries" layout="pageDirection"
                   immediate="true" value="#{lineChartBean.lineSelectedSeries}">
                   <f:selectItems value="#{lineChartBean.lineSeries}" />
              </h:selectManyCheckbox>
              <h:commandButton id="lineSubmit" value="Submit"
                   action="submit()" />
         </h:panelGroup>
    </h:panelGrid>
    ... (other charts) ...
    </h:form>
    here is the line chart backing bean code:
    public class LineChartBean {
         private Logger logger = Logger.getLogger(LineChartBean.class
                   .getSimpleName());
         private boolean firstTime = true;
         private final String[] lineCategories = { "27/07/05", "28/07/05",
                   "29/07/05", "30/07/05", "31/07/05", "01/08/05", "02/08/05",
                   "03/08/05", "04/08/05", "05/08/05", "06/08/05", "07/08/05",
                   "08/08/05", "09/08/05", "10/08/05", "11/08/05", "12/08/05",
                   "13/08/05", "14/08/05", "15/08/05", "16/08/05", "17/08/05",
                   "18/08/05", "19/08/05", "20/08/05", "21/08/05", "22/08/05",
                   "23/08/05", "24/08/05", "25/08/05", "26/08/05" };
         private final SelectItem[] lineSeries = { new SelectItem("Open", "Open"),
                   new SelectItem("P1(Open)", "P1(Open)"),
                   new SelectItem("P2(Open)", "P2(Open)"),
                   new SelectItem("Active", "Active"), new SelectItem("Test", "Test"),
                   new SelectItem("Evol", "Evol") };
         private final double[][] lineValues = { { 8, 1, 4, 6, 7, 11.60483871 },
                   { 11, 1, 4, 7, 5, 11.62903226 }, { 11, 1, 4, 7, 5, 11.65322581 },
                   { 11, 1, 4, 7, 5, 11.67741935 }, { 11, 1, 4, 7, 5, 11.7016129 },
                   { 13, 2, 5, 7, 5, 11.72580645 }, { 14, 2, 5, 7, 5, 11.75 },
                   { 12, 3, 4, 9, 5, 11.77419355 }, { 12, 3, 4, 9, 5, 11.7983871 },
                   { 12, 3, 4, 9, 5, 11.82258065 }, { 12, 3, 4, 9, 5, 11.84677419 },
                   { 12, 3, 4, 9, 5, 11.87096774 }, { 14, 3, 5, 10, 4, 11.89516129 },
                   { 13, 2, 6, 12, 4, 11.91935484 }, { 13, 2, 6, 12, 4, 11.94354839 },
                   { 13, 2, 6, 12, 4, 11.96774194 }, { 12, 2, 5, 4, 13, 11.99193548 },
                   { 12, 2, 5, 4, 13, 12.01612903 }, { 12, 2, 5, 4, 13, 12.04032258 },
                   { 12, 2, 5, 4, 13, 12.06451613 }, { 12, 2, 4, 4, 11, 12.08870968 },
                   { 12, 2, 4, 3, 9, 12.11290323 }, { 14, 3, 5, 2, 4, 12.13709677 },
                   { 11, 0, 5, 3, 5, 12.16129032 }, { 11, 0, 5, 3, 5, 12.18548387 },
                   { 11, 0, 5, 3, 5, 12.20967742 }, { 12, 0, 6, 2, 5, 12.23387097 },
                   { 12, 0, 6, 2, 4, 12.25806452 }, { 12, 0, 6, 2, 4, 12.28225806 },
                   { 12, 0, 6, 2, 4, 12.30645161 }, { 12, 0, 6, 2, 4, 12.33064516 } };
         private DefaultCategoryDataset lineDataset;
         private String[] lineSelectedSeries;
         private NumberFormat formatter = new DecimalFormat("#,###.##");
         public CategoryDataset getLineDataset() {
              if(firstTime) {
                   lineSelectedSeries = new String[lineSeries.length];
                   for (int i = 0; i < lineSeries.length; i++) {
                        lineSelectedSeries[i] = (String) lineSeries.getValue();
                   firstTime = false;
              lineDataset = new DefaultCategoryDataset();
              for (int serie = 0; serie < lineSeries.length; serie++) {
                   String serieName = (String) lineSeries[serie].getValue();
                   boolean isSelected = false;
                   for (String selectedSerie : lineSelectedSeries) {
                        if (lineSeries[serie].getValue().equals(selectedSerie)) {
                             isSelected = true;
                             break;
                   if (!isSelected) {
                        continue;
                   } else {
                        for (int category = 0; category < lineCategories.length; category++) {
                             double y = lineValues[category][serie];
                             lineDataset
                                       .addValue(y, serieName, lineCategories[category]);
              return lineDataset;
         public NumberFormat getFormatter() {
              return formatter;
         * @return Returns the lineSelectedSeries.
         public String[] getLineSelectedSeries() {
              return lineSelectedSeries;
         * @return Returns the lineSeries.
         public SelectItem[] getLineSeries() {
              return lineSeries;
         * @param lineSelectedSeries
         * The lineSelectedSeries to set.
         public void setLineSelectedSeries(String[] lineSelectedSeries) {
              this.lineSelectedSeries = lineSelectedSeries;

  • What are the 3 ways to call a form from another form?

    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?

    Hi,
    1. Should be new_form, call_form and open_form
    2. The command is run_product
    3. There is a property 'Menu Module' in form, just change it to your menu file name
    Regards,
    George
    Can anyone help me with the following questions...
    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?
    Thanks for your time..
    Madhu

  • Query a second form from another form by passing value

    Hi,
    I have two forms. I am trying to query a second form from another form. I have managed to display the query results in the second form by passing value from the first form. I did it according to the details in the Oracle 9ias Portal Technical FAQ html file.
    It works fine when there is already a row in the first form. When I insert a new row in the first form and query the second form which has key from the first form, there is no matching rows displayed which is correct but detail action mode is 'NONE' for all detail rows.
    According to the FAQ, it says the following:-
    "When the called form is started, it executes a query with the supplied condition (in this case, "where deptno=10"). If the query is successful, the matching rows are displayed in Update mode. If no matching rows are found, the form starts in Insert mode."
    It does not happen for me. I get NONE mode for no matching rows. Is this a BUG ? I am working on Portal version 3.0.9.8.0.
    Is there something wrong in the code I wrote ? I would like to have all the detail mode as Insert.
    Here is the following code I wrote on SUCCESSFUL SUBMISSION OF THE FORM.
    declare
    my_url varchar2(1000);
    v_deptno number;
    begin
    v_deptno := p_session.get_value_as_NUMBER(p_block_name => 'DEFAULT', p_attribute_name => 'A_DEPTNO');
    my_url := 'PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1268491962&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=deptno&p_arg_values='||LTRIM(TO_CHAR(v_deptno))||'&p_arg_names=_deptno_cond&p_arg_values=%3D';
    go(my_url);
    end;

    Hi,
    The behaviour is OK as in the MD form there are two states "Save" and "Query and Save" and when the form is in "Query and Save" mode that means you can use it for both Query aswell as Save which is decided by your "Master action" if that is None it is used for Query , for Insert you will have to select Insert ,this is the Insert Mode behavior.
    If you open a new MD form that is also in the "Query and Save" the same behaviour will be there.
    Hope this answers your query.
    rahul

  • I am not able to open your answer for some reason my computer is not opening it in Explorer, it's not responding and I keep getting error messages and I don't know how to open it in another browser when Explorer experiencing issues. Heather

    I am not able to open your answer for some reason my computer is not opening it in Explorer, it’s not responding and I keep getting error messages and I don’t know how to open it in another browser when Explorer experiencing issues.
    Heather

    If you  have IE version 10 go to TOOLS and change the option to use Compatibility View

  • Why does my form data gets cleared out when clicking on the back button.

    Can someone explain why does my form selections get cleared out when clicking on the back button.
    I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
    1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
    I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
    If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
    THANKS.

    the browser doesn't have to remember what you submitted and fill that back in.
    you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there.

  • How to open show detail item on ADF link click

    Hi,
    Can anybody tell me how to open show detail item tab on link click ??
    thanks,
    Nitesh

    Hi,
    what Frank is saying..
    1. select showdetailitem component
    2. go to disclosure property
    3. attach a managed bean variable (return true/false)
    4. in the commandLink method set the variable true/false depending on requirement
    or
    1. select showdetailitem component
    2. create a binding in the managed bean
    3. in the commandLink method set showdetailitembinding.setDisclosed(true/false);
    4. add PPR
    refer http://jobinesh.blogspot.in/2010/12/programmatically-disclosing.html
    ~Abhijit
    Edited by: Abhijit Dutta on Mar 12, 2013 5:20 PM

  • Problem view TIFF multipage images with ECL Viewer 5.1.3

    Dear All,
    using the SAPGUI 710 and CV04N, I cannot view the same TIFF multipage image twice in ECL Viewer, the second time, the first time every thing is ok, but the second time the SAPGUI display the error : "File C:Docume1dupondLOCALS1TempZEP_0457895 cannot be created"
    To view again the TIFF mulitpage image, I need to kill the sapLogon.exe process and relaunch it again.
    It seams the TIFF image file is locked by the  the saplogon.exe process the first time and on the second time, SAP cannot rewrite the temporay TIFF image file. 
    Notes:
    - I use CV04N or CV03N to view the documents.
    - This problem doesn't happends with non multipage TIFF image.
    - Tested on more than 20 computers.
    - Computers are with Windows XP SP2 + SAP GUI 7.10 Compilation 2 + SP9 + SP12 +  - ECL Viewer 5.1.3 (integrated with Comp 2)
    How can I fix this problem ?
    Thank you for your help
    I think this is not the correct forum to post this king of problem, i create the same post on
    Expert Forums » Application Server » SAP GUI » [Problem view TIFF multipage images with ECL Viewer 5.1.3|;
    Edited by: Patrick Zufferey on May 5, 2009 11:41 PM

    Can you upgrade the ECL viewer to version 6.0 and check whether the same problem still exists? you can download from service.sap.com

Maybe you are looking for