How to send single id value in apex url on clik of link column in report
Hi,
Im using the following code to generate a report, in which BP_NAME is a link coloumn ,So I want to send the id(best_attachment table column ie bpa_id) to the next page(6) when I click on the link.If I hoover my mouse on the link it is showing the url like
..../f?p=114:31:5954054962330632:REQ:NO:P6_BP_ID:6,12,14(for the record 30 and if it is a two name it will pass two id)
But i need to pass only one id on click of a link ,but in the url it showing three id.
===code====
select bp_id,
(select LISTAGG(BP_NAME, ';') WITHIN GROUP (order by BP_NAME) from best_attachment bpa where bpa.bpa_bp_id = bp.bp_id ) BP_NAME
from best_practices bp
===========
Ex
Link column<br>
10 Whalen
20 Hartstein
30 Raphaely;
Khoo;
Tobias;
40 Mavris
If I click any name on 30 record that is Raphaely, Khoo,Tobias It is showing the three id in the url and passing the same. Pls tell me how to pass single id(bpa_id) on clik of a link.And how to alter the above code to achive the same.
Regards
Balaji
No One :(
Similar Messages
-
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
Hi All,
Am using OPENROWSET to load the file data into table, here the problem is i need to map same input value to two different columns of table, As format file doesn't allow the duplicate numbers am unable to insert same value to two columns, please help me to
find a solution for this.
i can use only OPENROWSET because i need to insert some default values also which come based on file. only the problem is how to map same input value to two different columns of table. please give me the suggestions.
Thanks,
SudhakarFrom what you say:
INSERT tbl(col1, col2)
SELECT col1, col1
FROM OPENROWSET(....)
But I guess it is more difficult. You need to give more details. What sort of data source do you have? What does your query look like? The target table?
Erland Sommarskog, SQL Server MVP, [email protected]
Hi Erland,
Thanks for your response
my source file is text file with | symbol separate for ex:
1002|eTab |V101|eTablet|V100|Logic|LT-7|Laptops|SCM
Database table have columns like
column1,column2,column3...etc, now i need to insert same value from input file into two columns for ex:
the eTab value from text file has to be insert into column2 and column3 of
table
we cannot change format file like below one
for the above situation how can we insert eTab into column2 and column3
Thanks,
Sudhakar. -
How to hide dynamic parameters values in the URL with Reports 6i
Hi,
I want to know a way of hiding the parameters values when asking for a report through the web.
Now I'm using the Reports 3.0.5.8 with a Cartridge defined in the Oracle Web Application Server 3.0.1.0.1. When you ask for a report with the parameters DESTYPE = cache and DESFORMAT = pdf, it is fully generated and in the Address or Location box of the browser, you can see http://webserver/cache/report.pdf (where cache is the virtual directory defined in the OWAS in which the .pdfs are cached). So, users cant see the Url used to generate the report.
Im trying to upgrade this configuration to Reports 6i with Cgi in a web server. I generate reports with no problems. The problem I have is I cant find how to hide the parameters values as before. I mean, when I ask for a report, once its generated I can see http://webserver/cgi-bin/rwcgi60.exe?server=ServerName&report=report.rdf&userid=user/pass@connection&destype=cache&desformat=pdf&P1=value1&P2=value2 in the Location box. It allows user to ask for another report changing the values of the parameters. I use these parameters to execute some query written in the Data Model. For example, imagine that the P1 represents the company id, the user (that is supposed to see only data of its company) can change this id, ask for a new report and see data of another company.
Ive already tried to use the key mapping option, but its not useful to me because the parameters values are dynamic and its impossible to define different entries in the cgicmd.dat for each possible value. The option of loading the parameter form before running a report is not useful to me either, because there exists specific screens for this purpose.
Is there any solution?
Thank you.
Marma Bonfiglio.Hi Rakesh,
I am using BI 7.0
The last option I have is 'Hide' for 'Calculate single values as' .
I have the below options for 'Calculate single values as'
1. Normalise according to Next group level Resul.
2. Normalize according to Overall Result
3. Rank number
4.Olympic Rank Number
5.Maximum
6. Minimum
7.Counter for all detailed values
8.Counter for all detailed values that are non zero
9.Moving average
10.Moving average That is Not zero ,null or Error
11. Hide.
So could you please tell me where i can find 'suppress result' option for the keyfigure .
Many thanks -
How to retrieve query string value from the URL in my portlet
Hi,
When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
My URL will look like this.
http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
Please help me regarding this.
Thanks in advance.
Thanks,
sreekanth.Hi,
Look at the following threads,
For programmatically getting the iview properties,
Programmatically getting iView Properties
Also,
Get Properties of IView Programmatically
Permanent change of iView property programmatically
Hope these threads help u.
Regards
Srinivasan T -
How to send 2 variable value from bash script into java.class
#!/bin/bash
a=10
b=20
echo $a $b | java addition
donehi there,
currently i have a simple java coding ( a + b ). and i m trying to connect with bash script but this bash script coudln't Enter 2nd value (b=20) while i running for it. may i know how do i can Enter 2 value into it?
output from terminal
[seng@localhost java_class]$ bash addition.sh
=======================================================================
simulation 1
Num_a = 10
Num_b = 20
Enter your Num_a : 10
Enter your Num_b : Exception in thread "main" java.lang.NumberFormatException
at java.lang.Integer.parseInt(java.lang.String, int, boolean) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Integer.parseInt(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at filter_god.GOD(java.util.List, java.util.List, java.lang.String, java.lang.String, int) (Unknown Source)
at filter_god.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
=======================================================================That code will send both numbers on a single line in standard input to the java process. So if the process reads standard input, it will get a single line that has this in it: "10 20".
I'm guessing you're sending that whole line to Integer.parseInt. But a valid number doesn't have a space in the middle.
You should split up the line using String.split. Or use a StringTokenizer. Or a regular expression. Or you can use a java.util.Scanner. Or a java.io.StreamTokenizer. Or maybe some other stuff that has slipped my mind at the moment. -
How To Load SINGLE CELL Value as Object - In 2D Object Array - InvalidCastException
Setup: ---- VB.net - Visual Studio 2010 - Excel Version 2010 - Option Strict ON
The following WORKS FINE all day long for loading MULTIPLE range values IE: ("F2:F5") or more into a 2D Object Array... No problem... as in the following..
Dim myRangeTwo As Range = ws.Range("F2:F5") ' MULTIPLE CELL RANGE
Dim arr2(,) As Object = CType(myRangeTwo.Value(XlRangeValueDataType.xlRangeValueDefault), Object(,))
The ws.range("F2:F5") values are stuffed into the myRangeTwo range variable as 2D Objects and then those are easily stuffed into the 2D object array...
But this does not work for a SINGLE cell range...
Dim myRangeTwo As Range = ws.Range("F2:F2") ' SINGLE CELL RANGE F2 ONLY
Dim arr2(,) As Object = CType(myRangeTwo.Value(XlRangeValueDataType.xlRangeValueDefault), Object(,))
This triggers an Invalid Cast Exception error on trying to load into the arr2(,).. because the ws.range("F2:F2") is stuffed into the myRangeTwo variable as a "string"
not as an object therefore is not possible to stuff it into an Object Array and so correctly causes the Invalid Cast Error...
How do you handle this seemingly ridiculously simple problem ??
thanks... CjHello,
Simply answer, you need to determine if the range is a single cell or multiple cells. So the following is geared for returning a DataTable for a start and end cell addresses that are different, granted there is no check to see if the cells are valid i.e.
end cell is before start cell i.e.
Since B1 and B10 is a valid range we are good but if we pass in F1:F1 or F10:F10 we must make a decision as per the if statement at the start of the function and if I were expecting this to happen I would have another function that returned a single value.
Option Strict On
Option Infer On
Imports Excel = Microsoft.Office.Interop.Excel
Imports Microsoft.Office
Imports System.Runtime.InteropServices
Module ExcelDemoIteratingData_2
Public Sub DemoGettingDates()
Dim dt As DataTable = OpenExcelAndIterate(
IO.Path.Combine(
AppDomain.CurrentDomain.BaseDirectory,
"GetDatesFromB.xlsx"),
"Sheet1",
"B1",
"B10")
Dim SomeDate As Date = #12/1/2013#
Dim Results =
From T In dt
Where Not IsDBNull(T.Item("SomeDate")) AndAlso T.Field(Of Date)("SomeDate") = SomeDate
Select T
).ToList
If Results.Count > 0 Then
For Each row As DataRow In Results
Console.WriteLine("Row [{0}] Value [{1}]",
row.Field(Of Integer)("Identifier"),
row.Field(Of Date)("SomeDate").ToShortDateString)
Next
End If
End Sub
Public Function OpenExcelAndIterate(
ByVal FileName As String,
ByVal SheetName As String,
ByVal StartCell As String,
ByVal EndCell As String) As DataTable
If StartCell = EndCell Then
' Decide logically what to do or
' throw an exception
End If
Dim dt As New DataTable
If IO.File.Exists(FileName) Then
Dim Proceed As Boolean = False
Dim xlApp As Excel.Application = Nothing
Dim xlWorkBooks As Excel.Workbooks = Nothing
Dim xlWorkBook As Excel.Workbook = Nothing
Dim xlWorkSheet As Excel.Worksheet = Nothing
Dim xlWorkSheets As Excel.Sheets = Nothing
Dim xlCells As Excel.Range = Nothing
xlApp = New Excel.Application
xlApp.DisplayAlerts = False
xlWorkBooks = xlApp.Workbooks
xlWorkBook = xlWorkBooks.Open(FileName)
xlApp.Visible = False
xlWorkSheets = xlWorkBook.Sheets
' For/Next finds our sheet
For x As Integer = 1 To xlWorkSheets.Count
xlWorkSheet = CType(xlWorkSheets(x), Excel.Worksheet)
If xlWorkSheet.Name = SheetName Then
Proceed = True
Exit For
End If
Runtime.InteropServices.Marshal.FinalReleaseComObject(xlWorkSheet)
xlWorkSheet = Nothing
Next
If Proceed Then
dt.Columns.AddRange(
New DataColumn() _
New DataColumn With {.ColumnName = "Identifier", .DataType = GetType(Int32), .AutoIncrement = True, .AutoIncrementSeed = 1},
New DataColumn With {.ColumnName = "SomeDate", .DataType = GetType(Date)}
Dim xlUsedRange = xlWorkSheet.Range(StartCell, EndCell)
Try
Dim ExcelArray(,) As Object = CType(xlUsedRange.Value(Excel.XlRangeValueDataType.xlRangeValueDefault), Object(,))
If ExcelArray IsNot Nothing Then
' Get bounds of the array.
Dim bound0 As Integer = ExcelArray.GetUpperBound(0)
Dim bound1 As Integer = ExcelArray.GetUpperBound(1)
For j As Integer = 1 To bound0
If (ExcelArray(j, 1) IsNot Nothing) Then
dt.Rows.Add(New Object() {Nothing, ExcelArray(j, 1)})
Else
dt.Rows.Add(New Object() {Nothing, Nothing})
End If
Next
End If
Finally
ReleaseComObject(xlUsedRange)
End Try
Else
MessageBox.Show(SheetName & " not found.")
End If
xlWorkBook.Close()
xlApp.UserControl = True
xlApp.Quit()
ReleaseComObject(xlCells)
ReleaseComObject(xlWorkSheets)
ReleaseComObject(xlWorkSheet)
ReleaseComObject(xlWorkBook)
ReleaseComObject(xlWorkBooks)
ReleaseComObject(xlApp)
Else
MessageBox.Show("'" & FileName & "' not located. Try one of the write examples first.")
End If
Return dt
End Function
Private Sub ReleaseComObject(ByVal sender As Object)
Try
If sender IsNot Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(sender)
sender = Nothing
End If
Catch ex As Exception
sender = Nothing
End Try
End Sub
End Module
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
How to send a TextBox value to a variable in the parent form in C#?
I have an aboutBox control ("settings") that has a textBox in it. When the user presses the save button on this settings I want it to save the string from the textBox, pass it to a variable in the main form, close the settings box and then press
a button in the main form.
How would this be done?
Thank you!what do u mean by "text saved in the textbox"?
if you mean to set the value into the Textbox in the form2
private void Form2_Loaded(object sender, EventArgs e)
this.TextBox1.Text =valueFromForm2;
2) When you click the save button on form2 it is already calling the delegate what do u mean by firing event? -
How to send single person-records with HRMD_A Idoc and change Idoc header?
Hello group,
we have different companies in our SAP system (BUKRS). Now when an infotype is changed the changepointers are activated and using program RBDMIDOC we can send Idocs of type HRMD_A to f.i. files. In order to have these files distributed to different parties depending on BUKRS of the person we would like to have HRMD_A to deliver single records, an Idoc for each person and the Idoc header fields for variant and function should be filled so that the partner profile would distribute the Idoc to the partie.
Is this possible? And if yes how?
Regards, Léon Hoeneveld The NetherlandsTransaction PFAL lets me trigger the Idoc manually, but with a job for RBDMIDOC this is automatically.
I found fm RH_HRMD_BLOCK_SIZE in wich you can enhance the code to set the block size for an Idoc-type to 1.
But now I still have to change the Idoc header with an enhancement of user-exit.
HRALE00OUTBOUND_IDOC BADi does not have the functionallity.
Regards, Léon Hoeneveld -
How to senda single alert for the similar error for the last specified time
HI,
We have configured alerts in OSB flow and alert destination as email.
but we are receiving lot of emails.
is there any possibility to consolidate alerts from past 30 mins and send as single alert in OSBHi Alfredo Perez,
Thank you for your reply.
If payment done directly to the customer account , how this will effect for all invoices. If i have 3 invoices and the DocTotals of the Invoices are like this
1st - 1,000/-
2nd - 2,000/- and
3rd - 3,000/-
If i pay 3,000 to the customer account , for which invoice this payment is related. whether the 1st and 2nd will close or only 3rd will be closed?
I want to know that is there any way to pay for more than invoices from the Incoming Payment is Screen is Possible?
Thanks & Regards,
Ramu. -
How to give single multiple values
Hi,
I am having one scenario like ,in one report if i had given multiple single values in select option parameter but it is taken only first value please can you suggest on this issue.
Thanks,
Harinathjust click on the arrow (extension) button if you can see multiple value then it is taking correctly. other wise let us know how are you assigning the multiple single value?
s_op-low = '1000'.
s_op-sign = 'I'.
s_op-option = 'EQ'.
append s_op.
s_op-low = '2000'.
s_op-sign = 'I'.
s_op-option = 'EQ'.
append s_op.
s_op-low = '3000'.
s_op-sign = 'I'.
s_op-option = 'EQ'.
append s_op.
like that or from selection screen?
regards
shiba dutta -
How to send to change value my database
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
//Ask to be notified of selection changes.
ListSelectionModel rowSM = table.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
//Ignore extra messages.
if (e.getValueIsAdjusting()) return;
ListSelectionModel lsm =
(ListSelectionModel)e.getSource();
if (lsm.isSelectionEmpty()) {
...//no rows are selected
} else {
int selectedRow = lsm.getMinSelectionIndex();
assume that value was detect and send it database
how is make that?
...//selectedRow is selected
});Wouldn't that depend on the type of database you are using?
-
How to send a string value to a mail_id
Hi everybody
I am trying to send a password to a user mail_id.
I got the password from database as an object value.
so how to convert this object to string type and send to the user Mail_id.
Please help
Message was edited by:
vizcWe retrive the password as string but stored in an object.
So i want to get back once again to string
Object resultObj = null;
try
resultObj = ServiceUtils.verifyQuerry(argList);
// Here we get the password from DB
catch(MoveoException mex)
throw new ServletException(mex.getMessage(),mex);
if(null != resultObj)
CompanyDO companyDO = (CompanyDO) resultObj;
// Here i want print the password
return nextPage;
}How to do this ??? -
How to map single context value attribute to multiple value attributes?
Hello,
is there any way to map a single value attribute
from view's context into several value attributes
in controller's context?
The business context of what I want to achieve
is the following: I have a view which can be called
in two modes: read only (RO) and read-write (RW).
The input parameters to the view are the same for
both modes, however when in RO mode, the view calls
a different set of web services than when called
in RW mode. Before calling each of the web services
I need to populate their context value attributes
with appropriate input values.
I know I can do it in Java code, but is it possible
to do it without any programming (doing it in the
source code is prone to errors)?
Any help highly appreciated.
Greetings,
Tomek.Hi Kishore,
than you very much for your kind help.
I have already created a value attribute of type
boolean and mapped it into the read-only property
of the UI elements. This however does not solve all
of the problems... I will describe it with an
example:
Let's say the form I want to implement will be
used to: create (read-write mode), update (read-
write mode) or show (read-only mode) customer's
data. The customer's data is complex (lots of
data, including tree structures).
The problem is that:
- when the form is called in read-only mode,
it should populate its fields with values
provided by the getCustomerData web service,
- when the form is called to create a new
customer (in read-write) mode, it should
not use the getCustomerData web service.
Instead it should map the input values
entered by the user into input parameters
of the createNewCustomer web service,
- when the form is called to update customer's
data, it should first display values returned
by the getCustomerData web service, and then
it should map the modified values entered by
the user into input parameters of the
updateCustomer web service,
In all the above cases I must map my view's
context data to different controller's context
elements. Doing it directly in the source code
is not a nice solution. Is there any other
way to achieve this?
Calling a form in different modes in not an
unusual thing, so I was hoping that maybe
there are any built-in mechanisms that would
solve the obove problem...
Greetings,
Tomek. -
How to send a String value from Servlet to Action class in Struts .
when iam trying to send string value from Servlet to Struts Action class through Http Session, iam getting null value, iam really in big confusion, help me.
please elaborate clearly or put you code of both action and servlet here
Are both of them in same web application
Maybe you are looking for
-
How can I make handwriting look heavier in PSE 11?
I have a small handwritten note that I've scanned. When I enlarged it to the size I want to print, the handwriting strokes looked too thin to suit me. How can I make the strokes look thicker? (I'm trying to change the appearance from ball point pen t
-
PDF to TIFF conversion Tiff File Size problem after conversion
Hi, I am able to convert the PDF file into multi page TIFF file using the below method. But i am getting a size of 1.3 mb for each page of TIFF file (noofpagesX 1.3 mb). it's huge size right? So Could any one please help me out how to decrease the si
-
Status in BBP_PB -------- I1111- Item in Transfer Process
Hi all, I have seen lot of threads on this issue but non of them giving final soultion which leads to me create one new post.... I am working with Extended classic scenario with SRM 4.0. I have created SHC which gone for approval and it has been appr
-
Hai, I have the requirement that my Adf Application should have same skins(prototype) when there are running on Windows or Unix or Linux OS. First lines in two cases are working fine in Windows or Unix orLinux operating system,but the Second lines in
-
Trash won't empty completely.....
Hi all when I try and empty my trash I get an error that says: The Operation cannot be completed because the item "Tile_1" is locked. it gives me the options to stop or continue.. click on either and i get: The Operation cannot be completed because t