JS Link in Calender View
Dear All,
I want to add my custom button in default calender view using JSLINK, Unfortunately i cannot find js on newform.aspx of calender view.
Is there any way to load jslink in calender view or add custom button?
Thanks is advance!!!!
Regards,
Darshit Gajjar
Darshit Gajjar Sr SharePoint Developer
There is no OOTB way to attach Javascript with calendar view (no property exposed for that listview). For a workaround you can create your own JQUERY or JAVASCRIPT and add on calendar view page by adding the reference in Content Editor Webpart on that
page.,
Rahul Sharma
http://sharepointarrow.blogspot.com/
Similar Messages
-
How to create a calender view in webdynpro java EP 7.0
Hi ,
I want to create a calender view in webdynpro,
Requirments are
1. it should be current month view
2. Below each day i want to show office in-time and out-time in two cloumns(these values will be coming tru RFCs).
ie
1
10am | 4pm
Is this possible in webdynpro java EP 7.0 ?
Please help me
Thanks
KumarHi Kumar,
If you are using EP7.0, there is no calendar UI element in webdynpro development. There is only date navigator UI element. This is demonstrated in the below article.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059344a-1930-2d10-6e8a-dcec5f94993e?quicklink=index&overridelayout=true
Regards,
Ganesh N -
How to add a new url link in a view of an existing webdynpro component?
How to add a new url link in a view of an existing webdynpro component?
hi ,
refer SAP online hep :
Implementing Enhancements in a View
http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
Enhancements means inserting user developments into SAP development objects at predefined positions.
The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
refernce :
have a look at this article
How to Create Enhancement Implementation in Web Dynpro ABAP
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
as pointed correctly by Saurav in earlier thread
regards,
amit -
Hide view links in list view in sharepoint 2013
Hi
How I can hide view links in list view in sharepoint 2013. Like below pic?
Thanks.for that you can use id of its parent span element something like below.
#WPQ2_ListTitleViewSelectorMenu_Container {
display: none !important;
Thanks. -
Alright, the question I have has to deal with how to link an app to a website to download files. How, or is it even possible to link individual picker view selections to download an individual file from a website or other location such as dropbox using xcode. Sorry if this is the wrong place to post this, but if anyone can help or can send a link to a place that can, I would greatly appreciate it!
I am not getting anywhere with deploying my application or
applet.
I have set up my bc4j project. It contains all my VO info,
links, application module. (proj a)
I then have another project with DbInfo in it(has all my rowset
info), Multiple Frames, and my Applet.java file.
Actually I have an Applet.java file and a Application.java file
because I was seeing if both/either worked. Anyway they seem the
same, except for that extra window that comes up when you run the
applet.
I follow the steps in the oracle directions (from earlier post).
And all seems ok. But at ---->
[*] Select the subdirectory under myhtml where your applet's HTML
file
is located, and enter the directory path of the 'staging'
directory you
created in step 3 above, if different from the default.</li>
[*]Select the HTML files that JDeveloper created to run your
applet.</li>
[*]Select all of the Java source files in your project that make
up the
applet.</li>
I have no HTML file associated with my applet, at least that I
know of.
So do I need to create one, or should it of been done
automatically.
Also, I trying to figure out what will be the best way to deploy
my project. Applet or stand alone application is what my first
choices have been so far. I have read that there is some issues
with applets being served from a different server than the
database. So a stand alone application was my front runner, but
I haven't gotten either way to work yet. -
When I type a link to a page in my root directory in code view and I click on the link in live view it does nothing. When I then go to preview in a browser it works fine. Can anybody help?
I am not sure however I suspect live view is for viewing the page you are working on. You would have to open the other page to see it in live view. The browser on the other hand is doing what it is designed to do. I jump back and forth all the time from live view to the browsers I have installed.
-
Edit Add New Item link in certain view of list in SharePoint Programmtically
this is my requirements
i have one list called List 1 and two content types on it
CT 1 and
CT 2 and create two views on the list
View 1 to display items of CT 1
View 2 to display items of CT 2
the creation of list and views is done via XML
now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
of CT 2
i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
SPSecurity.RunWithElevatedPrivileges(delegate()
SPWeb web = properties.Feature.Parent as SPWeb;
web.AllowUnsafeUpdates = true;
SPList contractList = web.Lists.TryGetList("Contract");
SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
if (item.GetType().Name == "XsltListViewWebPart")
XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
SPView sicet2AView = contractList.Views[guid];
sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
null,sicet2AView,null);
PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
//sicet2AView.ViewFields.DeleteAll();
if (toolbarNode != null)
string toolbarType = toolbarNode.Attributes["Type"].Value;
string linkText = "abdeen";
toolbarNode.Attributes["Type"].Value = "Freeform";
XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
positionNode.Value = "After";
toolbarNode.Attributes.Append(positionNode);
//toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt=""""> <a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
sicet2AView.Update();
//listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
//listViewWebPart.Visible = true;
webpartManager.SaveChanges(listViewWebPart);
web.Update();
but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
Mohamed AbdeenHi,
The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
as you expected.
Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
of the current list.
To develop a custom web part, you can take a look at the links below with steps in detail for a start:
Creating Web Parts for SharePoint
http://msdn.microsoft.com/en-us/library/ee231579.aspx
SharePoint 2013 Create a Visual Web Part
http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
Create view link between two view objects (from programmatic data source)
Hi Experts,
Can we create a link between two view objects (they are created from programmatic datasource ; not from either entity or sql query). If yes how to create the link; ( i mean the like attributes?)
I would also like to drag and drop that in my page so that i can see as top master form and the below child table. Assume in my program i will be only have one master object and many child objects.
Any hits or idea pls.
-tEasiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.
-
How to dynamically change link in Page Viewer Web Part SharePoint 2010?
Newbie Question:
Situation:
a) Created: Two Site Pages page 1 & page 2
b) Page 1: Includes simple hyperlink text Example - Home | About Us | Contact etc
c) Page 2: Includes Page Viewer Web Part that includes link to an existing web site (this site has all of the pages) and the olde site is shown in SharePoint site
Complication:
a) I want the users to click on Page 1 - About Us etc
b) The View on Page 2 - page viewer link should be dynamically updated to About Us . If user clicks on contact us on Page 1..the page 2 view should change dynamically to Contact US
ASK:
a) How do I dynamically update the links in Page Viewer web part using minimal coding (if possible)
Any Guidance will be greatly appreciated.Hello,
You can also used the another appoch,
Create your custom webpart , then add the PageViewer Webpart at run time,Create webpart property for the custom webpart to change the url and add the PageViewer webpart runtime,
I have created the custom webpart property to specified the url at the tine of edit the webpart
Here is the code
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using System.Collections;
using Microsoft.SharePoint.Publishing.WebControls;
using Microsoft.SharePoint.WebPartPages;
namespace MyNameSpace.MyPageViewer
[ToolboxItemAttribute(false)]
public class MyPageViewer : System.Web.UI.WebControls.WebParts.WebPart
private string _customUrl = "http://yourdefaulturl";//Specified default url
[WebBrowsable(true)
, Personalizable(true)
, Bindable(true)
, Browsable(false)
, DefaultValue("")
, Category("Custom Page Viewer Properties")
, WebPartStorage(Storage.Shared)
, FriendlyName("PageViewer URL")
, Description("PageViewer URL")]
public string CustomUrl
get { return _customUrl; }
set {if (string.IsNullOrEmpty(value) == false) { _customUrl = value; } }
#endregion
public MyPageViewer()
this.ChromeType = PartChromeType.None;
protected override void OnInit(EventArgs e)
EnsureChildControls();
base.OnInit(e);
protected override void CreateChildControls()
string pageViewerUrl = CustomUrl;
Microsoft.SharePoint.WebPartPages.PageViewerWebPart pageViewerWebPart = new Microsoft.SharePoint.WebPartPages.PageViewerWebPart();
if (!string.IsNullOrEmpty(pageViewerUrl))
pageViewerWebPart.ContentLink = pageViewerUrl;
pageViewerWebPart.ChromeType = PartChromeType.None;
pageViewerWebPart.Height = "382";
pageViewerWebPart.Width = "682";
this.Controls.Add(pageViewerWebPart);
protected override void OnLoad(EventArgs e)
base.OnLoad(e);
protected override void OnPreRender(EventArgs e)
base.OnPreRender(e);
Hope this will help you
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Creating Buttons auto linked to Camera Views
Hi,
Right now I have buttons setup that I manually link to 3D views.
They work fine, but I would like to setup a PDF template file that includes these buttons (such as "camera 1" "top view" etc.) and have these automatically link to the Views created when I import a 3D model.
That way I can delete one model, insert another and the buttons are auto linked to the new file.
Is this possible? Does what I've explained make sense?
I'm pretty new to Javascript, and am willing to have a go - but even knowing if it is possible or not is helpful.
Thanks.Thanks for the quick reply, Dave - that worked perfectly.
We only have one last request that perhaps I can write in here and you can answer - if not, I'll create a new discussion...
I recently found an Adobe .js script (within the "Smooth Camera Rotation" tutorial PDF) that controls the Camera movement within the scene, such as the friction, force etc. so the movement is nice and smooth.
It works well, except it seems to reset to the Default View whenever I attempt to rotate the scene. This results in slightly jumpy usage as the cameras keep changing. ie: I select Top View, then when I rotate the scene, it jumps and starts rotating from the Default Perspective view instead of the Top View.
Is there something I should pull out of the script to remove this function? Or edit to just use the camera from it's current position?
Thanks again. -
Hello everyone,
I am trying to create a calender view for a week using charts with days on x axis and hours on y axis.
I would like to highlight the meetings in any color to give a weekly view. But I am not able to highlight more than one meeting in a single day.
I am totally new to charts. Please advise me what is the best axis and series to be implemented for the case.
Thanks a lot in advance.
This is what I am using
[Bindable]
private var expensesAC:ArrayCollection = new ArrayCollection( [
{ Date: "25-Jul", Open: 40.75, High: 40.75, Low: 40.24, Close:40.31},
{ Date: "26-Jul", Open: 39.98, High: 40.78, Low: 39.97, Close:40.34},
{ Date: "27-Jul", Open: 40.38, High: 40.66, Low: 40, Close:40.63},
{ Date: "28-Jul", Open: 40.49, High: 40.99, Low: 40.3, Close:40.98},
{ Date: "29-Jul", Open: 40.13, High: 40.4, Low: 39.65, Close:39.95},
{ Date: "1-Aug", Open: 39.00, High: 39.50, Low: 38.7, Close:38.6},
{ Date: "2-Aug", Open: 38.68, High: 39.34, Low: 37.75, Close:38.84},
{ Date: "3-Aug", Open: 38.76, High: 38.76, Low: 38.03, Close:38.12},
{ Date: "4-Aug", Open: 37.98, High: 37.98, Low: 36.56, Close:36.69},
{ Date: "5-Aug", Open: 36.61, High: 37, Low: 36.48, Close:36.86} ]);
<mx:CandlestickChart id="candlestickchart"
height="100%"
showDataTipTargets="false"
width="100%"
paddingLeft="5" columnWidthRatio="1"
showDataTips="true"
dataProvider="{expensesAC}" dataTipFunction="dataTipFunction"
>
<mx:verticalAxis>
<mx:LinearAxis id="vaxis" baseAtZero="false" title="Price" direction="inverted"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis id="haxis" categoryField="Date" title="Date"/>
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{haxis}" canDropLabels="true" placement="top"/>
</mx:horizontalAxisRenderers>
<mx:series>
<mx:CandlestickSeries
openField="Low"
highField="Close"
lowField="Low"
closeField="Close"
fill="{up}"
declineFill="{down}"
stroke="{wick}"
boxStroke="{box}" dataProvider="{expensesAC}"
/>
</mx:series>
</mx:CandlestickChart>Why are you using a Chart component to render calendar data? There are some pretty powerful calendar components that are built for this purpose , ours included : Flexicious | Flex Calendar Component - New with Flexicious 3.1
-
How do I change iphone calender view format
How do I change the calender view format to "List View" on my iPhone?
The following shows how: http://www.iphoneincanada.ca/how-to/calendar-list-view-ios7-1/
-
Action links in Narrative View
Dear Experts
Could you pls. let me know , if there is a possibility of incorporating Action links in Narrative view. I can put simple href link but the requirement is to put two three action links to choose from.
RegdsHi svee
I tried the following code , but still not able to dynamically change the url based on my selection value. Here I am creting the below report by passing year prompt and want to pass he same prompt while navigating to a differnet page through href link.
Prefix
<html>
<body>
<div align="left" valign="top">
<div style="width:922px;height:461px;">
<img src="http://hostname:7777/analytics/res/s_blafp/images/eva_history_6.JPG"/>
--</div>
--<div style="width:922px;height:50px;">
--<div style="position:relative;top:-420px;left:780px;"><a id="b" href="http://172.18.18.71:7777/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2Fcfo_dashboard%2FDetail_Reports%2FOp_Revenue_Report" target="blank"></a>
--</div>
---<div style="position:relative;top:-405px;left:805px;"><a id="a" href="http://172.18.18.71:7777/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2Fcfo_dashboard%2F_portal%2FCOGS&Page=page%201&Action=Navigate&col1=%22YEAR%22.%22YEAR%22&val1="@1"" target="blank"></a>
--</div>
--<div style="position:relative;top:-390px;left:805px;"><a id="c" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-380px;left:800px;"><a id="d" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-370px;left:805px;"><a id="e" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-355px;left:795px;"><a id="f" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-342px;left:795px;"><a id="g" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-312px;left:805px;"><a id="h" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-302px;left:815px;"><a id="i" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-292px;left:790px;"><a id="j" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-280px;left:800px;"><a id="k" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-238px;left:815px;"><a id="l" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-225px;left:810px;"><a id="m" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-197px;left:800px;"><a id="n" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-560px;left:430px;"><a id="o" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-470px;left:425px;"><a id="p" href="http://www.google.com" target="blank"></a>
--</div>
---<div style="position:relative;top:-390px;left:607px;"><a id="q" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-300px;left:600px;"><a id="r" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-370px;left:420px;"><a id="s" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-290px;left:310px;"><a id="t" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-420px;left:285px;"><a id="u" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-650px;left:290px;"><a id="v" href="http://www.google.com" target="blank"></a>
--</div>
--<div style="position:relative;top:-585px;left:165px;"><a id="x" href="http://www.google.com" target="blank"></a>
--</div>
--</div>
--</div>
<script type="text/javascript">
var chartDataLabels = new Array();
var chartData = new Array();
var chartDataHidden = new Array();
var t_cell;
function color_cell (text, val) {
t_cell = '<FONT face="Times New Roman" color=';
if (val < 0) {
t_cell = t_cell + "red";
else {
t_cell = t_cell + "blue";
t_cell = t_cell + ' size="1"><B>' + text + ' - ' + val +'</B></FONT>';
return t_cell
Narrative
chartDataLabels.push('@2');
chartData.push('@3');
Postfix
document.getElementById('b').innerHTML = color_cell(chartDataLabels[19],chartData[19]);
document.getElementById('a').innerHTML = color_cell(chartDataLabels[2],chartData[2]);
document.getElementById('c').innerHTML = color_cell(chartDataLabels[21],chartData[21]);
document.getElementById('d').innerHTML = color_cell(chartDataLabels[11],chartData[11]);
document.getElementById('e').innerHTML = color_cell(chartDataLabels[6],chartData[6]);
document.getElementById('f').innerHTML = color_cell(chartDataLabels[8],chartData[8]);
document.getElementById('g').innerHTML = color_cell(chartDataLabels[7],chartData[7]);
document.getElementById('h').innerHTML = color_cell(chartDataLabels[15],chartData[15]);
document.getElementById('i').innerHTML = color_cell(chartDataLabels[1],chartData[1]);
document.getElementById('j').innerHTML = color_cell(chartDataLabels[16],chartData[16]);
document.getElementById('k').innerHTML = color_cell(chartDataLabels[5],chartData[5]);
document.getElementById('l').innerHTML = color_cell(chartDataLabels[0],chartData[0]);
document.getElementById('m').innerHTML = color_cell(chartDataLabels[20],chartData[20]);
document.getElementById('n').innerHTML = color_cell(chartDataLabels[14],chartData[14]);
document.getElementById('o').innerHTML = color_cell(chartDataLabels[12],chartData[12]);
document.getElementById('p').innerHTML = color_cell(chartDataLabels[23],chartData[23]);
document.getElementById('q').innerHTML = color_cell(chartDataLabels[9],chartData[9]);
document.getElementById('r').innerHTML = color_cell(chartDataLabels[10],chartData[10]);
document.getElementById('s').innerHTML = color_cell(chartDataLabels[24],chartData[24]);
document.getElementById('t').innerHTML = color_cell(chartDataLabels[4],chartData[4]);
document.getElementById('u').innerHTML = color_cell(chartDataLabels[3],chartData[3]);
document.getElementById('v').innerHTML = color_cell(chartDataLabels[18],chartData[18]);
document.getElementById('x').innerHTML = color_cell(chartDataLabels[13],chartData[13]);
</SCRIPT>
</body>
</html>
Edited by: 894860 on Aug 2, 2012 2:54 AM -
Creating a link to specific view in a submitted InfoPath form via C#
Hello,
I have an InfoPath form that is submitted by a user, then the c# executes logic on a button click which is to send approver a link to a approver view within the submitted form(my company is
not allowing use of Work flows).
I have a problem creating this link namely because SharePoint changes the patter of a string that is used in creating a form name(Username and now() function characters change
in URL).
Is there an easy way to reference an url to a view in Infopath form via C#
Thank you.
Nemanja
Nemnaja SovicBrian,
You can use the following javascript syntax to open a document on local drive:
xfa.host.gotoURL("file:///C:/yourdocument.pdf",1); -
View Links for Programmatic View Objects
Hi All,
I created a read only VO called MyVO based on a sql query.
I created 2 programmatic view objects, MasterView and ChildView.
In a custom method in AMImpl class ,I iterate through this MyVO resultset and get the rows in a Row object.
Based on some attributes values of the Row, I populate both master and child View Objects.
I have created a view link between Master and Child Programmatic View Objects and have exposed them in AM.
Now I run the AM, and run the method exposed in client interface.
Now I click on my master and child programmatic views.
I see that the rows are populated in both of these programmatic VOs.
But when I click on viewlink which I have exposed under master, it doesnt show me any
record for child.
This is my method of AMImpl which is exposed in AM client interface.
public void constructLines(){
ViewObject vo= this.getMyVO1();
ViewObject master=this.getTransientVO1();
ViewObject child=this.getTransientLineVO1();
Row r,masterRow,childRow;
int count=0;
while(vo.hasNext()){
++count;
r=vo.next();
masterRow = master.createRow();
if(r.getAttribute("QuoteHeaderId")!=null)
masterRow.setAttribute("QuoteHeaderId",
r.getAttribute("QuoteHeaderId").toString());
if(r.getAttribute("QuoteLineId")!=null)
masterRow.setAttribute("QuoteLineId",
r.getAttribute("QuoteLineId").toString());
if(r.getAttribute("LineNumber")!=null)
masterRow.setAttribute("LineNumber",
r.getAttribute("LineNumber").toString());
master.insertRow(masterRow);
childRow= child.createRow();
if(r.getAttribute("RefLineId")!=null)
childRow.setAttribute("RefLineId",
r.getAttribute("QuoteLineId").toString());
if(r.getAttribute("QuoteHeaderId")!=null)
childRow.setAttribute("QuoteHeaderId",
r.getAttribute("QuoteHeaderId").toString());
child.insertRow(childRow);
This is stopping me from my development progress.
Any suggestion to solve this will be of great help.
Thanks,
PrabhanjanHi..
have you define relationship correctly between masterVO and childVO.sometime there may be the problem.
Maybe you are looking for
-
Fm CALL FUNCTION 'GUI_DOWNLOAD'
hi experts: How to add a field name line in fm 'GUI_DOWNLOAD'? allen
-
How to set default values in dialog programming
hi gurus can anyone suggest me how to set default values in dialog programming thanks®ards kals.
-
End of stream or off-line message?
When you stop live streaming, is there a way to have the client player present an end of stream or off-line message? Right now when I stop streaming, the client plays the last part of the stream and then just buffers endlessly.
-
How do I get songs purchased on itunes to work on my new computer??
My laptop recently crashed, and luckily I had my songs backed up on an external hard drive. When I transferred my library to my new computer, the songs purchased on itunes won't sync with the ipod. How can I fix this??
-
Blocking application input without a modal dialog
Hi, Is it possible to block all input to a Swing application while still having the EDT running? I'd want the effect of opening a modal dialog without showing the dialog itself. This is required in order to wait for a SwingWorker thread to execute. T