I'm trying to use a button which opens an email with pre populated information. But require variables from page elements.
so for example P45_DATE get the update date and P45_DATA gets the data.
I tried different element identifiers like : , & or #. but if used nothing gets return upto the first identifier.
mailto:test#test.com&cc=someoneelse#test.com?Subject=Extension report for &P45_DATE. &body=Please see Extension below. &P45_DATA
Is this even possible
Oracle 11g2
apex 4.2.5.00.08
many thanks
Depends on where you are defining this string and if you want client or session state values.
If as part of JavaScript expression, you might use something like:
'mailto:test#test.com&cc=someoneelse#test.com?Subject=Extension report for '+$v('P45_DATE')+'&body=Please see Extension below. '+$v('P45_DATA')
Bear in mind this isn't escaping the data. Also check to see if any errors are appearing in the JavaScript console.
Related
I'm using Google Data Studio to visualize results from various queries (from different tables within the same BigQuery-database).
For this reason, I created and use multiple data-sources-connectors. Each one of them has a SQL query included and makes use of an defined input parameter (which can be changed by report editors) - called "userid". It is the same id for all queries and resulting charts.
However, when I click "Manage URL parameters", I'm not allowed to use the same URL parameter for more than one data source (instead they are called ds0, ds1, ds2 etc - although they all end up being used as "userid").
If I add a data source under File - Report Settings, a new field "userid" appears, which I can alter - this will update ALL charts in the report with the very same userid (as expected). This works, but I do want to make use of an url which delivers an report with all updated queries depending on ONE userid.
Therefore, I guess I'm overseeing something - it should be possible to just use one query parameter to update the same "userid" for all queries in all data connectors? Or have I overlooked the possibility to fire multiple queries within one data source connector? Or is it expected to create a looong url full of redundant query parameters in this case?
I'm curious for your input!
Best regards :)
There does not seem to be any good solution for this.
For now the best workaround seems to be to just repeat the parameter multiple times -- it's ugly but it works. For example, use the URL parameter mapping screen to call the parameter u1, u2, etc., and then just pass all of them:
?params={"u1":"foo","u2":"foo"}
(URL encoded of course)
The ugliness is mostly for us developers: it violates our sense of DRY and clean code, and makes the URL much longer than it needs to be. However, most people don't care or know about the URL parameters so its irrelevant to them.
The bigger downside is that when the URL is distributed to clients (bookmarks, mobile apps), every time new data sources are added that require the same URL parameters, a new URL has to be distributed to clients for no good reason. A workaround for this is to build the URL dynamically via a simple redirector function.
This issue https://issuetracker.google.com/issues/180705297 is a feature request to implement this capability.
If you group the elements that you want to control with the same parameter (select and then shift G) then it will give you options to select the data source and the params box to apply to the group.
First of all, excuse my poor English.
I'm new to the oracle application express (Apex) and I'm kind of confused about maintaining.
I have a simple page with one item P2_ITEM1 and one button BUTTON1.
The button action is defined by dynamic action, and I defined two actions:
Execute PL/SQL with the following
APEX_UTIL.SET_SESSION_STATE('P2_ITEM1',:P2_ITEM1);
Alert to show the value of &P2_ITEM1.
What I'm expecting to see is an alert with the value of P2_ITEM1 that I have entered, but I always get null.
Here is a snapshot of the page design and page run.
Here I'm expecting to have the value 123 but it's always NULL UNLESS I submit the page.
Thanks in advance.
The &P2_ITEM1 is a substitution variable which is estimated after the page opened. in your case you just need to use JavaScript as alert $v('P2_ITEM1').
Are you using &P2_ITEM1. , dot in last?
I have a section Template'Section_library',in 'Section_library' i have a field 'first-name' who recuperate the value field from another section in my form so i used this expression
xxf:component-context()/root()/form/Section_TWO/mycontrol.
this expression not worked totally,the recuperation is done when i try to write in this field 'first-name'. i want a solution that automatically recuperate the value within any interaction of user.
I find this issue #3008 but i didn't understand it.
As of 2016.2, there is no reliable and supported way for code inside a section template to access information about the form it is used in. This is by design, but there are reasonable use cases that call for a section template being able to access things from the "outer form", and you're correct pointing to RFE 3008. For now I'd recommend you follow this issue.
I have a couple of classic ASP pages that require a user to enter their email and a specified 'keycode' that they have been given in order to gain access to a voucher that they can have emailed to them.
A voucher code is then dynamically generated and (currently) sent in the query string of the url to a second page that would then give the user the option to have the voucher emailed.
I now want to change this so that the voucher code is set as a session, rather than passing it via the url. But i'm having trouble trying to set the session.
I have pasted the code here in a Gist on github: http://gist.github.com/187622
The code errors on Line 47 as follows;
Microsoft VBScript runtime error '800a01a8'
Object required: 'Session'
/bennettsget/default.asp, line 47
I was wondering if anyone would be able to help? Apologies if my explanation or terminology is not correct. Classic ASP is not my language of choice, but it is one of those sites you inherit when starting a new job.
Thank you.
Remove the word "Set". Try
Session("fullcode") = fullcode
Set is usually used in conjunction with a full-blown object. When you're working with a Session, you're really setting a value for a collection rather than the creation of an object.
Renting houses can be nasty so I need to automate it. Please, have a look at here. If you make a mistake, all of your changes are gone. I tried to insert the values in the url like:
https://www.hoas.fi/web/hak_inet.nsf/WebHakemus?OpenForm&02.07?PersonFirstName=Alex?PersonLastName=Smith
but it does not work. What is the problem?
Firstly, your query string is incorrect. It should be:
https://www.hoas.fi/web/hak_inet.nsf/WebHakemus?OpenForm&02.07&PersonFirstName=Alex&PersonLastName=Smith
Secondly, in order to pre-populate the page with the results of the query string, the developer of the page would have had to added logic to extract the query string values and pre-populate the page with those values. In this case, it does not appear that they have done that.
You could try saving the page locally as HTML. Then you could modify the HTML to include your default values. You would also need to update any relative paths to point to the server as a full URL. Then you could open the page on your machine and hopefully post to the server. This assumes that they are not injecting any session or other temporary information in the page that they validate.