Skipping prompt page when using URL [cognos] - business-intelligence

I have a report with a prompt page. I want to skip the prompt page by passing the parameters in the URL ( ie &p_promptgeo=x) and setting &run.prompt=false but I just get the reprot with the default parameter of the prompt not the parameter I set in the URL (here x).
Any suggestions as to how I can accomplish this?

I couldn't replicate your problem. I created a test report with a single parameterized filter and a prompt page with a prompt tied to the parameter. I then went into the properties of the report in the portal to grab the 'Default action URL'. I changed the run.prompt in the URL to false and appended the report parameter as you described above. Using this URL the report ran without rendering a prompt page and it passed in the value I supplied in the URL.
One thing you can try is to set a render variable on the prompt page. Have the variable check for the non-existence of the parameter (e.g. ?p_promptgeo? is null) and only render the prompt page if no value is passed in. I tested this scenario and it works, even if you have run.prompt=true.

Related

How to prevent a user to open a new tab and pasting the URL of another page?

Under APEX 21.2 I would like to prevent users to open a new tab and to paste an URL of another page. In the Shared components I have set the following attributes :
Session state protection : Enabled
Page Access protection : No URL access
Page data Entry Item protection : Checksum required - Session level
Page display only Item protection : Checksum required - Session Level
Application item protection Checksum required - Session Level
However when I try to run the application (page one) I get an error message :
"This page cannot be invoked using a URL or using a GET or POST to the show procedure, it must be called using a "Branch to Page" branch type."
The problem that I am trying to solve is the following : when user lands on a page, he can run operations. I don't want him to run the same operations on another page where he paste the URL of the previous page.
For example if it is running the page :
http://sldcfrcr1225:18080/ords/beeapi/r/beeapi129/home?session=12425282030779
I don't want him to open a new tab and to paste this URL. I would like him to be given a new session number I think.
The main thing is I don't want the user to choose a line in a report that launches PL/SQL operation in a tab and in another tab he chooses the same line that launches the same PL/SQL operation. It is important he does not do the same operation in parallel at the same time.
Best regards.

How to set variable and its value in Jmeter container like User Parameters using script

I need to set and get variables in Jmeter for API automation.
I am using the groovy script for same.
I am able to store key-values in Property Files using below code:
props.put("shubhamKey", "shubhamValue")
I do not want to use the main property as it contains so many other keys which may use by Jmeter and we can't place any hardcode key in property directly.
But I am not an able set similar thing in any of below containers :
User Defined Variables
User Parameters
The code I am trying is as below:
vars.put("shubhamUserKeyagain","shubhamUservalue")
Use vars.put and execute the script and click on User Defined Variables. The new key should reflect there but it's not. That is my main issue
I have tried to place User Parameters just below in TestPlan, With-in the request where JSR223 Assertion is present, also tried to place it before and after JSR223 Assertion
My get value is working fine from these containers but the set is not reflecting over the containers. Below code, I am using to get the value
vars.get("shubhamLocalVariable")
Another code I have tried :
vars.putAll("myNormalValue","changeho")
Is there any other container in which I can set and get key-values using the script as groovy.
Environment :
OS : Window 10
Jmeter Version: 3.2 r1790748
Running bat file as an administrator
I have added my project in below URL:
https://ufile.io/7r6tk
Please refer and let me know if I missed anything
Reference Screenshots:
User Parameter
JSR233 Assertion
This one works for me - I have cleared up your script

Why does windows pass full custom url including protocol to handling application?

I am trying to create my own URL protocol to initate a custom application from a URL in our internal CRM.
I have created the following registry entry as such:
REGEDIT4
[HKEY_CLASSES_ROOT\smon1]
#="URL:smon Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\smon1\shell]
[HKEY_CLASSES_ROOT\smon1\shell\open]
[HKEY_CLASSES_ROOT\smon1\shell\open\command]
#="\"C:\\smon.exe\" \"%1\""
I have the following link on my site:
<a href='smon:1955'>1955</a>
I would expect this to pass the variable 1955 to the aplication c:\smon.exe.
However it is passing the entire variable "smon:1955".
Why is it passing everything instead of the variable?
What am I missing here?
Your not missing anything, that's how the handlers work; the whole URI is passed in the command line. Detect and parse it away.
The rationale is presumably that it allows multiple protocols to be associated with the same executable without needing to provide custom discriminatory switches in the command key.
To give an example
An Example
this is passed to the browser and shown in the url bar as http://www.example.com

Simple Coded UI login test on remote server

I used Microsoft Test Manager to create a test for a log on page (not locally hosted) and recorded this. All steps were executed without errors.
Then I've created a Coded UI test project in Visual Studio 2013.
I added a Coded UI Test with the existing recording.
I ran the test and I got the message below:
"FailedToPerformActionOnHiddenControlException: Cannot perform 'SetProperty of Text with value " on the username field.
I received this message when using the existing recording, but also if I record using the recording function in Visual Studio.
Has someone got experience with Coded UI Tests and maybe give me an example as to how to set it up.
If I understand correctly, you're basically trying to have Coded UI input a value into an HtmlInput control that's a text box on a web page. The error message "FailedToPerformActionOnHiddenControlException: Cannot perform 'SetProperty of Text with value" normally means that the value you're trying to submit isn't able to be taken by the control, either because a value isn't accepted (example, numeric values in a name field) or because it's more characters than can be accepted by the field. It could also be that the recording isn't defining the object properly, and that the property Text isn't an option on the control that was found.
So, confirm these three things:
1. The control you're tying to send value to is actually an HtmlInput. You can't send the Text property to, for example, an `HtmlDiv`.
2. The value you're submitting is a valid value for your control (you're not trying to submit numbers, for example, into a field that won't accept them).
3. The value you're submitting is within the length limit for the field.
If I were a betting man, I would say that you probably don't have the object defined properly. Take a look at the SearchProperties of the control in question first and make sure that it matches the HTML on the page itself.
Do I need to set a standard environment for testing on an other server.
I develop the Coded UI test project in a workspace on a development environment, but I need the tests to be run on a acceptation environment (the recorded tests are executed on the acceptation environment).
I read it's easy to setup this environment though, but what is best practise?
Is it better to execute it on the same environment?
Here's a code snippet:
[TestMethod]
public void TestLogonToAccount()
{
// To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
this.UIMap.Enterusername();
this.UIMap.Enterpassword();
this.UIMap.Clickonlogin();
this.UIMap.ClickonCentral();
this.UIMap.Searchforemailaddress();
this.UIMap.Clickonlogin1();
}
I forgot an important part regarding the login recording test in MTM.
I just tried to play the steps again and got this error:
Playback of the selected sections of the action recording could not be completed The playback failed to find the control with the
given search properties. Additional Details: TechnologyName: 'MSAA'
Name: '' ClassName: 'MozillaWindowClass' ControlType: 'Window'

how to write queries in Hive Web Interface

I was playing around with hwi, I got it started.Now I can see the different schemas which are present. But I don't know how to query them. I tried to check hive wiki (https://cwiki.apache.org/confluence/display/Hive/HiveWebInterface) but they dont seem to have much information put over there. There seems to be a Running a query section in Walk through but it says image not found.
Anybody who has used HWI to query please suggest a way to use it.
Try these steps :
Open HWI : http://localhost:9999/hwi/index.jsp
Click on Authorize in the left pane. This will open the Change User Info section. Enter the username and hit submit to complete the authorization process. Upon successful authorization you'll see Authorization is complete at the top of your page.
Now click on Create Session, enter some session name and hit Submit.
Once you submit the session name you'll get the Manage Session screen. This is the place where all the action will take place. Come down to the Session Details section and enter a file name, say /Users/tariq/res.txt, in the Result File box. This is the file where the result of your query will get stored. If you expect your result to be very huge you can just enter /dev/null over there. Remember the result file is local to the web server. Similarly enter the error file if you wish.
Now come down to the Query box and write the query you want to execute.
Come down further to the Start Query drop down list, click on it and elect YES and hit Submit.
You should be able to see the file /Users/tariq/res.txt by now containing the result of your query. You can also view the result by clicking on View File option which will appear next to the Result File box upon the successful completion of your query.
HTH
Take a look at Hue - http://cloudera.github.io/hue/
This project is bundled with the Cloudera installation and seems to work rather well.
Best,
Sukrit

Resources