In an APEX application, I have an interactive report.
In Report Attributes > Report Export > Filename, you can specify what file name you the download to have as a default.
Question: Is there a way to dynamically define this default filename?
Yes, I know, the user can change it when they do the download. But my boss wants the user to not to have to change the file name.
What can anyone tell me? Thanks!!
APEX 4.2
Windows 7
IE 11
Yes you can do this. Create a hidden page item (e.g. P1_REPORT_NAME) and set its value to be whatever you want the name of the file to be. You can calculate this in many different ways e.g. - pass a value through a link from another page, using a dynamic action or computation, or setting a default value via static content or pl/sql expression. Then navigate to Report Attributes > Report Export > Filename and set it to &P1_REPORT_NAME. - now the report will be called whatever the value of P1_REPORT_NAME is.
Related
I am using IBM DiffMerge to generate a Report that shows all differences between two .cls files or .sbs files. I was playing with it and I saw that there is a filed in option menu that allows you to change the format of the report, but it implies some keywords, like $elemname to print the element's name or $elemtype to print its type $leftonly or $rightonly which show how many differences are in the left diagram or in the right one.
Now, I was wondering if there are more variables like those above, especially one that can print a component's GUID (unique ID in Rhapsody).
Thanks,
Daniel
I would expect that $GUID will give you what you're looking for.
Under the ReporterPlus installation folder there is a folder named Templates. In it you'll find a file named DiffReport.dpl which you can load it into ReporterPlus for editing like any other template. You must run Rep+ with a command line option so that it loads with the Diffmerge specific schema:
Reporter.exe /mode=dfm
After that you can load the Diffmerge template, and edit it to customize the output of DiffMerge reports. When you do, try adding $GUID into the output.
Regards, Simon
I can upload multiple files (documents in this case) at the same time very well. Is it possible to have a hyperlink field with multiple adam files dropped into it or even a plus ('+') icon to add another without having to drop on another app each time?
UPDATE:
Sorry I overlooked ADAM 1.2 (link below) feature to use hyperlink 'Library' for multi file selection.
https://2sxc.org/en/blog/post/introducing-adam-1-2-with-folders-metadata-and-c-sharp-api
I have been able multi select now but still having difficulty with using the file picker to create the folder structure I wish to achieve:
I read from link above:
You can create even another content-type - like Application Group Metadata - which you can use as folder-metadata. This allows the editor to tag each folder with additional information.
I do not fully understand how to use this 'folder-metadata' to achieve the same thing as the file manager allows me to do by specifying where each file is to be stored?
I'm using date.ftl to display date and time in Alfresco Share 4.2c, with parameter showTime set as true. Default time is 00:00. Is there a way to set current local time as the default time?
Is it better to try to change that in date.ftl or maybe in some associated .js file?
I was looking, but I couldn't find where it is set, so any help will be appreciated.
Changing existing date.ftl is not advisable.Instead of that you should create your own date control(you need to create both ftl and as well as javascript file),In that you need to change below things.
Change in tomcat\webapps\share\components\form\date-picker.js file(this should be file which you have created for your custom control).In onReady() function set the value of text box using javascript.
I am using Devexpress XtraReport suite in my application which works fine for dynamic reporting requirement except one customization as below:
User is given report preview using ReportPrintTool with dynamic data.
Now, when user tries to export print preview as Image file with 'ExportMode=Different Files' output file names are generated based on report name(i.e. reportName+pageIndex.png) which i need to define based on some dynamic value or say based on a column value provided to report as data source.
Can anybody please guide me how can I achieve this customization?
Reference from: XtraReport default file name in SaveDialog box
Try to set the XtraReport.ExportOptions.PrintPreview.DefaultFileName option (PrintPreviewOptions.DefaultFileName Property).
PrintControl.PrintingSystem.ExportOptions.PrintPreview.DefaultFileName = "column value that you provide"
To know that how to use it, Follow the below reference links:
default name of report during saving - Here some file name standard related issue also descripbed
How modify predefined file name on exporting report
XtraReports - Custom filename when exporting via the reports toolbar
I don't know if I'm on the right track but I'm trying to let users of my web site create there own versions of pages on my web site.
Basically I'd like to make our documentation used as a starting point where they just add details and make a new page for themselves in the process.
I have a 'book' content type that I have changed with CCK and a 'client edits' content type that uses a nodereferencefromURL widget to link itself to the book node.
So simple version of what I'm saying is I have a link on my book pages that creates a node using client edits content type. I would like to put some fields on the client edits content type that take the values of some of the fields from the book page it is linked from.
I'm sure I'm missing something as I would have thought someone would have tried this before but I can't even find a hint on how to go about this.
All I really need is a point in the right direction if my current thinking is wrong.
Current thinking is that I use a php script to get the default value for a field on the new node add screen that drags the value for a field from the book I'm linking from.
I'm thinking this is the case because there is an option for default values for the field in cck manage fields that lets you put in a php value to return a default value for your field.
Am I on the right track or is there already a module or process that does what I'm talking about and I'm just too dumb to find it.
This sounds a little strange, are your client edits going to be a diff from the original node or just coppied data?
I would prehaps do it a more simple way, just have book nodes, and have different fields disaply depending on who edits it (enable the content_permissions module). That way you can use the node clone module to create the users copy.
You will need to make a module to contain your custom php code.
I ended up using rules to save information from the user and the cloned node into hidden fields.
One that saved the original node ID into a field when ever you create content of that type unless the url ends with Clone. This means that when you create the clone the original node ID is kept in the field.
That made it easy to use a views argument that took the node ID to make the clone appear along side the original when a user visits the original page.
The second rule trick was to compute a field that saved the "store name" from the profile of the user only when saving clone content.
This meant that there was a hidden field on the clone that stored the info so I could then use another views argument to restrict the view to only people with the same store name in their profile.
I am no good with PHP but I managed to find a snippet (can't remember where) that returns the store name of the current logged in user as the argument.
global $user;
profile_load_profile($user);
return $user->profile_store_name;