I have used the answer to Woody's question at
Is there a easy way to customize Acumatica build-in dropdown list? to customize several dropdown lists. Thank you for the guidance with that one. I want to further customize a different drop-down list based on the Class ID and the Status of an Acumatica Case. I am not sure at all how to achieve this. Can anyone provide advice please?
If you are able to write proper 'Search' BQL to get the result, you can use the PXSelector attribute. If you use 'Current' it will use the the current documents field value. So as per your case, you can use the current ClassID and Status to dynamically populate your selector.
Eg:
[PXSelector(typeof(Search<DiscountSequence.discountSequenceID,
Where<DiscountSequence.discountID, Equal<Current<DiscountSequence.discountID>>>>))]
Hope this helps.
I propose you to consider customizable selector, with which you can completely control all your data which will be displayed. Here is example of implementation.
Related
I have a field in a Database that is set as a varchar(1), and it is bound to a non editable textbox in acumatica. I would like it so that when the value of the field is equal to 'A', the value displayed in the textbox in Acumatica is something longer such as 'Apple'. The user will not be editing the textbox so I do not need this to work in reverse.
From my research, I see that LabelListAttribute might be the attribute I am looking for. Can anyone give me an example on how one creates a new 'LabelProviderType' or 'LabelValuePair' to feed into this attribute.
Additionally, am I just better off in copying the combobox example from the T100 class (Page 76) and disabling it? I would rather this work within a textbox
Thanks
For the use case you are describing you should indeed use a PXDropDown control bounded to a DAC field decorated with PXStringList attribute as described in T100 Configuring a Combo Box example.
I know there are threads out there about making changes to the refinement panel and they have so far been very helpful but now I have a question that I need a bit more assistance with.
In the search results, would there be a way to add a filter to the refinement planel that would filter based on a tag I have used in a column in the libray?
For example, let's say I have three committees that meet every week and I have minutes for all of them. In my search results, I may want to look up a keyword discussed, but only interested in a certain committee. This would have already been identified in a column in the library.
How do i do this? I believe it has something to do with mapped properties but I need some steps from someone willing to help! TY :)
First you need to add a new mapped property in your search service application and map it to the crawled property that contains the field you want to filter by.
You can then refer to this mapped property when you edit you refinement panel on your search results page.
To do this, edit your search results page and then edit the refinement panel web part. Under Refinement section you need to edit the Filter Category Definition XML and then save your page.
Using a viewPanel, how can we display a reponse entry the way it is displayed in the Notes client? Or in other words: is there a way to build some kind of colspan for specific columns based on the current entry's document type?
I made some code a while back to make the categorized views behave more like Notes:
http://dontpanic82.blogspot.no/2010/10/xpages-make-categorized-views-behave.html
Here's another solution from Stephan Wissel:
http://www.wissel.net/blog/d6plinks/SHWL-86V67E
I have a custom view of a list that doesn't include the "Title" field, I need to associate the display from with another spfield, how do I go about this?
Thanks
Achieved by setting the LinkToItemAllowed and ListItemMenuAllowed properties of the spfield to SPField.ListItemMenuState.Required;
Although not the nicest but a simple SPD workflow that populates a custom column of type Hyperlink/Picture with the DisplayForm URL. And then you can display this column into your respective view.
However, what's the reason you want to do this? You don't have the value in title? You can use the Title(linked to item) instead of Title(linked to Edit Menu). You may want to verify the names though as what I have put in terms of paranthesis might not be exact.
I have modified the NewForm.aspx page for a SharePoint list, and am changing the visibility of certain div's based on the value of radio input buttons. I'd like these values to be passed to a list field as well. I have a couple of questions regarding this:
1) How can I pass the Yes/No value from the radio input to a SharePoint list field?
2) Can I drop a Yes/No field from the list on the form and use that to control the visibility of my div's?
Thanks.
Since you're already using JavaScript, on your NewForm.aspx you could probably use SPUtility.js; full disclosure, this is an open source library I maintain.
Both of the options you mention are possible. I haven't added support for Yes/No fields (as of v0.3) but you could probably do something like this.
Create a single line of text field (will hold your value in the list). Lets call it "Text Field".
Based on our radio button input, call SPUtility to set the field's value:
SPUtility.GetSPField('Text Field').SetValue('Hello world!');
You could also probably hide "Text Field" so they can't see the value change.
Or... if you wanted to go with option #2, you could help me add support for Yes/No fields. :)
Hopefully this helps.
You can use our Smart List Pro product to modify your list form. We have various capabilities, such as showing/hiding fields depending on values of other fields and user identity, tabbed interface and much much more.