Custom dDocTitle set value by Script, is possible ?
Hi to all,
I will like to know if is possible to set the dDocTitle by script, I tried the following code:
<$var_01 = "Hola"$>
<$var_02 = "_Mundo"$>
<$titulo = var_01$ & var_02$>
<$dDocTitle = titulo$>
this code was set in a rule and defined to the field dDocTitle in the user default value option when the field is added to the rule
Oracle Content server version 10g
tnks
It sounds like you want to use a default or derived attribute value.
You set these in rules, which are applied via profiles.
http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#DAFIIEEI
let me know if this helps!
-ryan
Similar Messages
-
Display pattern for DateTimeField ignored when setting value from script
Hello,
I have a DateTimeField with Data pattern date{DD.MM.YYYY} and Display pattern date{MMMM}, so it displays its default value "21.05.2011" as "May". Now I'm setting its value from the other field's initialize event:
if (this.rawValue) {
data.Subform_Footer2.DateTimeField1.rawValue = this.rawValue.match(/\d+\.\d+\.\d+/)[0];
Assuming this.rawValue contains text "21.04.2011", the DateTimeField displays "21.04.2011" in preview instead of "April" as specified in Display pattern.Hi,
To me it looks like you are passing a string to the date field, rather than a date.
Instead of trying to abstract the month manually in the script, why not pass the whole date through "21.04.2011" and leave the display pattern display the month.
Niall -
Setting custom table attribute set value in region item table
Dear all
I am working on oracle application customization and extension in
oracle JDeveloper R12. I am finding a difficulty in an query region of
a OA framework page
My Entity object is on the table FWK_TBX_ADDRESS table
and VO objects has the fields or columns
AddressName, AddreessId, TownC-OrCity
what I am doing shown in the following steps
1-I select region using wizard option
2-select my AM and VO
3-select table as style
4-shuttle all attributes associated with VO
5-in region items table , select the Attribute set field for AddressName attribute and click the serach flashligh icon
6-After that select the browse button , using the package browser , expand down to oracle > apps > fnd> framwork > toolbox > attributesets, then oK
7-select the serach control , and then it list all the attributes set related to fwkTbxEmployees table like the following
/oracle/apps/fnd/framewok/toolbox/attributesset/FwkTbxAddress/AddressName
Now the problem which I am facing now is that if I have custom table suppose "xxEmployees" and have attributes or column
for example employeeId, employee_name, email etc. what would I do to search these attributes when I come to step number 6 which
I mentioned above. from where in which package I can find these attributes to set attributesset value. in above i find these attributes
in /oracle/apps/fnd/framewok/toolbox/attributesset/FwkTbxAddress/AddressName
but in my case for attribute lie employeeId or employee_name from where I can get this how can I set the value of attribute set field in regin item
table in step 5
NomanI dont know what u trying to ask
My problem is just that I want to set the attribute set value of my attribute employee_name, same is AddressId in fwk_tbx_address
ame is AddressId in fwk_tbx_address found on
/oracle/apps/fnd/framewok/toolbox/attributesset/FwkTbxAddress/AddressName
where can I find my attribute employee_name
in jdeveloper -
How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds. -
Accessing custom tag value in scripting code
Hi All,
How can i access my custom tag value in scripting code?
For example, assuming my tag is <myTag:display value="myValue"/>, how can i System.out this value in scripting code? I wanna do <% System.out.prinln(xxx); %> where xxx should be my custom tag value.
Thanks in advance,
Leo.I understand that you want to store "myValue" somewhere accesible by scripting. The more easy and portable way is to store that value in an attribute, for instance:
<myTag:display value="myValue" var="myVar" scope="session"/>And in the custom tag code:
// translate scope string to PageContext scope values
pageContext.setAttribute(var, value, scope);This ensures compatibility with Java Standard TagLibrary and EL:
<c:out value="${myVar}"/>And finally, scripting:
<% Object value = pageContext.findAttribute(var); %> -
SQL Query (updateable report) Region - Conditionally Hide and Set Values
SQL Query (updateable report) Region - Conditionally Hide and Set Values
Outline of requirement :-
Master / Detail page with Detail updated on same page using SQL Query (updateable report).
The detail region has the following source
SELECT item_id,
contract_id,
CASE WHEN hardware_id IS NOT NULL THEN
'HA'
WHEN backup_dev_id IS NOT NULL THEN
'BD'
WHEN hardware_os_id IS NOT NULL THEN
'HS'
END item_type,
hardware_id,
backup_dev_id,
hardware_os_id
FROM "#OWNER#".support_items
WHERE contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
CREATE TABLE SUPPORT_ITEMS
ITEM_ID NUMBER NOT NULL,
CONTRACT_ID NUMBER NOT NULL,
HARDWARE_ID NUMBER,
BACKUP_DEV_ID NUMBER,
HARDWARE_OS_ID NUMBER
)A check type constaint on support_items ensures that only one of the fk's is present.
( hardware_id IS NOT NULL
AND backup_dev_id IS NULL
AND hardware_os_id IS NULL
OR ( hardware_id IS NULL
AND backup_dev_id IS NOT NULL
AND hardware_os_id IS NULL
OR ( hardware_id IS NULL
AND backup_dev_id IS NULL
AND hardware_os_id IS NOT NULL
) Hardware_Id is a FK to Hardware_Assets
Backup_dev_id is a FK to Backup_Devices
Hardware_os_id is a FK to Hardware_op_systems
The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
Display Value Return Value
Hardware Asset HA
Backup Device BD
Computer System HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
What's the best way of implementing this requirement in APEX 3.1?
Thanks.>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far... -
How to set value from one view to other view's context node attr b4 save
HI all,
My requirement is as below:
There are two views in component BP_CONT.
BP_CONT/ContactDetails IMPL class
BP_CONT/SalesEmployee SALESEMPLOYEE STRUCT.SALESEMPLOYEE
I want to set value from first view to second view's context node's attribute.
i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
of second view in the same component.
please send me code snippet for doing the same.
Thanks in advance.
seemaHi Seema
You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
first access the component controller as below in BP_CONT/SalesEmployee (in do_prepare_output method) or in (specific setter method)
lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
lv_partner type ref to cl_crm_bol_entity,
lv_role type string,
lv_partner_no type string.
lv_employee TYPE REF TO if_bol_bo_property_access,
lv_compcontroller = me->COMP_CONTROLLER.
lv_partner ?= lv_compcontroller ->typed_context->-partner->collection_wrapper->get_current( ).
lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
IF LV_ROLE = 'SALESEMPLOYEE'
lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
endif.
now set the value
lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
CHECK lv_employee IS BOUND.
lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value = lv_partner_no )
Thanks & Regards
Raj -
Help to set value of an attribute based on value selected in another field
Hi all,
I want to set the value of an attribute STRUCT.ITM_TYPE to a default value whenever i select one of the value from dropdown list in LC_STATUS.
I tried to add an event in the get_p method of the lc_status but there i cant able to access the context of the ITM_TYPE as the fields are in different views.
Please Help,
Rewards will be awarded.
NaveennHi Vineet,
Thanks for the suggestion.
Please chech my code and suggest me for any corrections.
In the Get_P_LCSTATUS method of Context Node BTADMINH in View1.
METHOD GET_P_LCSTATUS.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value = 'ACT_STATUS_SELECTED'.
ENDCASE.
ENDMETHOD.
In event handler method in Context Node BTADMINI in View2
method EH_ONACT_STATUS_SELECTED.
* Added by wizard: Handler for event 'ACT_STATUS_SELECTED'
data: lr_ent1 type ref to cl_crm_bol_entity,
lr_ent2 type ref to cl_crm_bol_entity.
lr_ent1 = me->typed_context->BTADMINH->collection_wrapper->get_current( ).
check lr_ent1 is bound.
* To Get Value of First Attribute
lv_attr1 = lr_ent1->get_property_as_string( 'LC_STATUS' ).
* To Set Value of 2nd Input Field now based upon this value
lr_ent2 = me->typed_context->BTADMINI->collection_wrapper->get_current( ).
*lr_ent2->lock( ).
lr_ent2->set_property_as_string( iv_attr_name = 'ITM.TYPE' iv_value = 'RREQ' ).
endif.
endmethod.
but during syntax check its showing error messge as BTADMINH is unknown.
2) How and where to bind the context node in custom controller.
Please help. -
How do I add a set value to a form field calculation?
I'm creating a form where I need a set value added to the sum of other editable fields - e.g. Field A + Field B +$125 = Sum
For the addition of Field A and B I've been using the pre-set functions in Adobe X, but I'm clueless as to how to add the $125 to the sum calculation. I'm absolutely new to Java, so I'd need something I can cut and paste.
Thanks!One last question:
I have existing code for a Submit by Email form that has a subject line and message content. I'm trying to add a second email to it but can't seem to figure out how.
this.mailDoc({
bUI: false,
cTo: "[email protected]",
cSubject: "Here is my Renovation Draw Request",
cMsg: "You will find my completed Renovation Draw Request attached. I’m excited to move forward, so please contact me as soon as possible." -
Mapping in BPM - set value of collection item
Hello,
is it possible to set value to exact item of collection in mapping step in netweaver BPM?
I need something like set(<collection_variable>,<item_index>,<item_value>) - so exact opposite of GET generic function, which gets specific item from collection.
Is it possible in NW BPM?You dont have to apologize. I didnt meant that as offend.
I appreciate the possibility to discuss that topic with somebody, because discussion itself sometimes shows other perspective to the problem, which can lead to solution
Of course I wrote EJB function to solve that - but I cant believe that it isnt standard solution to that pretty common use case.
I think, that problem lays in very limited implementation of XPath into Netweaver BPM. I will bet my left hand, that in some future SP of BPM will SAP introduce something like this:
myCollection[1]/notificationId = notificationId
which is standard XPath way to do that -
Need help setting up measurementLog scripting
I'm gruadually getting better at creating script but for some reason I can't get my brain around this one. I'm trying to set up a script to take measurements of a series of 64 marquees created from an equal number of paths then export that log after the 64th marquee dimension is recorded. So I"m making a selection from path, recording it's width and height, performing some operations, saving a file, making a new selection from the next path, and repeat. Ideally I'd like to also record the location of the upper lefthand corner of each marquee at the same time. I figure one challenge at a time.
Part of the confusion is the Object Model Viewer and support PDF's are saying one part of the process is accessed from the Application and another is accessed from the Document. I'm not sure how that would look or what should come first. Also I've not entirely got my brain around using file path locations in script and how to set those up so that they're universal between Mac and Windows.
All this combined is causing too many possible reasons for the dreaded ESTK "Undefined is not an object" error so I can't narrow down the reason for my test script failing. I'm certain if I see the correct way once it'll all make sense, the clouds will part, angels will sing and all will be right... until the next hurdle or the conditions change slightly.
Please help! Thanks!
P.S. I can post my script this is going into if it'll help. It's a mixture of my stuff, with a Frankensteined mish-mash of contributions I've gotten from others along the way.Getting an answer at PS-scripts. Feel free to post anyway if you desire. thanks! Extra info is always good.
-
How to populate custom table field value into standard DFF
Hi Gurus
I am newbie to the OAF
I have a requirement to populate the custom table field value into standard DFF. we enabled the DFF in ReqDistDFFOnAcct(po_req_distributions_all). On the requisition tab as soon as i click on the checkout button, the custom field value has to be shown in the requisition distributions DFF field along with the standard Columns like charge account, percent, qty and when we click on the next button, it has to hit the base table ie., po_req_distributions_all.
the standard columns data is showing the screen. how to acheive this requirement programatically
There is a EO for the req distributions table. please help me how to achevie this requirement.
Any help woud be greatly appreciated.
Thank You!
KrishnaThanks Aj. Finally i made some progress....but i am getting an error in the inst_top OPMN folder 10/10/08 15:37:14 Error: <connector name="OracleASjms" path="OracleASjms.rar" /> will not be bootstrapped since corresponding module declaration was not found in application.xml. I cleared the cache, bounced the webserver. Could not able to understand what is this error
Following is the code that i have written. I am not able to find out what is the error. please help me how to fix this error. there is no changes in the page and the value is not auto populating. the page is having the normal behaviour as the standard one.
Thanks in Advance for your help...
public class xxCheckoutDistsCO extends CheckoutDistsCO
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
String UnitId="";
//First get the Application Module
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("PoRequisitionLinesVO");
String Reqlineid="";
String Linenum="";
String DeliverLoc="";
if(vo.first() !=null)
Reqlineid= vo.first().getAttribute("RequisitionLineId").toString();
Linenum = vo.first().getAttribute("LineNum").toString();
DeliverLoc = vo.first().getAttribute("DeliverToLocationId").toString();
// if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
// pageContext.writeDiagnostics("TEST >", Reqlineid,1);
// pageContext.writeDiagnostics("TEST >", Linenum,2);
// pageContext.writeDiagnostics("TEST >", DeliverLoc,3);
UnitId=null;
String Querry="select amli_icx_oaf_utils.get_blding_unit_id (?,?,?) from dual";
try
PreparedStatement ps=am.getOADBTransaction().getJdbcConnection().prepareStatement(Querry);
ps.setInt(1,Integer.parseInt(Reqlineid));
ps.setInt(2,Integer.parseInt(Linenum));
ps.setInt(3,Integer.parseInt(DeliverLoc));
ResultSet rs=ps.executeQuery();
// ps.execute();
// am.getOADBTransaction().commit();
while (rs.next())
System.out.println(" Query Results ");
UnitId= rs.getString(1);
System.out.println(" first > ");
rs.close();
ps.close();
catch(SQLException a)
System.out.println(" Error "+a);
System.out.println(" Second > ");
System.out.println(" Third > "); ----the program is executing upto here...it is not setting the value after this.
OAViewObject povo = (OAViewObject)am.findViewObject("PoReqDistributionsVO");
if(povo.getCurrentRow()!=null ) --------If i remove this condition i am getting the nullpointer exception in page.....
System.out.println(" Fourth > ");
povo.getCurrentRow().setAttribute("Attribute12",UnitId);
// if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
// pageContext.writeDiagnostics("TEST >", UnitId, 1);
Thanks
krishna -
Tracking the changes made to the custom table field value
Hi all,
can we track the changes made to the custom table field values. if yes..plz specify how it can be done.
Example: if i changed the value of field 'NAME' of table 'YYHCUSTOMER'. i would like to know the old value and the new value of the field. For this, I set the flag 'LOG DATA CHANGES' in the technical settings of the table 'YYHCUSTOMER'.-> try TA: SCU3
regards Andreas -
Search result category with a custom layout set?
Greetings,
I've created a nice little search IVIEW with a custom search options set that will display the document category (taxonomy) in the search result (if the resulting document is categorized, of course.) Works great. However there is one little problem. The categories in the search results are hyperlinked and when you select one, you get a new window with the taxonomy rendered in the default layout set (the ConsumerExplorer I think.) Not good. I need this displayed in a custom layout set.
Any ideas how to make this hyperlink use a custom layout set without changing the default?
Regards,
Paul FederighiHi Paul,
As per my knowledge of the basic s of layout sets and iviews.
You want to change the layout set of the iview(window) which opens when u click the hyperlink.
You should do this:
1)Make a new layout set by customizing the default one.
2)If the iview opening is a standard iview then go to its properties and change the Layout set value to ur new layout.
Please revert in case of issues.
I hope it helps.
Regards,
Sumit -
What is the Max. Limit of ICM Script Nodes that can be set in ICM Script 8.0
I am trying to out the maximum number of Script Nodes that can be set in ICM Script editor , is there any limit on that ?
I am using ICM 8.5 Version
I have read that the value for maximum number nodes that can be executed is configurable as seen in hkey_local_machine\software\geotel\icr\\routerX\router\currentversion\configuration\script\MaxNodesExecuted
By editing the value help me to increase the No. of Script nodes in ICM Scripts ?? Appreciate your reply asap.Hi,
Looks like the max. length described in the forms help only applied to actual database column. But if I am defining a non database column, what is the max. limit?
I tested it by setting to 32K (i.e.32767) and the form accepts and run ok. However, I am not sure whether there will be other side effect or not.
Kelly.
Maybe you are looking for
-
Converting from PDF directly to Java Objects/XML (and PDF format questions)
Hi, I posted this originally in the Acrobat Windows forums but was told I might have more luck here, so here goes: I am desperately trying to find a tool (preferably open source but commercial is fine also) that will sit on top of a PDF and allow me
-
Using AP_ACCOUNTING_EVENTS_PKG
hello everyone, I am on R12 and want to use the AP_ACCOUNTING_EVENTS_PKG. Trouble is I don't know what the doc_id and doc_type should be. My event type is PAYMENT. Also on a side note, when I run the AP_PAY_INVOICE_PKG.ap_pay_invoice procedure, it co
-
Music streaming stops after a few songs
I've read posts here on similar Home Sharing issues, here's mine. My iTunes library is on a networked HD, while iTunes itself is on a Windows laptop. The laptop and ATV are connected to the network wirelessly. The ATV usually finds my library, but wh
-
SQL to group the records and apply logic to pick one record from each group
Hi Friends, I am looking for a query to group the records on certain columns in a table and then from each group I want to pick only one record based on certain rules. May be having data laid out will make my point more clear to you. Here you go : CR
-
SQL to count the number of days between two dates
Does any one have or know how to count the number of days/weeks between 2 dates. I have thought about using MONTHS_BETWEEN, but do not know how to make it accurate down to one day? Any suggestions would be appreciated.