Displaying a field in a column with a fallback option to another field - dynamics-crm-2013

I'm creating a view for Contact entity and the issue is that some of their sellers have entered information on Mobile Phone field, while others used Business Phone field.
They'll probably continues to do so. There's no point copying the values as they're entered and both fields are needed.
The simplest solution is to display two columns in the view. However, that occupies the precious width on the form.
I wonder if it's possible to display a column in a view so that it gets its information from field Ahaa and if that happens to be empty, it falls back to displaying the field Buhu. Is it possible and if so - how?

There's no supported way to add conditional logic to a view definition such that it would show or hide columns. The usual way to do this is to store the value of whichever field is populated in third field. Populate this in a plugin and show this only in the view.

Related

How Do I Expand A Cell in MUI-Datatables to display additional content?

I want a user to be able to click a row in the MUI-Datatable, so they can see additional content. The current renderExpandableRow function has the right styling, but I don't want a new row. I want the cell in the first column to show additional data. Is there a way to do this?
Note: I'm also going to need buttons that will expand all/collapse all, so I need a solution flexible enough to do that.
I found a solution to my question.
I made the first column's content a Button using customBodyRender. The column with expandable content became the second column. This column has a customBodyRender with a Collapse component. I store in my component's state all ids of my data objects and whether or not they are expanded. When the Button is clicked, my component's state is updated, which in turn changes whether or not the Collapse component is open.
I also used customToolbar in the table options to generate an expand all/collapse all button, which just sets the state of all rows to expanded/collapsed.

MS-Access form, want text to wrap without truncation (as in reports)

I have a form that shows a list. One of the fields is of type text, with max. length of 255. This field appears truncated on the form. The Can Grow property is set to 'Yes'.
I want the height to be dynamically adjusted in each row based on the number of characters in the current filed. This happens in reports but not in form fields in this case.
I tried to compare the properties in the form with the report but could not spot a difference.
How can I do that please? Thx.
No chance (scnr), This property doesn't work in form view, only if the form is printed.
TextBox.CanGrow Property
This property affects the display of form sections and controls only when the form is printed or previewed, not when the form is displayed in Form view, Datasheet view, or Design view.
Edit
You can take a look at http://lebans.com/cangrow.htm
Stephen Lebans is an API wizard, you will find lots of complicated code in there, but it may do what you want. But you'll have to decide if it's worth the additional code and potential instabilities.

ListGrid column change event

I have requirement to create a custom ListGrid, where user can show, hide, filter a column. also can change width and reOrder column and even color it and sort direction.
I know that list grid provide all this facility to user.
But I have to save all these changes and user will get this things back when they login again.
Is there any event which record all changes??
And how to get all this data from listGrid??
​Thank you.
You could use ListGrid.viewStateChanged():
Notification method executed whenever the viewState of this grid
changes. View state is accessible via ListGrid.getViewState(), and
contains field state information, sort information, selection
information, hiliting information and grouping information.

SSRS report, is there a way to switch templates based on configuration?

I have been googling for a good description of this but am not having much luck. I am pretty new to SSRS reports and I am probably not using the correct terminology here. If someone could point me towards an article that describes this that would suffice.
Basically I want to pull a bit into my report, and based on the value of that bit (or maybe a varchar) I want to render an address in different formats, or add/remove some sections completely form the report. I suspect this is basic functionality but am having trouble finding an example. Any help would be appreciated!
Thanks!
If you have a table/matrix the best place to put stuff like this is in columns that are outside of the detail or any groups at the top of the table. You can merge all the cells and add rectangles to add specific formatting. The neat part about using header columns is they can be hidden and the space used will not be rendered.
Say you have a table and Row1 and Row2 contain different formatting of the same data. If you have a report parameter named ShowFormat1 then you can optionally hide/show the correct row with formatting.
Click Row one and Set its Hidden property to =!Parameters!ShowFormat1.Value
Click Row two and Set its Hidden property to =Parameters!ShowFormat1.Value
The same concept can be applied to all elements if you are not using a table or matrix. Non-repeating controls, Rectangle or Image for example, can be hidden but the space used will still be rendered.

Hide specific item in lookup column

My form has lookup column which gets data from another list but I want to remove/hide particular item in the lookup column.
For example; My look up columns gets A;B;C;D;E entries from another list now I don't want to show E in my lookup column .
I can accomplish this if I customize the form in InfoPath but my list(which has lookp column) must be used as "Data sheet view" and InfoPath customization don't work on data sheet view.
Tried using JQuery but didn't work.
Any suggestions ?
Obviously you should never be using jQuery for security related practices. What if a user has javascript turned off?
This question seems to cry out of item level permissions. That said, item level permissions is generally considered a last resort at best type of practice, so I would suggest you first consider whether or not item E could be moved into a different list entirely, which is only viewable by certain parties.