Navigation on column values
Hi gurus,
I have a requirement like ,
Service hub,Age,Age,Age
<=5 6-10 >15
Manger/Employee 1 1 0
Manger/Employee 6 0 4
Manger/Employee 3 7 0
the report should look like this my question is there any possibility to navigate on values >0 and we don't want to navigate when column valure is =0 means if column value is >0 it should be shown as a link to detail report.
Any ideas please please reply me ASAP..
Edited by: prashanth on Sep 19, 2011 2:13 AM
Hi Prashanth,
This is how your masure'scolumn formula would look.
case when "YourMeasureColumnformula">100 then '[a href=saw.dll?Go&Path="Your_Target_Report_Path"&Options=dfr&Action=Navigate&P0=1&P1=eq&P2=%22Value tobepassedTablename%22.%22ValuetobepassedColumnname%22&P3='||Valuetobepassed_Columnformula||'>'||cast( "YourMeasureColumnformula" as varchar(20)) ||'[/a]' else cast( "YourMeasureColumnformula" as varchar(20)) end
*Replace [ with <
Make sure to change the column's data format to html.
Rgds,
Dpka
Similar Messages
-
Filter a tableview based on a column value-Navigation Issues.
Hi,
I have a table view with total 99 values. The values are displayed in 10 tabs of the table view with 9 values in each tab.I go to the third tab and select a column value, which triggers an event and filters the result list from 99 to 12.
I am simply removing the collection and filling it again with fresh values.
My problem is-when i set the collection with new values, i want the end user to be navigated to the first tab.
But the user is always navigated to the second tab which has the last three values.
Is there any way to navigate the user to first tab of table view?
I have already tried-visibleFirstRow and it is not working.
Thanks and Regards,
RohitHi Ashish,
You can implement some code in DO_INIT_CONTEXT to filter your Items' BOL collection based on the condition quantity <> 0. I believe the Quantity field is available in the BOL structure.
Here is a code snippet.
DATA: lr_col TYPE REF TO if_bol_bo_col,
DATA: lr_node TYPE REF TO if_bol_bo_property_access.
lr_node = me->typed_context->CONTEXT NODE->collection_wrapper->get_first( ).
WHILE lr_node IS BOUND.
CALL METHOD lr_node->get_properties
IMPORTING
es_attributes = ls_struct.
IF ls_struct-quantity = 0 .
lr_col->remove( iv_bo = lr_node ).
ENDIF.
lr_node = lr_col->get_next( ).
ENDWHILE.
Regards,
Masood Imrani S. -
Related to post" navigation link on column values"
Hi,
when i ick on link for column values it should navigate to detail report based on manager name dynamically how can i achieve this one?
any help.................plzDo a IsPrompted on manager name in detail report,...
-
How to pass column value which is not present in source criteria
Hi,
In one of my report I want to pass a column value from Source report(a pivot table) to target report. The column which I want to pass is not present in the sorce report criteria. Is there any work around for this issue.
I added this column in criteria and hidden the column. But the issue is not solved.
Best Regards,
TKB.Swati,
I am navigating from Summary report to detail report. I am prompting the required fields in detail report. But I want to pass one more column value explicitly, which is not present in source request.
Best Regards,
TKB. -
List metadata navigation and columns filters not working.
Hi
I'm having an issue with SP 2013 whereby if I apply a filter through metadata navigation subsequent columns filters don't get applied.
Here I've applied a filter through the navigation and it applies the filter successfully to the documents in the library
If I now apply a column filter by content type and select the value Promotion Calendar, I get the following
It appears the filter is selected and I can indeed see the filter applied via the dropdown but it doesn't apply the filter to the list view. I've confirmed this also on another environment using different columns for the metadata navigation.
The environments are patched to Dec 2013 CU.
ThanksHi
Matt Williams3 ,
The scenario is be default that Managed Metadata navigation tree in document libraries does not allow further filtering on other columns.
For a workaround, you can use Key Filters instead.
For more information, you can refer to the blogs:
Set up metadata navigation for a list or library
How to Use Metadata Navigation and Filtering in
SharePoint 2013
Reference:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/78881468-308d-4305-8454-c67fceb05fea/managed-metadata-navigation-tree-in-document-libraries-does-not-allow-further-filtering-on-other?forum=sharepointsearch
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks -
SSRS - Expression to color column value dynamically in Matrix
Hi ,
I have a matrix which looks like :
The <<Expr>> value can be 1 /0 /"-" .
The Expr value is being calculated dynamically.
The data set query I am using has a column called due_days.
In the color expression of the <<Exp>> box I am using the expression as :
=IIf(Fields!Due_Days.Value>14 and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
of Oct and Nov is > 14 but it shows blue only for month of oct.
How can i resolve the issue?In select query i have 5 columns:
Due days(Which is difference between 2 dates) ,
Notes count (Which is just a count of notes entered or not having value 0/1 and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
The matrix has year and last 6 month as column groups
Color coding should be if notes count is 0 then red ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg: 2nd row
Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
Is there any way i can do that ??
Eg: data set returns value as :
Due Days CRD Month
Month_Nbr Year Notes _Count
5 2014-11-28 00:00:00.000 December 12 2014
0
5 2014-11-28 00:00:00.000 February 2 2015
0
5 2014-11-28 00:00:00.000 January 1 2015
0
5 2014-11-28 00:00:00.000 November 11 2014 1
5 2014-11-28 00:00:00.000 October 10 2014 0
5 2014-11-28 00:00:00.000 September 9 2014 0
Matrix is of the form :
YEAR
MONTH
CRD Notes_count -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
How to tell if column value has changed for use in workflow actions
Hello,
I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow. What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
value has changed. I want to be able to have a workflow action that would be something like:
If Current Item: Assigned To not equals [OLD VALUE]
I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go. I have document versioning set but don't if that can be used to help with this. One possible
thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value". Just not sure if there is a best practices for doing this.
Thanks for any thoughts - PeterHelen,
Not sure I fully understand your goal. We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
has the email setup. We do this for alot of workflow tasks.
So, in the workflow you can have a blanket statement like what I previously listed:
if Current Item:hiddenStatus not equals Current Item:Status
.... do something
or you can do something like:
if Current Item:hiddenStatus equals "In-Progress"
.... do something
Else if Current Item:hiddenStatus equals "Completed"
.... do something
or combine the two and do nested "if" statements. Then you add an email statement wherever you need it like:
if Current Item:hiddenStatus equals "Completed"
then email "these users"
To add the email part, just type in "email" on the line where you want to add a statment. There is only one option to choose from. That will display the line "then email these users". The "these users" will be a link. When you
click it you will get a popup to add the email info. We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields. On the email form, you can type in your own text, designate that a value is based
on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc. To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
in the bottom-left for the text area. There is alot you can set in the mail.
Does this help answer your question?
- Peter -
How to insert column values into database as rows
Hi,
I have 8 columns and some not null columns. Based on not null columns I want to insert into table as rows. The 8 columns may contain values or no value. If the first column contains data, then I have to insert into one row. if the second column contains data I have to insert a row and in second column. respectively...So How can I insert column values into rows. Can I write 8 insert statements. (OR) is it possible to insert data from columns using where clause.
Please help me out....
Thanks in AdvanceLines Table:
line_id, orcl_bank_account_num, product_type, service_type, lease_type,
funding_type, cpi, billing_frequency_unit_cd , annual_due_date ,
pricing_start_date, pricing_end_date, install_date, contract_end_date ,
prdct_replacement_cost_amt, cradle_replacement_amt, supranet_contract,
issuance_fee, board_inactive_date, header_id, creation_date, last_modified_date,
created_by_nam, modified_by_nam, activeinactive_flg, prdct_bill_amt_yr1,
prdct_bill_amt_yr2, prdct_bill_amt_yr3, prdct_bill_amt_yr4, prdct_bill_amt_yr5,
prdct_bill_amt_yr6, prdct_bill_amt_yr7, prdct_bill_amt_yr8, activation_fee_yr1,
activation_fee_yr2, activation_fee_yr3, activation_fee_yr4, activation_fee_yr5,
activation_fee_yr6, activation_fee_yr7, activation_fee_yr8,
In this table the columns structure is :
-- PRDCT_BILL_AMT_YR (1 to 8) NUMBER(14,4)
-- ACTIVATION_FEE_YR (1 to 8) NUMBER(8,2)
I have one more table:
PRDCT_INS_AMT NUMBER(14,4)
ACTIVATION_FEE_AMT NUMBER(14,4)
I want to insert prdct_bill_amt_yr (1 to 8) columns data into PRDCT_INS_AMT column. similarly activation_fee (1 to 8) columns data.
But the data should be inserted based product_type, service_type, lease_type columns values. (These 3 columns may contain upto 45 combinations). -
How to avoid to check if a column value is NULL?
Hi, I'm a newbee in Oracle.
I have a procedure like this:
create or replace
PROCEDURE get_employee
v_first_name IN VARCHAR2 DEFAULT NULL ,
v_middle_name IN VARCHAR2 DEFAULT NULL ,
v_last_name IN VARCHAR2 DEFAULT NULL ,
To select rows with matching multiple column values, I can simply do this:
SELECT *
FROM employee
WHERE first_name = v_first_name
AND middle_name = v_middle_name
AND last_name = v_last_name
The problem is v_middle_name can be NULL. This means,
I need check if v_middle_name is NULL, and if it is, I need use "IS NULL" instead, like this:
SELECT *
FROM employee
WHERE first_name = v_first_name
AND middle_name IS NULL
AND last_name = v_last_name
It seems very cumbersome to do a check for each column that can be null.
Is there a way that I do not need to do a check for every column?
or is it better to avoid having NULL values in those columns (and replace them with, say a space) ?
Thanks in advance.
SimonNormally, you would do something like
SELECT *
FROM employee
WHERE first_name = NVL( v_first_name, first_name )
AND middle_name = NVL(v_middle_name, middle_name )
AND last_name = NVL(v_last_name, last_name )Of course, if you can ensure that NULL data is not allowed (without creating phony non-NULL data), that is a good thing. In most systems, for example, it is probably reasonable to require a non-NULL first and last name. But you almost certainly cannot require a middle name.
Justin -
Referencing Aggregated Column Value in Where Clause
Hello -
I'm trying to determine how I can accomplish the following in the most straightforward, efficient way.
Among other things, I'm selecting the following value from my table:
max(received_date) as last_received_dateI also need to evaluate the "last_received_date" value as a condition in my where clause. However, I can't reference my aliased "last_received_date" column value, and when I try to evaluate max(received_date) in the where clause, I get the "group function is not allowed here" error.
Does anyone know of a good workaround?
Thanks,
ChristineHi,
Column aliases can be used in the ORDER BY clause: aside from that, they cannot be used in the same query where they are defined. The workarounds are
(a) define the alias in a sub-query, and use it in a super-query, like Someoneelse did, or
(b) repeat the aliased expression, as in the HAVING-clause, below.
Aggregate functions are computed after the WHERE-clause. (That explains why you can do things like
SELECT MAX (received_date) last_received_date_2008
FROM table_x
WHERE TO_CHAR (received_date, 'YYYY') = '2008';).
The HAVING-clause is like the WHERE-clause, but it is applied after the aggregate functions are computed, e.g.
SELECT deptno
, MAX (recieved_date) AS last_received_date
FROM table_x
GROUP BY deptno
HAVING MAX (received_date) > SYSDATE - 7 -- Only show deptartments with activity in the last week
; -
Re-enable column values in tabular form before submit
Hi,
I am using Apex 4.1. I have a tabular form. I created a dynamic action to disable some of the columns on page load.
It works fine and I am able to add new rows. But when I click submit, all the column values are null and it is throwing validation error.
I need to enable all the columns before submit. I invoked a javascript to enable all the fields, but still i get the validation error.
I also tried creating dynamic action to enable the values but still I get the validation error becuase the values are all null.
Please help me to resolve this issue.
Thanks
SRPer HTML standards, disabled items are not submitted. Therefore if they are disabled at the point of submit, their corresponding session state values will be null (as you discovered). Apex validates against what is is session state, not against what is on your screen, so since the values didn't get submitted (per standards for HTML disabled items) that's why Apex thinks they are null.
Before submit, re-enable the items/columns and it should work fine.
Edit: Sorry, looks like you are doing this already. But are you doing it in the right order?
How I have done it is:
1. Change the save/apply changes button (whatever is doing the submit) to call a URL.
2. Make the URL call javascript, such as:
javascript:formSave('SAVE');
3. Put a javascript function on your region or page (hypothetical example):
<script type="text/javascript">
function formSave(pRequest)
{ //Put all checking and processing prior to form save here.
var vRequest="SAVE"; //default value taken from orig. "apply changes" button
if(pRequest)
vRequest=pRequest;
enableAllCells(gMaintActionCol); //Put whatever code you have to re-enable your tabular form items here, must fire before apex.submit.
//Do the save
apex.submit(vRequest);
</script>Edited by: gti_matt on Dec 1, 2011 3:04 PM -
Custom row-fetch and how to get column values from specific row of report
Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
table has links that send the user to a single-row DML form, but of course the automatic
fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
auto fetch only handles 2 PK columns.
1)
I have written a custom fetch (not sure it's the most elegant, see second question) that is working
for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
more than 3, I don't know how to get the remaining PK column values for the specific row that was
selected in the report. How can I access that row's report column values? I'll be doing it from the
form page, not the report page. (I think... unless you have another suggestion.)
2)
My custom fetch... I just worked something out on my own, having no idea how this is typically
done. For each dependent item (database column) in the form, I have a source of PL/SQL
function that queries the table for the column in question, using the primary key values. It works
beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
a way to manually construct the fetch statement once for the whole form, and have APEX be smart
about what items get what
return values, so that I don't have to write PL/SQL for every item? Because my query data sources
are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
to streamline the process.
Thanks,
CarolHI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
Maybe I'm making this too hard?
Thanks,
Carol -
How to get the column values from a BC4J View Table in UIXML?
I am using a default UiXML Application for Order Entry system with Orders & Order Lines & Customers. I have a uix file OrdersView1_View.uix which displays (no updateable columns) all the Orders. How do I get the column value of a selected row in a BC4J Table (example:OrdersId) when a Submit button is pressed using UIXML or Java Classes?
I appreciate any help on this.Hi,
You need to use keyStamp, an example:
<bc4j table name="orders">
<bc4j:keyStamp>
<bc4j:rowKey name="key" />
</bc4j:keyStamp>
Furthermore, you can automatically send the selected row key using the go event handler, so in the handlers section you could send the key to an orderInfo page:
<event name="show">
<!-- forward to the update page, passing
the selected key as a page property -->
<ctrl:go name="orderInfo" redirect="true">
<ctrl:property name="key">
<ctrl:selection name="orders" key="key" />
</ctrl:property>
</ctrl:go>
</event>
Maybe you are looking for
-
When I login to yahoo mail it flashes and will not completely connect?
I may have somehow disabled my ability to connect to mail in my tools area. I can get to my yahoo, but when I sign in to look at mail it is blank and flashes the connect and looks like its trying to load every piece of info on the tab area?
-
Hi all. This is a new error I've never seen before. It's stopping me doing anything at all really. As soon as I start up FCP and click on a sequence I get this message: 'Codec not found. You may be using a compression type without the corresponding h
-
Can I use a different mail client to "Send a Copy" from Pages?
One of my favorite Pages features is its ability to send someone a copy of your document in Pages, Word, PDF, or ePub format via email with only a couple clicks in the "Share" button. But this feature only works if Mail, Apple's email client, is set
-
Hi, I am trying to send files to an FTP(s) server over an SSL protocol. The FTP(s) server is at the receiving side. The client has provided us with the public certificate. I have these queries. PLease answer to each query separately. 1. Now that we h
-
Hi Friends I am processing the GL payment fom F-07 and no vendor is involved in this. and now want to assign and take print out of the Cheque in FBZ5. But system is giving me the Error message to enter payee name Please come up with appropiate soluti