Problem facing with sorting the hyperlink column in Infragistic ultrawebgrid - infragistics

I am facing an issue for sorting the hyperlink column in infragistic ultra webgrid. I'm using server side sort method to sort the column - GD1_sortcolumn and passing the asc, desc and other parameters accordingly bind the data in ultra webgrid it's working fine here and sorting is also working fine with Name column. For example I have passed the Name column and asc parameter then it calls sp with these parameters. I got the datatable with sorted values and bind the datatable with grid successfully.
The problems comes in the GD1_InitializeRow method when the hyperlink is created. Please find the below code:
private void GD1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
{
if (!(e.Row.Cells.FromKey("AgentName").Value.Equals(" ")))
{
e.Row.Cells.FromKey("Name").Text = "<A Href=\"javascript:AgentDetails('" + e.Row.Cells.FromKey("AgentId") + "','" + agentAcctID + "')\" class='GridAnchor'> " + e.Row.Cells.FromKey("AgentName").Text + "</a>";
}
}
In the above code I had passed the two parameters(agentid and accountid) in the JavaScript function. While binding the hyperlink column in above function. it's sorting the grid data with agentid asc in hyperlink column instead of showing the sort column with name asc.

you can track the discussion frin IG's official forum post.

Related

Check multiple columns and return to cell from other multiple columns

So I've added a SS of what i'm trying to do.
I need to check if Value(Col B) is Value3 and Cat (Col C) is Cat4
than fill corresponding cell (K5) under Cat/Vol table with Result +
(Number). In this case K5 should be filled with Result1(13).
Whenever a new row added under Incoming Data Table, Cat/Vol table
should also be updated with the new Result + Number. So incoming data table is dynamic and will be updated with rows only.
For instance if B11 is Value2 and C11 is Cat5 than "I4" should be
updated with the new Result and Number.
I tried placing IF and IF AND + REGEXTRACT formulas under each cell of Cat/Vol Table without anyluck. Thanks in advance.
My answer is not the most elegant but it was quick.
The heart of this formula is vlookup that searches using keys of 2 merged cells:
=ifna(ArrayFormula(vlookup($G2&H$1,{arrayformula($B$2:$B&$C$2:$C),$D$2:$E},2,false))
&"("&ArrayFormula(vlookup($G2&H$1,{arrayformula($B$2:$B&$C$2:$C),$D$2:$E},3,false))&")")
It's then copied to all the cells of new table.
Working solution is here:
https://docs.google.com/spreadsheets/d/1qbIg9nNfaOwQtSbk8R8-NkT_6cOy3AKr3Xafm72SsNI/copy

IMPORTRANGE and SUM of column show 0

I have a workbook that is importing data from another workbook.
It is pulling all the data in just fine using
=query(importrange("1iY25u07bWHgEYywGmO3S9QTTQsuHOANQBysL9zg7CGI","DATA!A2:AD5000"), "select * where Col30 <> '' and Col30 = 'District Manny'")
The issue is that in Column AB I have Payments displaying and they show up fine in the sheet. But when I make another sheet to show totals it just shows 0.
=SUM(filter(DATA!AB:AB,DATA!A:A=A16))
If I take out the SUM from above it shows all the values that match the criteria. I want to sum those values not show all values. The bizarre part is that in column AA I have similar values that work perfectly with the above formula.
The only difference is in the original sheet the AB column looks like this
=if(isblank(Z8)," ",Z8-AA8)
Am I missing something big here?
it's a formatting issue caused by " " in =IF(ISBLANK(Z8), " ", Z8-AA8)
you can fix it directly there like:
=IF(ISBLANK(Z8), , Z8-AA8)
or use SUMPRODUCT instead of SUM like:
=SUMPRODUCT(FILTER(DATA!AB:AB, DATA!A:A=A16))

How can I ouput the values of a column (values() function) as a list in DAX for Power BI?

I use Power BI to create reports and visuals for large enterprise clients.
I have an interesting request from one of my clients: they would like to be able to see a summary of all filters that are applied to a given report. I used the ISFILTERED() function to create a card visual that lists the dimensions that are filtered, but they would like to be able to see which values are being shown. This works just fine when they have sliced or filtered for just one value, but how can I show when more than one is selected? My DAX is below:
Applied Filters =
var myvalues = VALUES(mytable[dimension_column])
return
IF(ISFILTERED(mytable[dimension_column]) = FALSE(),
"Not filtered",
"Column Name:" & UNICHAR(10) & mylist)
When only one value is selected in the slicer, the output is:
Column Name:
Selected Value
Obviously, when more than one value is selected in the slicer, variable mylist will have more than one value and the function fails. My question is, how can I convert the column myvalue to a list in DAX, so I can output each and every value?
What I want to get is:
Column Name:
Selected Value1,
Selected Value2,
etc.
Thank you!
One possibility is to concatenate all the values into a single string.
For example, you'd replace mylist with the string
CONCATENATEX(VALUES(mytable[dimension_column]), mytable[dimension_column], UNICHAR(10))
You're really only returning a single value for the measure, but it looks like a column.
Another approach is, instead of using a card, to simply create a table visual that just has mytable[dimension_column] for the values. This table will automatically filter as you adust slicers.

Oracle-apex dynamic list of values

I want to make a select list in apex in which when i select any number from select list then it displays diffrent column table for example when i select 1 then it display (bags) when select 2 it displays (trousers)...
I hope I understand your question right.
For a select list you need to create a list of values. There you have to fill two columns, the Display Value Column and the Return Value Column.
Like the label says, the Display Column is for displaying (like trousers, bags) and the return value returns another value (like 2, 1) to the database. On the database it won't be saved as trousers or bags, it will be saved as 2 and 1.
Hope this helped you.

APEX dynamic tabular form field types

We are populating a subregion of a page with an Iframe (call to another page) with data for a questionnaire.
We have PAGE ITEM variables (:P37_... populated by query) that contain table values for P37_QUESTION_DESCRIPTION and P37_RESPONSE_TYPE.
The sub page used in the region (:P28_...) assigns report attributes for each column... where We populated the question text in the P28_QUESTION_DESC and a Y/N Select List defined list of values in the P28_RESPONSE_DESC_DISPLAY column. This works fine.
Now, the P37_RESPONSE_TYPE can more than just this Y/N Select List. It could be TEXTAREA, PICKLIST, DATE...
How can we define the :P28_RESPONSE_DESC_DISPLAY column dynamically to be any number of user input field types (based on the value in :P37_REPSONSE_TYPE?)
This was solved by using a non-tabular form report generated by query using apex.item functions. But is has left me with another problem. Here's the query:
select
apex_item.hidden(31,CASE_QUEST_DTL_ID) CASE_QUEST_DTL_ID,
apex_item.hidden(32,CASE_MGMT_BASE_ID) CASE_MGMT_BASE_ID,
apex_item.display_and_save(33,to_number(question_seq_no)) QUESTION_SEQ_NO,
apex_item.display_and_save(34,question_desc) QUESTION_DESC,
case when response_type = 'PICKLIST-YESNO' then apex_item.select_list_from_lov(35,response_desc,'YES_NO_SELECTLIST',NULL,'NO')
when response_type = 'TEXTFIELD' then apex_item.text(35,response_desc)
when response_type = 'TEXTAREA' then apex_item.textarea(35,response_desc,5,40)
when response_type = 'DATEPICKER' then APEX_ITEM.DATE_POPUP2(35,to_date(response_desc,'dd-mon-yyyy'),'dd-mon-yyyy')
end RESPONSE_DESC
from V_CASE_QUEST_LINK
where question_set_code like 'COB_Q%'
and case_mgmt_base_id = :P37_CASE_MGMT_BASE_ID
My problem is now grouping the questions by question_set_code. Because GROUP BY is evaluated after the select, it cannot simply be tacked on to the end of the query. I'm not sure that using a nested select will work here because of the apex.item calls. Anyone have a suggestion on how I can group these questions by the column?