Accessing External document from a repository - oracle

How can i access documents from a repository(my server) through oracle apex.
Scenario. i have scanned documents saved on my server and i want to create a report where i can use a link via the url to access the document. I have been trying to use the document part(server address) but its not working. Its not opening the folder on the server.
my part is \\ag.ag.gov.tt\Information and Communications Technology Unit\Weekly Reports.
I have a test table
select ID,
NAME,
POSITION,
URL
from USERS
where the url will be.

Related

Best approach to download files from Azure Blob Storage using file urls

What is the best approach for the following requirement: I have files stored in Azure Blob Storage with a Private endpoint. I need to show to the user, a table with a column containing these file URLs in the browser. When a user clicks on the link, it should either open the file in a new tab or download the file.
I could show the URLs and download files using the Power BI report when the Blob Storage has public access. But in my scenario, it's a Private endpoint. I tried appending the SAS token to the URL, and that also worked, but in this case, SAS token is visible in the browser which is not allowed in my case. So this also does not work for my scenario.
Can we achieve this using Power BI or Power Apps or any other tools/api?
Could you please suggest the steps?
Thanks
I tried in my environment and got below results:
If you need download blob through browser with private container, you need Blob URL + SAS token because it provides read and writes to access blobs.
If you are using public container, you can download with Blob URL through browser.
There is no option to call your Blob URL by hiding SAS token.
As workaround, if you need to hide the SAS token from the user and try to access the blob, you can make use of Power Automate connector here:
I have connected to my Azure blob storage with these Power Automate connectors. 1) I have first connected to my Blob URL endpoint> And created a SAS URI with this connector.
The SAS URI is created successfully by the connector, and I have saved the SAS token inside the compose variable for it to be hidden.
Later I call an HTTP trigger to trigger the SAS token and get the Image content as HTTP body in the output.
When I decode the HTTP body content> I get my Blob Image successfully.
You can convert base64 to image you can use this link:
If you want your users to access this Blob, you can further convert this b64 encoded string into Image and save the file in OneDrive, SharePoint for your users to access you can refer this link by eric-cheng.
If you want to Email your users the Blob file, that can also be done by using Outlook, Gmail, etc connectors later.

How to ensure user see the images pertaining to him only from private blob Azure Storage?

Some of the user’s images are stored in Azure BLOB which is not publicly accessible. In our scenario we upload the images (user’s images) on private blob which later needs to be shown at the client side(Angular). Moreover the user should only be able to see the images that is related to him and not the images of other users.
We can generate the list of images URLs at server side but when this is passed to client side to render, it would fail naturally being blob not being public.
Now, being all the users who would access the application are internal to the organization, I believe authorization to access the images can be achieved by AAD/SAS. However at the same time, I am fail to understand how would I ensure or apply the security that if wanted user X should not be able to read the images of user Y?
Regarding the issue, you can use the following suggestions to implement it.
Store the User information and his image information (such as the image's azure blob container name, azure blob blob name ) in the database.
When the user wants to access the image, query the database with the user information to get these image,
After getting the image information, use the sdk to create sas token then return the image's blob url with sas token to cliend. Regarding how to create sas token, please refer to here.

MVC Multi Tennat Application how to add sub site

I have an intranet application for which the URL is as follows
http:\\ServerName]\RunLog\
I am adding another department/tenant/group of users which will utilize the same instance of the application and same database. Their data will be different from the existing users. I am planning to add new column foreign key in each table to identify the specific tenant. I authenticate users windows authentication. I am thinking that the access to the application will be as follows
http:\[ServerName]\Platform1\RunLog
http:\[ServerName]\Platform2\RunLog
So for the above URL, how could I go about achieving that in the Application? I know how to make the table changes in SQL server, Updating the Entities, Updating the linq code in the controllers to pull up respective tennant data. Any help to get me started would be appriciated.
Kindly note that as you have given in your post, it is possible to identify the tenant's based on their URL. The table that contains the tenant details will also contain their url. So you will identify the tenant based on the URL. After identifying the tenant, we can authenticate the user's using the found tenant id / tenant code, get the tenant's configuration or settings using the same tenant id / tenant code.
I hope that you could have all the other entities of the application with a column called as TenantId. This will help you to fetch the data based on tenant. Your only change will be in the data access layer where you will filter the data that you retrieve from the Database.
Let me know if you have any other clarifications regarding the other specifics of this implementation.

how open specific account record by customerid / telephone no in Dynamic CRM

i need to open a specific account based on url. i have a requirement that open a account against telephone no/customer id using query string. i try these urls
http://ef.crm/EFCRMDB/main.aspx?etn=account&pagetype=entityrecord (this open a create new account form)
http://ef.crm/EFCRMDB/main.aspx?etn=account&extraqs=etc%3d1%26expert_test%3dabcdef&pagetype=entityrecord (pass query string value and i successfully get this value on form)
In database AccountBase table i find unique id for record that is 'AccountId'.
this works fine for me
http://ef.crm/EFCRMDB/main.aspx?etn=account&pagetype=entityrecord&id=A3D57E8C-87F6-E111-8BF8-000C29E2596B
now problem is that how i get 'AccountId' against telephone no or customer id received form url? can i open account by dialog or workflow if yes then how?
Maybe you can also make a HTML+JS Web Resource and upload it to the Dynamic CRM. You then can access the web resource through URL.
The web you upload must do things as follows:
Fetch the telephone no from the query string
Do Fetch XML call from JavaScript. Pass the telephone no as a parameter and than get the Id of the account.
Open the account window you want by passing the account Id in the query string.
Hope it helps :)
So I'm not sure there is anything out of the box that will give you the Id. But you could try:
Dialogs and Workflows now have an option for getting the url of a record.
You could create a custom workflow activity (for use in dialogs and workflows) to get the Id
If your in JavaScript you can do: Xrm.Page.data.entity.getId()

Send parameter details to remote URL and get results in xml xcode

I am doing a Flight booking app. The user will enter the details like
FROM CITY and DESTINATION CITY details, along with departure date, passenger information like no of adults and no of children fields. One the use clicks the Search button, the app needs to send the details to a remote url and do an INNER JOIN of two tables
airport master and City will return the available flights details in
XML format.
In my past experience, I have only created sqlite table locally and
have copied it to my app folder and manipulated to populate a table
view. This is a very new process for me and I am kind of struck
having searched the net and many books with no proper leads.
My request is how to send the user entered details to a remote
url, where should I write the query with inner join(the data is
stored in a remote sqlite for which we will send the url request) and
get the result in xml format.
Any examples or tutorial would really be of great help. Thanking you
in advance.
You have to bind the userdetails in the url like #"www.abcd.com/user.php?usename=userna&password=pw". You have to write the php file in the server.In that php file you have to connect to database and check whether the user existing or not.

Resources