How to implement PXFormulaCombo or Formula Builder control? - acumatica

As per title. I need to customise AM207500 - Configuration Maintenance screen to add another custom field that will allow me to enter formula similar to QtyRequired field.
I got as far as displaying the correct dialog. But its missing the fields selection.
I believe I'm missing the OnRootFieldsNeeded property. But every time I try to edit the ASPX and manually add this. Its being cleared by Acumatica.
Am I in the right direction ? And how do I force this property in my ASPX ?
TIA

A bit unconventional, but have you tried updating the ASPX page on the custom pages and then clicking on the files section to update the file? This will then ensure the file update occurs before publish and hold the configuration

Related

How to hide URL Selector content tab?

I am creating a custom webpart using the Url Selector from kentico. I want the user to select content just from the Media Library. I went to form controls -> Url Selector -> Properties -> Dialogs_Content_Hide -> Default Value -> Yes and it still showing it in the Web Part. If I select the Dialogs_Web_Hide, Dialogs_Libraries_Hide and select the yes option in the default values, they hide, all except the Content_Dialogs.
Is this a bug? Or its something wrong?
Here is an example of the tabs
First set the form controls properties back to the way they were. If you don't, it will cause all kinds of problems later on.
Secondly, when you create the property in the webpart in the UI, select the URL selector form control for your text fields control. The scroll down just a bit and under the Editing Control Settings you'll see an "Configure" link. Click it. In there you will be able to tell the form control what tabs you want to enable and disable.
To add to Brenden's answer; if this is something you need to do a lot for your current build, then I'd also suggest making a copy of the Url selector form control and customize the properties as you originally mentioned. This way, you leave the default control in place for the system and have a control tailored to your needs. I've done this just now to check with a new form control that I called Media URL selector. Do make sure that you select the same source file as the original control in the Cloned form control file name property - Kentico by default will try to locate a new file called <original filename>_1.ascx. The reason for this is that admin section of your site also makes use of this control, so you may cause a nasty side effect somewhere else in the system.
As for why the settings had no effect; these are the default values you are setting. If you already have the form control in use, then the default setting would have been applied as they originally were. If you find one of the fields in question, you can change the control type to Text box, click Save, and then reassign it to Media URL selector.

Kentico clone and customize cms.file

Here's what I'm trying to do. When a user uploads a file, i need them to make one of three options. I'll then create a transformation to link to the file, with the option they selected determining the which icon.
I started with cloning the cms.file, and then created the new field i needed for the options. I then uploaded a file using that page type. I don't see my option list (Drop-down list) on the upload screen, or after the file has been saved.
I'm been playing with the Layout but that doesn't seem to help. What am I missing here?
You could create a simple page type that has a file upload field, that would solve your issue, and also you could include your extra field or fields in your new page type.
I'm not sure we have enough information to debug why your custom page type might not be showing the field you added, but a possible workaround: depending on what you are basing the icon on, it may work to just use different icons based on the file type? Kentico even has a method you can use to get a file icon based on the extension:
<%# GetFileIcon(Eval("FileExtension")) %>
Otherwise, maybe you can include some more information about your custom page type such as a screen shot of the fields and of the form tab for that page type. Is the "icon" field you added simply not showing up in the form?

Command Not Handled Exception

I'm new to Domino Designer. I'm trying to modify an existing application which is running on a remote server. I create a blank xPage and view in browser and it works. I add a label and view in browser and it works. I add a combo box and setup a data source for my xPage. The data source is in the current application and I'm using a view. I setup my combo to point to that data source and specify BindTo value. I view it in browser and I get Error 500 "HTTP Web Server: Command Not Handled Exception" I can open the view that I've used and see all the data in the view. I can even add, edit, and delete from the view.
Ideas... Thnxs in advance.
Additional Info. I've added a "View" from "Container Controls" and used the same data source and the same view and it also works in the browser.
The error being printed is:
javax.faces.el.PropertyNotFoundException: Error getting property 'CompanyName' from bean of type lotus.domino.local.View
com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:119)
com.ibm.xsp.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:144)
com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:182)
com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:163)
com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.j‌​ava:257)
com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:150) ....
This was already answered in the comments, but I want to write a better answer.
The problem in this case is that a view data source is being used for editing a document. Directly, this is not a possibility, though there are a few great ways to get around this. The first way, and my favorite, is to use an inline form. I think the Extension Library Demo database offers a few great examples of how to go about doing this. One way is to use a tooltip dialog. Another way is an inline form. A repeater is used and for every row in the view, a hidden panel can be made which contains the document data source and all field which are required to be changeable. By clicking on a button or link, the panel is made visible. This is my favorite variant because it is simple, quick, and generally looks great.
Another way to go about this is to have a view data source only, but use scripts to retrieve the document and set the values in the background and then save and release. It all depends on what you are trying to achieve.
My main recommendation is to look at the ExtLib demo and take a look at what they are doing there.

AllItems listview web page

I am trying to create a custom default view for a list. I made a copy of my list's AllItems.aspx page, and renamed it, and inserted a CEWP onto the page, as I would like to use jQuery to display a color in a column field similar to http://www.sharepointkings.com/2009/04/sharepoint-calculated-column-and-jquery.html. The issue I am having is that when I save my changes and check in the new page, SharePoint removes all of the web parts that were on my page.
Why is this happening, and how do I stop it from removing my webparts?
UPDATE: Still not definitely sure why, but I noted that it stopped doing this when I changed the filename to something different, instead of the default copied filename which I had been using before.
Rather than using a content editory query web part to change the color of an item, have you considered using conditional formatting which you can do via SharePoint designer?
Try this article for steps .. but I will also suggest you drop the idea of CEWP and use conditional formatting.
http://snahta.blogspot.com/2010/08/listview-from-other-site-collection.html

Content administer page

Is it possible on the content page to publish pages with checkbox, instead of the update options on the top, is there a module, or something to be configurated?
My main goal would be to change in the edit of a page the cck fields settings by taxomony but it doesn't look possible. So instead I'm making different pages to point on a same url.
So every week I can't change a specific url content by publishing and unpublishing pages. But with the update options you have to select one then choose publish and then update, after that choose another page by clicking his checkbox, choose unpublish and then update, is there an easier way.
Thank you.
I believe you are looking for the manager module
http://drupal.org/project/manager
Here is a screenshot of what it does:

Resources