Change display text in discoverer from database view
Hello,
I just wondered if it possible to do the following:
Create a discoverer report using e.g. person type field. In the database view the value required for this would be "Full-time" however when the user sees the value in the discoverer report the value is displayed as Employee type 1?
Can you change the text of a value a user sees in discoverer form what it is pulled out of the view as?
Please advise
Thank you
Sarah
Hi Sarah
Yes you can do this. It is done as a calculation like this:
CASE
WHEN Person_Type = 'Full-time' THEN 'Employee type 1'
WHEN Person_Type = 'Part-time' THEN 'Employee type 2'
ELSE Person_type
END
You would call this calculation Employee Type and display it it in the report instead of Person Type.
Best wishes
Michael
Similar Messages
-
CMP Entity Bean from dataBase views
Hi forum,
I Have to migrate an existing application to JEE (with EJB3).
In this application there are a lot of dataBase views.
I'm new in EJB3 and I don't know how to structure cleanly entity beans (Specially when it are created from dataBase views).
My problem is that for each query made from the same dataBase view I almost have to create a new entity bean with a different @Id.
What can I do to to avoid it?
I had thought to genrate a new @Id (attribute not persistent) but I think is not possible. It's right ?
Someone can help me ?
Thanks"CMP provides you with database independence and less coding efforts."
BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development. -
How to retrive data from database views or projection views
how to retrive data from database views or projection views
Hi chintam,
1. Very simple
2. Just like normal select statement.
3. Select * from VIEWNAME.
4. (Instead of the tablename, we just have to give the viewname)
regards,
amit m. -
Eurosign not displayed correctly when picked from database
Hi ..
I'm having a problem getting a eurosign stored in an Oracle Database to be displayed correctly in my Crystal Reports 11.5.
When using the built in (preview) Crystal Viewer, the eurosign is displayed correctly, but when I want to print the report directly to a printer or to export it to pdf the eurosign is displayed as a box?
It only haapens when i need to pick the eurosign from the database. If I insert in a textbox on the report, it will show correctly.
Please Help.
Best regards,
JacobWhat is the source of the text stored in the database. I ran into an issue a ways back where someone was copying news articles from a website into their database and the euro symbol would not display correctly (unless the option HTML Text Interpretation was used).
You might want to do a quick check to see if it is stored as an ascii character using a formula similar to the following;
asc(mid({database, x, 1}))
where x = the position of the euro symbol in the string.
The formula result should be 128.
Edited by: Graham Cunningham on May 22, 2009 12:20 PM -
Change displayed text in textfield an space between elements
Hey people,
a have a Form based on a View. i want to change the spaces between some rows or elements (to group some elements) and don't know how.
For example:
Name Surname
Birthday
Phone Mobil
City
Between Birthday and Phone, and Phone and City now should be more space.
I made it now like that:
Birthday: Display --> rowspan --> 2
and put an Element just shown as Text empty without label below "Birthday". But i don't like that because i need so much empty elements. Is there another possibility to change the style?
I want to change the size from the displayed text in the textfields too, or make it bold maybe.
I hope, i could make it comprehensible to you, if not ... just ask
Greetings, Janahey ageller,
thank you very very much. that is exactly what i'm searched for ;-)
can you tell me, if this doesn't work in firefox or mayby why? in IE 7 all works fine, but Firefox 2.0.0.6 doesn't show any changes.
I cleared the cache but still no changes.
Got the same problem with the width of my columns. In IE, Content is shown in one row and Firefox there is linebreak.
Do you (or anybody else) know, how i can fix this??
Thank you so far ....
Jana -
How to display data in SelectOneChoice from database?
Hi,
I want to display data in SelectOneChoice component after fetching from database in a bean using Application module implementation class. I have two fields in my bean id and name. I want to display name in choice and in backend i want to play with the id of corresponding selected choice i.e displayed in SelectOneChoice. I am not able to bind the datacontrol with the SelectOneChoice component. I have data in my bean i.e list of id and name fetched from database.In my app module i have create a method which retruns UserBean in array List .
I dropped that data control on my page as Select One Choice and bind the same.
When i run that page I am able to see user bean object in drop down but when i try to see any specific var error occurs
Code-
<af:selectOneChoice value="#{bindings.return.inputValue}"
label="#{bindings.return.label}"
required="#{bindings.return.hints.mandatory}"
shortDesc="#{bindings.return.hints.tooltip}"
binding="#{backingBeanScope.backing_test12.soc1}"
id="soc1">
<f:selectItems value="#{bindings.return.items}"
binding="#{backingBeanScope.backing_test12.si1}"
id="si1"/>
</af:selectOneChoice>
This code works fine and drop down shows userbean .
But when i change the code it fetch username form bean exception occurs
Changed Code-
<f:selectItems value="#{bindings.return.items.*Username*}"
binding="#{backingBeanScope.backing_test12.si1}"
id="si1"/>
Exception-
*[ServletContext@15368949[app:ADF module:ADF-ViewController-context-root path:/ADF-ViewController-context-root spec-version:2.5]] Servlet failed with Exception*
java.lang.NumberFormatException: For input string: "Username"
* at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)*
* at java.lang.Integer.parseInt(Integer.java:449)*
* at java.lang.Integer.parseInt(Integer.java:499)*
* at javax.el.ListELResolver.toInteger(ListELResolver.java:373)*
* at javax.el.ListELResolver.getValue(ListELResolver.java:167)*
* Truncated. see log file for complete stacktrace*
FYI:- This control wokrs fine when i but this data in table . Not sure about the reason for select choice :( -
Display image in flex from database
I am using flex and java and mysql,
I upload image file into database from flex application.Now i want to display image in my flex
RIA application from database.
How can i do that??
Thanks in advance!!!"B.O.H.R." <[email protected]> wrote in
message
news:g91dr3$b0f$[email protected]..
>
quote:
> Ordinary Flex can't do this. You could probably do it in
AIR. There's a
> separate forum just for AIR applications.
>
>
> Could you precise which things flex CAN'T ?:
>
> 1. load image file from local disk and represent it as
an object in Flex
> app?
> 2. display image represented as object(created as above)
in Flex app?
> 3. transfer that object back and forth to database using
BlazeDS ?
>
> Maybe there are posibilitie to make workaround of some
inconviniences?
> I am asking becaouse I realy would like to create such
app in Flex.
Flex can create an AIR application.
But a swf file can't read from the local drive.
HTH;
Amy -
How to select value from database view with * in wher clause
Hi ,
I ahve a database view with some fields.
Now my requirement is to serach a single row on the basis of process type.
Process type can have values like ZBA,ZBC,ZBD,ZBE or similarly anything starting with ZB.
Now i know that starting two letters will be ZB , but dont knwo the last letter.
So how should i use select query for the same?
Should i use like operator for the same?
regards
PGhi,
u can use character '%'.sample code like this
SELECT reltype
instid_a
catid_a
instid_b
FROM /dbm/ord_docflow
INTO TABLE it_link
FOR ALL ENTRIES IN it_pnwtyh
WHERE instid_a = it_pnwtyh-instid_a AND
instid_b LIKE 'QMSM%' AND
typeid_a = 'BUS2400' AND
typeid_b = 'BUS2400' AND
catid_a = 'BO' AND
catid_b = 'BO' AND
reltype = 'VONA'.
this is similar to using* while we fetch values from table.in the above code only i no QMSM rest values not sure,so used QMSM% -
Memory leak pulling in data from database view or database table
Post Author: Thang Nguyen
CA Forum: Data Integration
Hi,
I'm experiencing memory leaks when using DI to load from a database view or table. I have seen the issue on 11.7.2.0 and 11.7.2.2 and was wondering if anyone else has seen it.
You can see the row count in the monitor tab going up, but with every 1000 rows it pulls in the al_engine process consumes more and more memory until it gets to 2GB and crashes with an unknown error.
Simlir behaviour is seen in the validation transform when doing and "IN" to another table, and with table comparisons.
I've got a webex with support tomorrow as they don't seem to belive that this happening and just want to get a heads up if anyone else was seeing this problem.
ThanksPost Author: tambol
CA Forum: Data Integration
HI,
i am experiencing similar error :
Unknown error in transform <AIView4>.
i am using older version of BO. how could i possibly fix this without upgrading to newest version?
please don't be too techincal when explaining...new here
thanks a lot! -
How to read records from Database view
Hi folks,
well...let me know, y im getting error as : V_T52EL is not defined in the ABAP dictionary as Table , Projection view or Database view.
But actually here this View Type is : Maitenance View.
SELECT KOART
from V_T52EL
where ENDDA GE SY-DATUM AND
SYMKO EQ T030-BWMOD.
plz let me know..guys.
Regards,
KumarHello,
Maitenace View reocird can be viewed only through Tcode SM30
Vasanth -
Replication from Database Views
Hi,
We have a requirement to replicate data from a Database View in ECC to HANA.Is there any SLT DMIS version that supports data replication from Views? Replication should work from: ECC-->SLT-->HANAHi,
this is supported with DMIS2011 SP6:
-Support Views for initial load and / or replication (view must contain key fields of original table)
Views can be database or projection views.
Best,
Tobias -
Display text in label from 'for loop'
Hi
I'm new to Java, in fact so new just started yesterday.
I'm trying to display all the values from a for loop into a label control in my application.
Problem is, its only displaying the last number. Can anyone please help.
Thanks
George
--------------------------------------------Code----------------------------------------------
int lottoNumbers1 = Integer.parseInt(txtLotteryNumbers1.getText());
int lottoNumbers2 = Integer.parseInt(txtLotteryNumbers2.getText());
int lottoNumbers3 = Integer.parseInt(txtLotteryNumbers3.getText());
int lottoNumbers4 = Integer.parseInt(txtLotteryNumbers4.getText());
int lottoNumbers5 = Integer.parseInt(txtLotteryNumbers5.getText());
//int lottoNumbers6 = Integer.parseInt(txtLotteryNumbers6.getText());
int arrUserInput[] = {lottoNumbers1, lottoNumbers2, lottoNumbers3, lottoNumbers4, lottoNumbers5};
int arrRnd[] = new int[5];
Random rnd = new Random();
for (int i = 0; i < arrRnd.length; i++) {
arrRnd[i] = rnd.nextInt(49);
boolean isfound = false;
for (int i = 0; i < arrUserInput.length; i++) {
isfound = false;
for (int j = 0; j < arrRnd.length; j++) {
if (arrUserInput[i] == arrRnd[j]) {
isfound = true;
if (isfound) {
//System.out.println("Same Numbers again : " +arrUserInput[i]);
String numbers = Integer.toString(arrUserInput[i]);
int res = NumberCount.wordcount(numbers);
//System.out.println("Number of matches : " +res);
switch (res) {
case 1:
lblNumbersEntered.setText("You matched 1 number " + arrUserInput[i] + " and win nothing");
System.out.println("Number of matches : " +res);
break;
case 2:
lblNumbersEntered.setText("You matched 2 number " + arrUserInput[i] + " and win £2");
System.out.println("Number of matches : " +res);
break;
case 3:
lblNumbersEntered.setText("You matched 3 number " + arrUserInput[i] + " and win £10");
System.out.println("Number of matches : " +res);
break;
case 4:
lblNumbersEntered.setText("You matched 4 number " + arrUserInput[i] + " and win £50");
System.out.println("Number of matches : " +res);
break;
case 5:
lblNumbersEntered.setText("You matched 5 number " + arrUserInput[i] + " and £1000");
System.out.println("Number of matches : " +res);
break;
default:
lblNumbersEntered.setText("You have matched no numbers");
System.out.println("Number of matches : " +res);
break;If you want a complete history of each time you go through the loop, you have to construct the history:
[code]
myLabel.setText("This");
MyLabel.setText(" is");
myLabel.setText(" good");
[/code]
myLabel will contain only " good", since that is what myLabel was set to last, but if you want the history:
[code]
myLabel.setText("This");
MyLabel.setText(myLabel.getText() + " is");
myLabel.setText(myLabel.getText() + " good");
[code]
Should give you "This is good", as each time the contents of myLabel are retrieved and appended before myLabel is given the new set value. -
How can I display the descriptor column from a view in my BR message
I have a table, Memberships, that contains a column for staff id. The staff data is on a remote database and I have created a view to access the required data. I have set the descriptor sequence for the name column of the staff view but the BR still displays the id.
I'm assuming that because staff is a view and has no capi of its own, the membership capi cannot call the staff capi function display_label.
I still would like to display the name of the staff member instaid of the ID. Can anyone suggest a workaround to force the display but without having to customize the membership capi after it has been created by headstart?Hi,
try altering the code to create the capi.
I modified this code allready quite a lot to achieve my goals.
I also had that problem, and solved it by altering the code that generates the display_label. For each display_label funtion, I add a call to a package- function 'APPPA_LABEL.display_label' with parameters the tablename and the pk of the record. In the packagefunction, you can write your own definition of the display-label.
The Productivity Boosters look a bit difficult in the beginning, but when you get to know them, you can achieve some good results.
Greetings,
Kristof -
Change display language of smartform from within the smartform itself
Hi!
The smartform is invoked to display from the standard with some language, which we want to change.
We can't change calling code (because it's standard).
Is it possible to change the displaying language of a smartform from within the smartform. Say, "Initialization" section?Hi Concern,
We can change language at run time. With following way.
1. Define a variable and allocate language u want to langu fields.
DATA lV_CT_PARA TYPE SSFCTRLOP.
Here LV_lang contain the language u want to assign.
LV_CT_PARA-LANGU = LV_LANG.
2. Pass it to smart form.
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = LV_CT_PARA
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
Itu2019s working for me.
Regards
Swati.
Edited by: Swati Namdev on Apr 28, 2010 7:06 PM -
Changing tomcat to read jsp from database
Is there any way to change tomcat 5.5 to read the JSPs from a database instead of local disk. I have been reading the tomcat javadoc for some time but was unable to find the right classes to customize for this task.
Can you please give us a help on which are the sections that we should look into to create this feature?
THANKS!It doesn't make sense to read a database directly from an applet. If an applet needs data from a database is should request if from the server which the applet is located on and the server should do the actual database actions.
The whole point of applets is that they require no installation on the client machine. If you have to change policy files or the like, you might as well install a Swing application. Furthermore accessing a database tends to depend on how the client is set up on the network. Any sensible network has firewall settings that block access to the database ports to any external access (and, again, if you are limiting the facility to a few internal machines then why not just install a program on them).
Maybe you are looking for
-
Can you use Tiger On An Ibook g3 ?
My friend is trying to install tiger on his Ibook G3, he has 640mb of ram, 500 mhrz, and currently is running mac os 10. when he tries to install tiger is says this cannot be installed on this computer? can any explain or maybe help to get it working
-
Maximum Database size in exchange 2007
Hi Team,<o:p></o:p> What is the maximum database size we can have in Exchange server 2007 SP3 RU8 standalone server.<o:p></o:p> In our environment we have 1800 users hosted on the exchange 2007 server with DB size(EDB file) of 1.61TB. What is the max
-
If I have I wifi tv do I still need apple tv
Do I still need apple tv if my tv is wifi
-
Hi, Last September I have cancelled my contract and paid cancellation fee. In the last two days mone has been taken from my account and it appears as: LNK BT PHONE, BRIG CD 7315 09JAN14ATM OWNER FEE 1.45 11.45£ LNK BT PHONE, BRIG CD 7315 10JAN14ATM
-
Hi there, I'm trying to find somewhere a font that looks like the type that is extruded on a credit card. Any ideas?