Oracle APEX 5 Calendar Region Create Link URL Issue - oracle-apex-5

There seems to be problem with Calendar region in APEX 5. When I set Create Link property with target type as URL and URL value with some JavaScript function, then I get following runtime error when I run the page.
Error

Create one region and select the region type is calendar
Create the sql query like display value and date (select description, des_date from followup )
Click the attibutes and select the settig tab assign the display name in Description and start column in des_date,
Run the page you will get the output
click here to see the example screenshot.

Related

how to cast to a clickable link and concatinate url together in sql

I want to concatenate to a link and then instead of showing the link as 'http.....' I want to show it as a 'link' that is clickable
doc_link
link
I get the error
Type l is not a defined system type.
select CAST(concat('https://somthing.co.il/','/parameter/') as link) as doc_link
from table
how to write is correct?
Thank you in advance!

How to find an internal identifier for an Odoo database?

In Python, I want to pass a unique identifier for an Odoo database to a third-party application so that I can identify which DB the request has come from.
Where can I find a unique identifier?
You can use Odoo standard context variable.
For example:
self.env.cr.dbname
or
self._cr.dbname
The Unique ID of your database can be found like this:
env['ir.config_parameter'].search([('key','=','database.uuid')])[0].value
Output:
'7571db5a-4f28-442e-b701-c391a7b13abe'
Or with the following SQL query: select value from ir_config_parameter where key = 'database.uuid'
Or in the UI : in App Settings :
Switch to debug mode by adding "?debug=1" in your url, reload the page: Then go to the last item in the top menu bar: Technical
in the dropdown menu > System settings ... And in the displayed table, look for database.uuid

How to get date in a Custom Object from a date field in Archer?

I have tried getting the value with JavaScript functions but getting Invalid date.
Also,
var dat = new Date(String(Archertech.UI.GenericContent.GetInstance().getFieldValue(ScheduledDate,false)));
gives the date from one field only, but there are two date fields.
I wonder where can I get the list of functions like
Archertech.UI.GenericContent.GetInstance().getFieldValue(ScheduledDate,false)
There is a Client Manager frontend API that is available which has many functions that will give you the values from fields in the Application.
To get all the function list :
Add a new Custom Object named "debugger" with the code debugger;
Save that object > Open Application > Add a new / Open a record
Open Browser's Console i.e F12 > Developer Tools > Console
Set Target to frame : Record.aspx
type "$CM." will get you a list of supported functions
Now, to get a date field value, use $CM.getFieldValue(fieldId);
Sourabh, you'd have to call the CM.getFieldValue() function for each date field you want to get the value of. There is no such function to retrieve all date fields at once.
RSA Archer doesn't provide any documentation for client-side functions.

selenium issue:How to capture dynamic voucher number in a website

I have a website where two users (user15 and user16), user 15 creates a voucher which gets approved by user16. So in the home screen of user15 a voucher number is generated which is dynamic as shown in image below.I need to capture this voucher number generated for the one whose status is ""Processed" and then put it into the search filter of user16 homepage screen.How can i capture this dynamic voucher number ?
voucher number image
Your table template looks static. It is only the rows that are getting changes so you can write an xpath like below which would directly get you the voucher name:
//td[text()='Processed')]/preceding-sibling::td[colnumber of VoucherNubmer]
Please follow following steps mentioned below:
First select all elements from the table within the list.
Then using foreach loop compare the status of the element.
After that if(status=="Processed") then using getText() method print the value of the vochure number.

SSRS - How to show external image based on URL inside column

I am trying to show images for products inside a basic report. The image needs to be dynamic, meaning the image should change based on the SKU value.
Right now I am inserting an image into a table, setting to external, and i've tried:
=Fields!URL.Value
=http://externalwebservername/sku= & Fields!SKU.Value
="http://externalwebservername/sku=" & Fields!SKU.Value
I do not get any images in my table.
My stored proc has all the data, including a URL with the image I wan't to show. Here is a sample of what the URL looks like:
http://externalwebservername/sku=123456
If I enter the URL in the field without "=" it will show that ONE image only.
How should I set up the expression to properly show the external image based on a dynamic URL? Running SQL 2016
Alan's answer should work, but in our environment we have strict proxy/firewall rules, so the two servers could not contact each other.
Instead we are navigating to the file stored on our storage system.
We altered the URL column to point to file path in the stored procedure. Insert image, set Source to External and Value set to [URL].
URL= file://server\imagepath.jpg
As long as the account executing the report has permissions to access the URLs then your 3rd expression should have worked.
I put together a simple example as follows.
I created a new blank report then added a Data Source. It doesn't matter where this points, we won't use it directly.
Then I created a dataset (Dataset1) with the following SQL to give me list of image names.
SELECT '350x120' AS suffix
UNION SELECT '200x100'
UNION SELECT '500x500'
Actually, these are just parameters for the website http://placehold.it/ which will generate images based on the size you request, but that's not relevant for this exercise.
We'll be showing three images from the following URLs
http://placehold.it/350x120
http://placehold.it/200x100
http://placehold.it/500x500
Next, create a table, I used 3 columns to give me more testing options. Set the DataSetName to DataSet1 if it isn't already.
In the first column the expression is just =Fields!suffix.Value
In the second column I added an image, set it's source property to External and the Value to ="http://placehold.it/" & Fields!suffix.Value
I then added a 3rd column with the same expression as the image Value so I could see what was being used as the image URL. I also added an action that goes to the same URL, just to check the URL did not have any unprintable characters in it that might cause a problem.
The basic report design looks like this.
The rendered result looks like this.