I must figure out that how can i create a component exactly as tfrxMemoView from fastReport with all properties except the database related ones?
Is there any solution to create an inherited component from tfrxMemoView or any similar component does exists?
See FR Developer's manual "Writing Custom Report Components" chapter
Also you can inherite your new component from TfrxMemoView and hide some properties like frxHideProperties(TfrxView, 'DataSetName;BrushStyle;URL');
uses frxDsgnIntf;
TfrxMemoView1 = class(TfrxCustomMemoView)
published
property AutoWidth;
property AllowExpressions;
property AllowHTMLTags;
property BrushStyle;
property CharSpacing;
property Clipped;
property Color;
//property DataField;
//property DataSet;
property DataSetName;
property DisplayFormat;
property ExpressionDelimiters;
property FlowTo;
property Font;
property Frame;
property FillType;
property Fill;
property GapX;
property GapY;
property HAlign;
property HideZeros;
property Highlight;
property LineSpacing;
property Memo;
property ParagraphGap;
property ParentFont;
property Rotation;
property RTLReading;
property Style;
property SuppressRepeated;
property Underlines;
property UseDefaultCharset;
property WordBreak;
property WordWrap;
property Wysiwyg;
property VAlign;
end;
initialization
frxObjects.RegisterObject1(TfrxMemoView1, nil, '', '', 0, 2, [ctReport, ctData]);
Related
I am adding extensions to a property using below code snippet.
Properties props = objData.getProperties();
Map<String, PropertyData<?>> properties = props.getProperties();
for (String prop : properties.keySet()) {
PropertyData propData = properties.get(prop);
propData.setExtensions(extensions);
}
But at the client end, I am not reveiving these extensions.
Property prop = cmisObj.getProperty("cmis:name");
List<CmisExtensionElement> extensions = prop.getExtensions();
I am getting null, whenever I called the getExtensions() method on a property. Am I doing anything wrong? Is there any other way to add extensions to a cmis property while sending response from server?
In Java I have code:
View view = database.getView("XXX");
ViewEntryCollection result = view.getAllEntriesByKey(vec, true);
result.FTSearch(query);
return result;
But its return ViewEntryCollection and i can't use entry.ColumnName in repeater, only entry.getColumnValues and entry.getDocument().getItemValue()
Best way for me - it is use dominoView as Data Source with parameters keys and search, but if set property search, then property keys is ignored
May be you know other way?
My list view has a string and a delete button(this is with k-delete-button class). When I press delete I need to call a special method on my viewModel. and this should not update my datasource..
I'm using my own "remove" method as below on the kendo listview.
m("div" , {
id:"listView",
"data-role": "listview",
"data-template":"template",
selectable: "multiple",
"data-bind":"source: items, events: {remove: onItemRemove} ",
})
on my view Model :
onItemRemove = (e:any) => {this.removeWavelegnthFromList(e.model); }
I'm using e.model to get the value corresponding to the item that I'm trying to delete. But this is set to a wrong value. It doesn't return the value I've selected for delete.
I couldnt use e.sender.select() method to get my value and it throw "Uncaught TypeError: Cannot read property 'value' of undefined(…)" error.
please let me know if I'm doing anything wrong.
This code is in the beforePageLoadEvent of an xPage:
var aURL = eStarService.fetchDocLibraryDocumentURL( sessionScope.get( "PropertyNo" ), "Budget" );
sessionScope.put( "docURL",aURL );
var docUNID = eStarService.fetchDocLibraryDocumentUNID( sessionScope.get( "PropertyNo" ), "Architectural Change Form" );
sessionScope.put( "docUNID",docUNID );
It uses my eStarService bean to take a couple of parameters and fetch a document and get the url so I can open that document . I can use this if I set the value of this method as a scope variable and use that scope variable in the custom contrl that contains the navigator code.
I would much prefer to call the method from my bean while in the custom control rather than rely on scope variables however when I access my bean in the custom control it throws an error about the class not being defined. Yet it works fine inthe parent xPage.
thoughts?
Use custom properties computed once with $ not #
"Cannot save all of the property settings for this Web Part. The
default namespace "http://schemas.microsoft.com/WebPart/v2" is a
reserved namespace for base Web Part properties. Custom Web Part
properties require a unique namespace (specified through an
XmlElementAttribute on the property, or an XmlRootAttribute on the
class)."
No where do I get help regarding this error.
This is when adding custom properties to my webpart, why cant I save the properties when I edit my webpart and click on save/apply? (then I get that error)
Code--
[DefaultProperty("Text"), ToolboxData("<{0}:CustomPropertyWebPart runat=server></{0}:CustomPropertyWebPart>"),
XmlRoot(Namespace = "ExecuteStoreProc")]
public class CustomPropertyWebPart : Microsoft.SharePoint.WebPartPages.WebPart
{
const string c_MyStringDefault = "Sample String";
}
// Create a custom category in the property sheet.
[Category("Custom Properties")]
// Assign the default value.
[DefaultValue(c_MyStringDefault)]
// Property is available in both Personalization
// and Customization mode.
[WebPartStorage(Storage.Personal)]
// The caption that appears in the property sheet.
[FriendlyNameAttribute("Custom String")]
// The tool tip that appears when pausing the mouse pointer over
// the friendly name in the property pane.
[Description("Type a string value.")]
// Display the property in the property pane.
[Browsable(true)]
[XmlElement(ElementName = "MyString")]
// The accessor for this property.
public string MyString
{
get
{
return _myString;
}
set
{
_myString = value;
}
}
Can you try going to Site Settings > Galleries > Web Part > New
In that window, put a checkbox next to the webpart you are trying to add, then click Populate
If its populate correctly then it is working otherwise there is some error in the webpart.
Return to your webpage where you want to add the webpart, try to add the webpart by selecting it in the gallery.
If this works (you were able to add it to your page), you can open the webpart added in your webpart gallery (Site Settings > Galleries > Web Part) and compare it to your own .dwp file to see what you did wrong.
Hope this helps