Displaying random questions from the backend
Hi,
Is it possible to randomly select a question and display it on the page with different options. Say for example, if I have a question and that has three values as answers which are to be displayed in radio button style, will it be possible to display it dynamically by selecting the values from tables?"
The questions and the options are stored in the table.
Hi Suzi,
Radio buttons can appear vertically or horizontally on a page - to set them horizontally, you need to specify "Number of columns" on the radio item's definition. As you won't know exactly how many items there will be, you can just set this to the highest possible number of options.
When the page is submitted, you should have the question number (created using the random number generator I mentioned before) plus the value of the option selected - this would be the return value for the item rather than the display value, so if the user sees "Yellow", but the return value is "1", then the item is set to 1 not Yellow. How this gets onto the database will depend on how you have set the page up. Most likely, you would just have a simple page process that does something like:
BEGIN
INSERT INTO ANSWERS (QUESTION, ANSWER) VALUES (:P1_QUESTION, :P1_ANSWER);
END;This should be conditional on a Submit button
Andy
Similar Messages
-
Grabbing Random Questions for the Question Pool
Hi Everyone,
I am interested in exactly how the Random Question Pool
works. Let's say there are 50 questions in the question pool and
you want 10 questions from that question pool of 50. When you
publish I understand you will get 10 random questions from the 50
questions. Then when you run your published project are you always
going to get the same 10 questions or another 10 of the 50 pooled
questions everytime your run that same published project? Or do you
have to publish again, calling the quiz another name to get another
10 of 50 questions from the question pool? I appreciate the help on
this.Hi slewis6337
It is my understanding that each time you
display the Captivate output, you see a totally random
question. So if your question pool contains 50 questions, each time
your Captivate output presents the random question and draws from
the pool, it is truly drawing a totally random question.
I do believe that Captivate does keep track of which
questions have been used in the pool. To test this, try creating a
pool containing three questions. Then create four random question
slides that point at the pool. Then try running the Captivate. You
should see that as random question number four is encountered, the
screen goes totally gray. This is happening because you have
exhausted the question pool.
Sincerely... Rick -
"No response from the backend application". Oracle DB
Hi everybody,
I have a problem with a connection to a Oracle DB. Here are the steps:
1. I created a system in my portal to call a Oracle DB with the SAP template com.sap.portal.systems.jdbc.jdbc_system
2. I filled the parameters and the conection test is ok.
3. I created an iView based on com.sap.portal.applications.enterprise.iviews.Database_JDBC_iView
4. This iView use the system I created before and is sending a simple query.
The result is the message:
"No response from the backend application"
I have been reading the page
http://help.sap.com/saphelp_nw04/helpdata/en/29/acd8403e37762ae10000000a155106/frameset.htm
in Help.sap and i supose that my case could be 1.2 because I have mapped an user (case 1.1) and my DB is up and connection is ok (case 1.3), but...what have i to recheck in my configuration to remedy the situation??
Thanks all.
Guillermo.Hi Ramesh,
Yes I am using the driver class but in the connection URL I wrote jdbc:sap:oracle://183.145.5.10:1527;sid=HEX
And here my question is, have I to put user and password of the administrator of the DB in this parameter? I dind't put because I mapped later in user management.
And the connection tests is successful.
Thanks for the awnser.
Guillermo. -
Need functionality to pick any 3 random questions from 5 input fields
Hi Experts,
In our password reset web dynpro application, we are providing 5 security questions to be answered by users,
but can we have the option to give only any 3 input fields randomly from 5 and allowing to be filled.
Need functionality to pick 3 random questions from 5.
Thanks in Advance
Sateesh JHi,
modify the sample code accordingly or else use below code.
DATA :
lv_mini TYPE i,
lv_maxi TYPE i,
lv_rndi TYPE i,
lv_i TYPE i.
lv_mini = 1.
lv_maxi = 5.
lv_i = 3.
WHILE lv_i > 0.
CALL FUNCTION 'QF05_RANDOM_INTEGER'
EXPORTING
ran_int_max = lv_maxi
ran_int_min = lv_mini
IMPORTING
ran_int = lv_rndi
EXCEPTIONS
invalid_input = 1
OTHERS = 2.
CASE lv_rndi.
WHEN 1.
WRITE :/ 'Question - ',lv_rndi.
WHEN 2.
WRITE :/ 'Question - ',lv_rndi.
WHEN 3.
WRITE :/ 'Question - ',lv_rndi.
WHEN 4.
WRITE :/ 'Question - ',lv_rndi.
WHEN 5.
WRITE :/ 'Question - ',lv_rndi.
WHEN OTHERS.
ENDCASE.
lv_i = lv_i - 1.
ENDWHILE.
Thanks,
Chandra -
When I first got my phone it worked perfectly fine with the wifi. Although later on I began to have problems connecting it. It will randomly disconnect from the wifi and when I try to retype the password it tells me it is wrong, although it is right. It will eventually work but in its own time, a message will pop up and allow me to type in the password and it will work. But sometimes it takes an hour or more and sometime it takes 10 minutes. I've seen where other people have had this problem but I don't know how to fix it. I'm not sure if it's an issue with my phone or if it's with my wifi. Does anyone know how to fix this?
Does this happen with all Wi-Fi hotspots? A specific one?
Have you tried forgetting the Wi-Fi connection and then reconnecting to it?
What about power cycling the Wi-Fi router? -
Since installing iOS 7 messages randomly disappear from the messages list. When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages. 'Fred' messages then re-appear in Message list. Why? How to stop messages disappearing from message list? Thoughts?
Since installing iOS 7 messages randomly disappear from the messages list. When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages. 'Fred' messages then re-appear in Message list. Why? How to stop messages disappearing from message list? Thoughts?
-
Creation of Collaboration Room from the backend.
Hi,
I need to create the collaboration room from the backend. When I tried to do so, its showing the error "Error in RFC Connection". I checked the RFC connection, its working fine.
Do i need to set any configuration properties either in portal or R/3 to enable the creation of collaboration room from the backend.
Kinldy provide your valuable inputs.
Thank you.
Regards,
EbenHi,
If ur talking abt creating rooms from backend in e-learning then thier is some configuration document for that
Please check..
Thanks and regards,
sarang -
After ios6 update, I have lost all control of audio via Bluetooth, plus my Bluetooth car radio is no longer displaying track information from the iPhone. Help!
Hi there,
You're running an old version of Safari. Before troubleshooting, try updating it to the latest version: 6.0. You can do this by clicking the Apple logo in the top left, then clicking Software update.
You can also update to the latest version of OS X, 10.8 Mountain Lion, from the Mac App Store for $19.99, which will automatically install Safari 6 as well, but this isn't essential, only reccomended.
Thanks, let me know if the update helps,
Nathan -
My iPod display I separating from the chrome back. There are no close apple stores. What should I do?
If covered by warranty, and not abused Apple will exchange it at no cost. You can send it to Apple See:
Apple - Support - iPod - Service FAQ
Otherwise,
Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
Apple - iPod Repair price -
Close open PO from the Backend.
Hi Guru's
How can we close the open PO from the backend with Zero dollar. As I understood PO_action.po_close would be the solution but can we close the Open PO without using API is there any script to close please share it I highly appreciate your help
Thanks & regards
ATFollowing is a sample script to cancel the purchase order using Cancel PO API:
To cancel the whole PO, submit the cancel API using sqlplus as follows:
DECLARE
l_return_status VARCHAR2 (1);
BEGIN
fnd_global.apps_initialize (1053, 50578, 201);
-- mo_global.init('PO'); -- need for R12
--call the Cancel API for PO
PO_Document_Control_PUB.control_document (1.0, -- p_api_version
FND_API.G_TRUE, -- p_init_msg_list
FND_API.G_TRUE, -- p_commit
l_return_status, -- x_return_status
'PO', -- p_doc_type
'STANDARD', -- p_doc_subtype
NULL, -- p_doc_id
'23975', -- p_doc_num
NULL, -- p_release_id
NULL, -- p_release_num
NULL, -- p_doc_line_id
NULL, -- p_doc_line_num
NULL, -- p_doc_line_loc_id
NULL, -- p_doc_shipment_num
'CANCEL', -- p_action
SYSDATE, -- p_action_date
NULL, -- p_cancel_reason
'N', -- p_cancel_reqs_flag
NULL, -- p_print_flag
NULL); -- p_note_to_vendor
-- Get any messages returned by the Cancel API
FOR i IN 1 .. FND_MSG_PUB.count_msg
LOOP
DBMS_OUTPUT.put_line (
FND_MSG_PUB.Get (p_msg_index => i, p_encoded => 'F'));
END LOOP;
END;
The first run of the API will demonstrate cancelling shipment number 3 on line number 1 of the PO. Submit the cancel API using sqlplus as follows:
DECLARE
l_return_status VARCHAR2 (1);
BEGIN
fnd_global.apps_initialize (1053, 50578, 201);
-- mo_global.init('PO'); -- need for R12
--call the Cancel API for PO
PO_Document_Control_PUB.control_document (1.0, -- p_api_version
FND_API.G_TRUE, -- p_init_msg_list
FND_API.G_TRUE, -- p_commit
l_return_status, -- x_return_status
'PO', -- p_doc_type
'STANDARD', -- p_doc_subtype
NULL, -- p_doc_id
'23975', -- p_doc_num
NULL, -- p_release_id
NULL, -- p_release_num
NULL, -- p_doc_line_id
'1', -- p_doc_line_num
NULL, -- p_doc_line_loc_id
'3', -- p_doc_shipment_num
'CANCEL', -- p_action
SYSDATE, -- p_action_date
NULL, -- p_cancel_reason
'N', -- p_cancel_reqs_flag
NULL, -- p_print_flag
NULL); -- p_note_to_vendor
-- Get any messages returned by the Cancel API
FOR i IN 1 .. FND_MSG_PUB.count_msg
LOOP
DBMS_OUTPUT.put_line (
FND_MSG_PUB.Get (p_msg_index => i, p_encoded => 'F'));
END LOOP;
END;
This time, the API will be used to cancel all of line 1. Submit the cancel API using sqlplus as follows:
DECLARE
l_return_status VARCHAR2 (1);
BEGIN
fnd_global.apps_initialize (1053, 50578, 201);
-- mo_global.init('PO'); -- need for R12
--call the Cancel API for PO
PO_Document_Control_PUB.control_document (1.0, -- p_api_version
FND_API.G_TRUE, -- p_init_msg_list
FND_API.G_TRUE, -- p_commit
l_return_status, -- x_return_status
'PO', -- p_doc_type
'STANDARD', -- p_doc_subtype
NULL, -- p_doc_id
'23975', -- p_doc_num
NULL, -- p_release_id
NULL, -- p_release_num
NULL, -- p_doc_line_id
'1', -- p_doc_line_num
NULL, -- p_doc_line_loc_id
NULL, -- p_doc_shipment_num
'CANCEL', -- p_action
SYSDATE, -- p_action_date
NULL, -- p_cancel_reason
'N', -- p_cancel_reqs_flag
NULL, -- p_print_flag
NULL); -- p_note_to_vendor
-- Get any messages returned by the Cancel API
FOR i IN 1 .. FND_MSG_PUB.count_msg
LOOP
DBMS_OUTPUT.put_line (
FND_MSG_PUB.Get (p_msg_index => i, p_encoded => 'F'));
END LOOP;
END;
Reference:Oracle Apps Cancel PO API Training | Oracle Apps Scripts & Tips -
Enable deactivated productiove password from the backend
Hi Experts,
Does any one know how to enable deactivated productive password from the back end. The scenario is administrator him self not logged in continuously for 90 days and the login/max_idle_productive is set to 90 days and login/password_expiration_time set to 60days and the productive password got deactivated.
We can do this by deleting sap* and relogin sap* and reset the password. But I want to know how to do from the backend.
I tried this.
updated schemaname.usr02
set pwdstate=0 where bname='XXXX' and mandt='000';
commit,
But this didn't work. I know the id is not locked. Thatswhy I didn't set uflag to 0.
Appreciate if anyone could help on this?
Thank you
Venkat
Edited by: Venkat Battula on Aug 18, 2010 7:22 PM>
Venkat Battula wrote:
> Looks like even trusted connection and RFC also doesn't work as all ids got disabled because of the productive password parameter set. I see only alternative for me is delete sap* and activate all the ids.
>
> Thank you all very much for sharing your thoughts and really appreciate your prompt response with great suggestions.
>
> Thank you all once again,
> Venkat
Sorry, but this is a wrong assumption.
Only password-based authentication is effected by passwords and their status (locked, expired, ...).
In any case you experience problems to logon to an ABAP server, kindly use the tracing approach described in [SAP Note 495911 |https://service.sap.com/sap/support/notes/495911]to analyse the cause.
By the way: the trigger for this feature (to specify after which time of not using a password it shall no longer be usable for authentication) is an Italian law. So, it's mandatory for Italian customers but optional for all others to make use of that feature. -
How to split a html page without frames and display random questions
1) In my online examination application i need to display timer at the top of the page. even if the user
scrolls down the timer should be visible. is there any way to do this without frames.
2) questions are displayed randomly for each user. iam using rand() function to retrieve the questions from mysql database. now the problem is if the user refresh the page another set of questions are displayed. how to avoid this.
thanksHi Thanuja,
Can you try it with the one below..... and checkout whether tht works or not
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<script language="javascript">
var i=0
function showDate()
i=i+1
document.getElementById("staticcontent").innerHTML= "<center><b>Time : " + i +" secs</b></center>"
setTimeout("showDate()",1000)
</script>
<body onload="showDate()">
<div id="staticcontent" style="position:absolute; border:1px solid black; background-color: lightyellow; width: 135px;">
</div>
<script type="text/javascript">
//define universal reference to "staticcontent"
var crossobj=document.all? document.all.staticcontent : document.getElementById("staticcontent")
//define reference to the body object in IE
var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
function positionit(){
//define universal dsoc left point
var dsocleft=document.all? iebody.scrollLeft : pageXOffset
//define universal dsoc top point
var dsoctop=document.all? iebody.scrollTop : pageYOffset
//if the user is using IE 4+ or Firefox/ NS6+
if (document.all||document.getElementById){
crossobj.style.left=parseInt(dsocleft)+5+"px"
crossobj.style.top=dsoctop+5+"px"
setInterval("positionit()",100)
</script>
<%
/* JSP LOGIC*/
%>
<!-- Customized HTML content -->
</body>
</html>REGARDS,
RaHuL -
A way to display error messages from the program
Dear all,
I am looking forward to display a set of error messages(in a internal table) during the execution of the program to the user.
I wanted to know the better way of displaying error messages from my program with more options.
Well I tried out using displaying errors as ALV list/Grid or as simple list processing.
But I found some stanadard transactions (Like in MM and FI where errors are shown in a better way, but failed to find out how they are done.
Please guide me.
Thanks in advance
AryanTry to use application logging it has a very good way to display a set of messages.
[http://abap4.tripod.com/Using_Application_Logging.html|http://abap4.tripod.com/Using_Application_Logging.html]
Run this report in se38 an example sap report to understand logging way to show a set of messages
Report Name : SBAL_DEMO_01
Edited by: Vighneswaran CE on Dec 19, 2010 3:01 PM
Edited by: Vighneswaran CE on Dec 19, 2010 3:11 PM -
I have a Macbook Pro Early 2011 from the USA. It is now running Mavericks. I connect it to a 27" Cinema Display that I bought in China after we moved to China. Before I installed Mavericks, I could run all of the Adobe CS6 and Adobe CS5.5 applications on my Macbook Pro while connected to the cinema display. Now that I have Mavericks installed, whenever I am connected to my 27" CInema display my Adobe applications crash upon opening. I know this is a rare scenario, but does anyone have any ideas how to fix this problem? Is there a new driver that needs installed? I'd appreciate any help.
I am also having a similar issue. I used Adobe Lightroom and my whole display goes black. Even my laptop screen and the lights on the keyboard go black. I can still hear the fan running, so I assume it is just the display. This is my first Mac and I have had nothing but issues. I think I am going back to Windows after this.
-
Why does Photoshop display colors differently from the other applications even in sRGB mode ?
Hello all !
Here is my problem :
Photoshop is set to use sRGB workspace (in edit/colors.../workspace/RVB).
If I understand correctly this is how all native windows applications work.
This means Photoshop and the other applications should display the same colors on a file with a sRGB profile.
Now this is the case until I calibrate my monitor.
When I do, Photoshop colors become different from the other applications (irfanview, explorer, browsers...).
The only way I found to let everything display the same colors is to set Photoshop to use Proofing/RVB Monitor.
What upsets me even more is that Photoshop colors look "better" to me (dark grays seem to dark to me in the other applications.)
I have read that this is because Photoshop takes the new profile into account and others applications do not. But I don't think this is relevant here because everything is in sRGB so the only profile is my monitor's and I think calibration is handled globally by windows : everything (including browsers, explorer, and Photoshop) changes color if I choose to apply the monitor's profile or not with windows color management tool ("use my parameters for this device").
Here is my system configuration :
- Photoshop CS4 (11.0.2)
- Windows 7 64 bits
- HP ZR2440W and DELL 2209WA (these are not wide gamut screens)
I have spent two days trying to figure the logics behind this and really am upset. Any help would be greatly appreciated. Don't hesitate to ask me if there is something that is unclear or some information I forgot to mention.
Thanks in advance,
YannickThat sounds like an invitation to continue to talk about the issue. Fair enough.
I'm not sure where you're getting "insecurity"... I am just trying to help you help others more effectively.
I invite you to re-read just the first sentence of what you wrote very carefully, putting yourself in the shoes of someone struggling with both the terminology and the concepts:
Photoshop (CMS) reads an embedded ICC profile and CONVERTS it to the custom monitor profile for a theoretical 'true color' display
Think about what "Photoshop (CMS)" might mean to a person who doesn't know the acronym might stand for "Color Management System" (which is I assume what you meant). Adobe themselves don't call it "CMS", they use the acronym "CMM" (Color Management Module). The term "CMS" is used in the computer industry for about a dozen different things.
While a color profile might have been embedded in an image file before it was opened by Photoshop, Photoshop works on documents. A profile is not "embedded" in a document, it is maintained by Photoshop with the document and describes the color values in the document. If Photoshop opens a document without an embedded profile, depending on settings and user choices it might assign a profile or it might even operate on the document without color-management. Oversimplification doesn't help people when they're trying to learn new things unless it's described as such, for example, "This is a bit of an oversimplification..." or "Generally speaking..."
Not every monitor profile is a "custom monitor profile". Quite often a standard profile (e.g., sRGB IEC61966-2.1) is associated with a monitor by the operating system as a default, or a factory profile is installed by a driver package or system update. Your use of the term "custom" is a bit ambiguous and could be read as implying the creation of a profile using a calibration and profiling device specific to the particular monitor.
Photoshop's color management code does not convert an embedded ICC profile at all (read carefully what you wrote). As I said, it transforms color values. That was the key error in your description that prompted me to comment.
If ever there is a time to pick words carefully, it's in a color-management discussion.
-Noel
Maybe you are looking for
-
Need help upgrading from iPhoto 2... keep photo comments?
I currently have iPhoto 2 that originally came with my eMac. I have recently upgraded the operating system to the 10.4.11. I have tons of photos in iPhoto 2. Ultimately, this has slowed down the response time when working in iPhoto. I am trying to fi
-
Bug in ADF installer 10.1.3.2?
I am running IAS 10.1.3.0 and since I am developing in Jdev 10.1.3.2 and I was getting the following error: java.lang.NoSuchMethodError: oracle.adf.share.perf.StateTracker.isActive()Z when deploying and running my application so I figured I needed AD
-
Display/Edit custom document attributes in PC-UI
Hi CRM Fellows, we've customized via transaction DMWB - Document Modelling Workbench some additional attributes for the documents derived from Class CRM_P_ORD and CRM_L_ORD. Via the GUI in Transaction CRMD_BUS2000126 - Activities we can upload docume
-
Configure SAP authentication for BusinessObjects
Hi, I am configuring SAP authentication for BusinessObjects. I created a user account for BusinessObjects Enterprise on SAP with Authorization object, field, Value as "BusinessObjects XI Integration for SAP Solution Installation Guide". After add an
-
Mounting cifs via fstab?
so i have 3 shares on my windows server. i can access them from my arch box fine. but the problem is, although i have them setup in my fstab, they don't seem to mount on boot. i have to run mount -a after i'm logged in any way to fix this? here's teh