upload and dowanload Files in ORACLE APEX - oracle

i have costumer's every one i have to upload mullite files
so is there any way to get it?
i create table with
FILE_NAME
FILE_MINETYPE
FILE_CHARSET
i see many video's but they aren't useful for me

You need to create a Page Item with the type File Browse.... Then, under Storage Type, you can use your own custom table or you can use APEX_APPLICATION_TEMP_FILES.
If you use APEX_APPLICATION_TEMP_FILES it will automatically save information about the file type such as file name, mime type, etc. If you use a custom table, you will need to designate which column in the table should hold which file attribute.
You will also need a button or some way of submitting the page. Once the page is submitted, the files will be uploaded and saved to the database.

Related

apex_util.get_blob was not found on this server

I am trying to develop an interactive report in which I am using blob column to download the blob file (that could be jpeg or pdf). I created the download field on the blob column but, when I clicked on it, it gives an error as mentioned below.
"The requested URL /apex/apex_util.get_blob was not found on this server"
Note: I am using oracle apex 5.1.2.
Can anybody please help me to resolve this error.
Suppose that BLOB column is named BLOB_COLUMN, and it contains JPEG or PDF. It is one of column in SELECT statement you used to create an interactive report.
By default, BLOB_COLUMN's type is "Plain text". If you just changed it to Download BLOB and filled required BLOB attributes, well - it won't work.
Instead, you should create yet another column in IR's SELECT:
select ...,
dbms_lob.getlength(blob_column) download_blob
from ...
and apply BLOB attributes to it. I've just tried it on apex.oracle.com, works as expected. If it still doesn't work for you, please, create an example on the same site, provide credentials so that someone of us might have a look.
at the BLOB attributes there is a Primary key column. The get_blob uses the same column value from the report to fetch the blob from the given table. So, if you have two ID columns in two tables (joined report) you have to create a view for the other table and use an other column name as ID in it. Use this view and the new ID column name as a PK.

Servicenow - Service Catalog Reference Field - Insert different column than the display value

Let me describe my problem:
I have a table for all my IT-Services. I reference to this table more than once, for different purposes. Most of the time I need to reference to the name of the service. That's why I keep the name as displayed value.
One Column of that table is a service_id (custom field) which is for example "Service_004". Now in a catalog request Item the User has to fill in the service_id in a reference field.
But since I have the name as displayed value, and I need it in other forms, I am unable to reference to the service_id.
Using the variable attributes field I managed to let the service be found using the autocomplete function. But in the reference field I still get the servicename. I know that I can change the display value in the dictionary, but this breaks other functions. So what I need is to change the display value just for one reference field.
Also I tried to create a new table called IT-Services2 with reference to my table IT-Services. Then I switched the display to true in the new table for my service_id, but this will even change it in the parent table.
Perhaps an onChange client script utilizing g_form.setLabelOf() ?
http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#setLabelOf
Maybe I'm not fully understanding your question...
I ran into this issue before, what you can do is create select box variable and use an on load client script to populate the list with the service_id(s) from the table you are referencing.
I would write a script include to pull the data from the table and call it from the client script via GlideAjax.

How to fetch data in tabular form in _new page

I'm creating a project in ruby on rails. Is it possible to add data just like normal form and save them in database in show page? Is it possible to add data in tabular form and let the user save the data in batch (i.e. 5-6 record at a time) for the same employee? If so, then how can I achieve this functionality?
You can read all needed information from file and parse it into the array of objects, and then use https://github.com/zdennis/activerecord-import gem for insert it in db (for production).
also, you may look into db/seeds.rb file for adding new data in develop.

How to add image field in dynamic input group for magento admin configuration setting?

I have created a module which add dynamic input group to magento admin configuration.
I have added image field but it can't save in database. Means if I select image than only image store in database in core_config_data — the encrypted value of row (just image field value)
If I remove image field than the data saved properly in database along with other inputs.
So here I can't save image type data with other data of dynamic input.
I've found reason + solution, maybe this is helpful for someone. Magento is using the wrong backend model. For saving images the backend model must be system_config_backend_image. But as you've added the fields dynamically (and not inside the system.xml) the fields have no assigned backend model, so magento will use the default for text values etc..
The solution is, to use the clone_fields functionality. Please find my explanation how to use it on my blog post http://www.mellority-report.com/magento-dynamic-config-fields-with-custom-backend-models/

Save HTML table Data in .csv file without using table id using java script

I am trying to get html table data from this website
and save it in .csv file but I can't do it by using sahi automation tool and java script coz table id is not given.
If you want to access a table without any attributes which make it unique, you can use relational accessors: http://sahi.co.in/w/browser-accessor-apis
You could e.g. access the table with
_table($index, _in($someUniqueElement));
Regards
Wormi

Resources