Increase width of systablelookup to remove horizontal scroll bar (out of 3 columns only 2 are shown) - Dynamics AX 2012 - width

Googled a lot on this but didn't find any solution. Here is the problem:
I've created a lookup using systablelookup. The lookup is working fine and is returning the selected field. The problem is with the number of columns shown on dropping the dropdown. I've added 3 columns (Col1, Col2, Col3), but the lookup shows 2 columns col1 and col2 with a horizontal scroll bar. The col3 appears only when you scroll using horizontal scroll bar.
Please suggest solution to remove horizontal scroll bar from systablelookup.
Regards,
Maninder

The way SysTableLookup works is it dynamically builds the controls. You can see how it does this in \Classes\SysTableLookupBase\formRun
To accomplish what you want, you need to extend the class SysTableLookup and override buildGrid or buildControlsFinal or some other method and through code make the form changes you want.

Related

Hiding a cross tab node in Cognos 11

I have a cross tab as in the below picture. I need to hide Col4 in it. When I give box type = none the cross tab node (col5) moves to col4. I tried the below solution but couldn't but still I have this issue.
Steps I followed.
Unlock the button and click on col4 text and removed it.
Changed the padding to 0
Ran in Excel and got that col4 row as well.
Col4 is not a column. It's a value in your data. What you are asking is the same as hiding a row (or group of rows) from a list. Add a filter to remove that value from your output.
Using generic object names...
[Namespace].[Query Subject].[Query Item] <> 'Col4'

Tibco SpotFire - Line chart data columns linked to itemized selection list

I'm new to Tibco SpotFire, so please forgive any mistakes in terminology, etc.
I have a line chart with two columns from the data table selected to be shown on the y-axis. I would like to make an itemized menu where you can select one item at a time, such that which two data columns are shown on the y-axis is a function of which item in the itemized menu is chosen.
For example, let's say my data table column names are Col_1, Col_2, Col_3, Col_4, Col_5, and Col_6. I want to make an itemized selection menu with items A, B, and C, such that...
If A is selected, Col_1 and Col_2 are the data columns used by the y-axis.
If B is selected, Col_3 and Col_4 are the data columns used by the y-axis.
If C is selected, Col_5 and Col_6 are the data columns used by the y-axis.
How can I accomplish this? Currently, I know neither how to make an itemized selection menu at all, nor how to link the y-axis data columns to it.
Thanks for any help.
P.S. I'm betting there is a technical name for what I'm calling an "itemized selection menu" above. If someone knows what it is, please let me know and I will edit this post accordingly.
You'll need a text box and a line chart. In the text box, add a Property Control (Drop-down list). You'll want to create a new document property that looks something like this:
After that, you'll need to tie in the Document Property to your plot. Some code like the following should achieve what you are looking for:
case when DocumentProperty("Selector")="Col1Col2" then Sum([X])
when DocumentProperty("Selector")="Col3Col4" then Sum([Y])
when DocumentProperty("Selector")="Col5Col6" then Sum([Z])
end,
case when DocumentProperty("Selector")="Col1Col2" then Sum([XX])
when DocumentProperty("Selector")="Col3Col4" then Sum([YY])
when DocumentProperty("Selector")="Col5Col6" then Sum([ZZ])
end
Where column [X] and [XX] would be tied to "Col1Col2" and so on. Now, selecting "A" from the drop down in the text box will plot [X] and [XX] on your plot.

Excel - Lookup multiple values in unknown columns and create bar chart out of it

I am trying to get the following thing to work in Excel. I have a list of values out of which I want to create a bar chart. Easy thing normally, but in this special case I do not know how to get it to work with references that change.
I have the data structured as follows:
Name Site Value
---------------------
A X 1
---------------------
B Y 2
---------------------
G Z 3
---------------------
D Z 0
---------------------
F X 1
---------------------
Q Y 2
---------------------
From the information available in this array I want to create three different bar charts, one per site. The problem is that I don't know the absolute cell references, as the data is inserted by colleagues. In addition, the number of datapoints to display is not known either. In case there a three different entries for one site, I want to display a bar chart with these three values, the names of the entries should be used as the label for the bars in the chart. In case there are four different entries, I want to display a bar chart with four bars, etc... This whole table should be dynamic, so in case that a new entry is added to the range with the corresponding site, it should be automatically included in the bar chart.
I already tried to find a workaround for this and read about dynamic charts and lookup functions in excel, but nothing did the trick so far.
If you have any idea, please let me know.
Thanks in advance :)
What I would suggest is:
Create 3 Pivot Tables. The data source for each of them would be: A:C (the whole columns). This way, when an entry is added, you just update the tables and they get in.
Column "Site" should be added as a filter, then on one Pivot Table you would filter only for site X, another for site Y and the other for site Z.
Now, "Name" go on Rows and Value go on Values.
Now, for each Pivot Table you add a bar chart.
I think this solves your issue.
Here'a a screen showing it. My excel is in PT-BR but I think you can get the general idea.
Edit: you can also put the same scale on all 3 charts, so you can easily compare the values.
Thanks to both of you guys and sorry for the late reply. In the end I got it working with pivot tables, though I had to fiddle a bit with the pivot table wizard, as I wanted to display values from multiple sheets. Thanks again and best regards :)

Excel graph hide data label if = #N/A

In Excel, I am generating a bar chart from cells using the N/A() function (=IF(value=0,NA(),value)).
I precise I cannot use "" instead of n/a() and I must use bar graphs.
My problem is I cannot prevent data labels from showing #N/A for N/A cells...
I tried many formats for the data label, using this definition:
positive;negative;zero;text.
For example this one: 0;-0;;
It prevents well any text, or 0 value to be displayed in data labels... But #N/A remains.
I have read many topics on various forums and sites without success.
Could you please help on this ?
You can filter the columns in your data series by right clicking on the column and navigating to the "Select Data" option. From there you can un-check the data from the horizontal axis that you don't want to be displayed.

How to create Table Layout of same size column

I am new to android. I want to create a layout,
Having Linear layout --> consist of two text view--> than table view.
*Table view --> two columns* having equal size.
1**st column having *huge data. so it should be word wrap and scroll vertically.
2*nd column contains a **image.
How can i do it. As i tried but i am not able to create 2 columns of equal size, 1st having vertical scroll bar...
Thank You.
Use the property as :
android:streachColumn="*";
And
android:weight="*";
Property. This will help you.

Resources