How toAccess User Defined Properties in NWDS
Hi to Experts,
i hope some one might faced this same problem, i want access user defined properties from KM to NWDS. For that Iu2019m using
EP 7.0 and NWDS Version: 7.0.11.
i have one Req.. to send value as a text or String to Km Property for store or display Km Folder. Like as we have name, date, created by, Description, Extra..... at the same place i want create my own Properties(using with Property metadata @ Global Service) and what ever Properties i created those ones i want use and store or send date to that particular property to display to end-user.
For above process am using WDJ
hope i can get this And thanQ in Advance.
vita
- Create a user-defined OTD with one String field.
- Create an XSD-based OTD with repeating name and value fields of type String
- Create a "New Web Service" Java Collaboration whose input will be the first OTD, whose output will be the second OTD and whose operation will be named getProeprties, or some such
- Implement, in Java, the code necessary to read your properties, given the properties file name or path (given in the input OTD) and populate the name/valur pairs on the output OTD
- drag the operation of the collaboration onto the Business Process Editor canvas as an Activity
- Configure a Busienss Rule to set the input of the getProperties activity to the name/path of the properties file
- Configure a Business Rule(s) to use the name/value pairs returned from the ivocation of teh getProperties service
If you wish to take this one step further you could consider writing the java collaboration
a) generically so it can be reused from different business processes
b) to cache the properties on first read so each invocation after the first one simply returns the in-memory values instead of re-reading the proerties from disk
c) generically so it can read, cache and return different property sets depending on the properties file/path provided as input.
Bear in mind that IO from a java collaboration by means other than an eWay violates the EJB spec.. It works all the same.
Message was edited by:
mczapski
Similar Messages
-
User defined properties not showing up in design center
Hello,
I did a search on User Defined Properties in this forum but couldn't find my answer.
We are using OWB 10gR2.
I already added a user defined property called UD_ALTERNATE_SCHEMA to the TABLE class definition.
I signed on as repository owner, I switched to single user mode, used OMBREDEFINE on class definition "TABLE", I commited my changes switched back to multi-user mode and signed off.
Here's the proof (it's in bold):
OMB+> OMBDESCRIBE CLASS_DEFINITION 'TABLE' GET PROPERTY_DEFINITIONS
BUFFER_POOL BUSINESS_NAME CACHE_MODE CONSTRAINTS DATA_SEGMENT_COMPRESSION DEPLOYABLE DESCRIPTION FREELISTGROUPS FREELISTS GENERATION_COMMENTS INDEXES INITIAL INITRANS LOGGING_MODE MAXEXTENTS MAXTRANS MINEXTENTS MONITORING_MODE NEXT OVERFLOW PARALLEL_ACCESS_MODE PARALLEL_DEGREE PARTITIONS PARTITION_TABLESPACE_LIST PCTFREE PCTINCREASE PCTUSED ROWDEPENDENCIES_MODE ROW_MOVEMENT SHADOW_TABLESPACE SHADOW_TABLE_NAME TABLESPACE UD_ALTERNATE_SCHEMA UOID
OMB+>
Here is how I defined this new property for the TABLE class.
OMB+> OMBDESCRIBE CLASS_DEFINITION 'TABLE' PROPERTY_DEFINITION 'UD_ALTERNATE_SCHEMA' GET PROPERTIES (TYPE,DEFAULT_VALUE)
STRING NO
My question is this.
Shouldn't this new property be available for edit when I right-click on a table object in the GUI interface and then choose "Properties" and then choose "User Defined" tab? Unfortunately it is not showing up on any of my tables in any of my projects.
Did I miss a step here? Or did I completely misundestand the concept of "User Defined Properties"?
ThanksAs so often happens, I found the answer almost immediately after posting this message.
In the user defined tab, I hadn't clicked/selected a table. Once I clicked on a table object, my brand new user defined property appeared.
Sorry to have waisted your time. I was really tired yesterday afternoon when trying all this.
Thanks -
How to export user defined properties in seperate file
Hello,
i want to export user definied properties in a seperate file using OMB+ commands. The documentation of this topic doesn't work.
The OMB Code I use is the following:
OMBEXPORT TO MDL_FILE '${Pfad}/006_${Project}.mdl' \
FROM PROJECT '${Project}' \
ALL_CLASS_DEFINITONS \
CONTROL_FILE '$SANDBOX_HOME/Project.ctl' \
INCLUDE_USER_DEFINITIONS \
OUTPUT LOG TO '${Pfad}/006_${Project}_exp.log'
The control file defines the path and filename for the the definitons in this way:
DEFINITIONFILE=C:\Arbeitsverzeichnis\udp.mdd
But the file will not be created and i get no error message.
When using this command the udp' definitons will be exported, but in the general project export file. Which is the correct way to export the definition in a seperate file?- Create a user-defined OTD with one String field.
- Create an XSD-based OTD with repeating name and value fields of type String
- Create a "New Web Service" Java Collaboration whose input will be the first OTD, whose output will be the second OTD and whose operation will be named getProeprties, or some such
- Implement, in Java, the code necessary to read your properties, given the properties file name or path (given in the input OTD) and populate the name/valur pairs on the output OTD
- drag the operation of the collaboration onto the Business Process Editor canvas as an Activity
- Configure a Busienss Rule to set the input of the getProperties activity to the name/path of the properties file
- Configure a Business Rule(s) to use the name/value pairs returned from the ivocation of teh getProperties service
If you wish to take this one step further you could consider writing the java collaboration
a) generically so it can be reused from different business processes
b) to cache the properties on first read so each invocation after the first one simply returns the in-memory values instead of re-reading the proerties from disk
c) generically so it can read, cache and return different property sets depending on the properties file/path provided as input.
Bear in mind that IO from a java collaboration by means other than an eWay violates the EJB spec.. It works all the same.
Message was edited by:
mczapski -
How register user defined listener name with OEM
DEFAULT LISTENER
[oracle@localhost ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 06-SEP-2010 10:03:46
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
USER DEFINED LISTENER
[oracle@localhost ~]$ lsnrctl status LISTENER_LIMCAMP
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 06-SEP-2010 10:04:03
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.106.72)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER_LIMCAMP
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 03-SEP-2010 19:42:11
Uptime 2 days 14 hr. 21 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /ora10gsoft/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /ora10gsoft/oracle/product/10.2.0/db_1/network/log/listener_limcamp.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.106.72)(PORT=1521)))
Services Summary...
Service "LIMCAMP" has 1 instance(s).
Instance "LIMCAMP", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I am able to connected thru listener.
But my OEM database control showing
Host localhost.localdomain
Port 1521
SID LIMCAMP
Oracle Home /ora10gsoft/oracle/product/10.2.0/db_1
Status Down
Host localhost.localdomain
Port 1521
Name LISTENER
Oracle Home /ora10gsoft/oracle/product/10.2.0/db_1
Location /ora10gsoft/oracle/product/10.2.0/db_1/network/admin
Details TNS-12541: TNS:no listener
My OEM taking the default LISTENER( which is not running). how to register OEM to take the listener (LISTENER_LIMCAMP).# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain
192.168.106.72 localhost.localdomain
would you please have a look into the below link which is the issue on the same server.
Heartbeat failed to connect to standby : archive files not transfering....
Edited by: SAKTHIVEL on Sep 6, 2010 11:45 AM -
How xpsdrv support user defined paper size
hi,I am developing a xpsdrv,the xpsdrv has inculde some system paper like A4.But I need paper defined by users themself.
so I add
*Option: CUSTOMSIZE
*rcNameID: =USER_DEFINED_SIZE_DISPLAY
*Name: "Custom size"
*MinSize: PAIR(1200, 4800)
*MaxSize: PAIR(32400, 19200)
*MaxPrintableWidth: 32400
*MinLeftMargin: 0
to the gpd file,but after install,no "user defined" button and no "user defined" dialog appear. the "user defined" button or "user defined" dialog should program by myself? how program user defined
paper size in xpsdrv?This printer does not support custom size papers. We need to use only those papers which are available in the drop down for paper size in the software. Open below link to see the list of paper sizes supported by this printer:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02231304&cc=us&lc=en&dlc=en&product=4066377&tmp...
Say "Thanks" by clicking the Kudos Star in the post that helped you.
Please mark the post that solves your problem as "Accepted Solution" -
Java User-defined packages problem!
Hi everyone,
I am new to java programming.I am trying to do a small program to see how the user-defined pckages work.I wrote 2 small programs one is Balance.java and TestBalance.java.
The code for Balance.java is as follows..
package MyPack;
public class Balance{
String name;
double bal;
public Balance(String n, double b){
name = n;
bal = b;
public void show(){
if(bal < 0)
System.out.print("--->");
System.out.println(name + ": $" + bal);
}The code for TestBalance.java is as follows..
import MyPack.*;
class TestBalance{
public static void main(String args[]){
Balance test = new Balance("Leela",99.88);
test.show();
}These r both in the same directory....I am able to compile Balance.java...but when I try to compile TestBalance.java I am getting the following errors
TestBalance.java:1: package MyPack does not exist
import MyPack.Balance;
^
TestBalance.java:5: cannot resolve symbol
symbol : class Balance
location: class TestBalance
Balance test = new Balance("Leela",99.88);
^
TestBalance.java:5: cannot resolve symbol
symbol : class Balance
location: class TestBalance
Balance test = new Balance("Leela",99.88);
^
3 errorsI am using j2se1.4 version ....my path is set to bin folder..
Could someone plz tell me what is the mistake...it would be very helpful for me if someone could plz tell me what the problem is...
Thanx in advance.99% going to work
i have noticed some of the few thing
trying to help
u told that ur both the classes r in same directory right
ok
now ur first class has this as first line
package mypack;//till here its ok only "mypack" should be small case
now put this same line also in the other class as firat line
and remove that import statement since both r in same package so no
need to import it ok
here's the code
package mypack;class TestBalance{ public static void main(String args[]){ Balance test = new Balance("Leela",99.88); test.show(); } }
now compile it this way
create a folder call mypack and put this both the classes in that folder
say its c:\mypack\ur classes
now in dos prompt
type this
set classpath=%classpath%;C:\mypack \
now u compile ur first class and then second
Surely this going to work if not tell me the errors u r getting -
User Defined Fields on System Form
Dear All,
I want to know that how much User Defined Fields can be added on a system form. My problem is that I am developing an add-on for the Item Master Data. And I have used a lot of User Defined Fields on Item Master Data Forms which contains table 'OITM'. Now if I am trying to add any extra User Defined fields in OITM Table, I am not able to do so. I am getting an error as 'Internal Error Occurred'. What can i do regarding this problem.? Help me. It is something very important.
Thanks and RegardsHi,
There is theoretically no limit on the number of UDF for a table. there is however a maximum number of characters for a record in SQL Sever.
As far as I know this is 4000 in SQL Server 2005 and older and 8000 in SQL Server 2008.
pls check Microsoft for the exact numbers
Regards
Ad -
Decidability issue of oralce user defined rules
Hi,
Accoring to some online posts (http://weblog.clarkparsia.com/2007/08/27/understanding-swrl-part-2-dl-safety/, http://protege.cim3.net/cgi-bin/wiki.pl?SWRLLanguageFAQ), SWRL in general is undecidable.However, we can add some restrictions to SWRL to regain decidability: Variables in DL Safe rules bind only to explicitly named individuals in ontology. Adding this restriction is sufficient to make SWRL rules decidable. So, I'm wondering how Oracle user defined rules achieve the decidability. Does it adpot the way simliar to SWRL? Thanks a lot in advance.
HongHi Hong,
This is a good question. Yes we have adopted a similar idea. The forward chaining based inference engine in Oracle Database will only bind existing known RDF resources to variables in rules. We will not generate a new RDF resource that does not previously exist in the ontologies. This is very important because it ensures the inference process will finish in a finite amount of time.
The above does not apply to user defined inferencing (a 12.1 new feature) though.
Thanks,
Zhe -
How to "print" a user-defined report to PDF?
Hello, I am using sqldeveloper 3.1 and I've got a user-defined report (chart) working. I see one can adjust a bunch of PDF settings in the report properties, but I cannot find how to actually produce a PDF version of my report/chart...
You can watch the movie here, but simple answer, right-mouse in the grid, Export > PDF
http://www.youtube.com/watch?v=k7hNn2jowhQ
The charts are not supported yet in the PDF reporting feature.
Edit the report definition in the PDF section to control the properties of the PDF generated. -
How can an user defined Transaction type in Inventory be configured in IB?
Need to know how to make an user defined transaction to update the status in IB automatically. i.e. suppose there is an user defined transaction "XYZ". I need to update the instance stause of an item to "CANCELLED" once that transaction happens on the item.
Edited by: user13340970 on Aug 13, 2010 7:14 AMHi Atheek,
I was looking at doing the transform manually, but my challenge is how to parse the inbound String into XML Elements with their properties. For example:
Example Message:
<abd:TypedDocument>
<abd:someElement>
<abd:aString><jkl:embeddedMessage jkl:attributeABc="Hello There"><jkl:someOtherElement>OSB Rules!<jkl:someOtherElement><jkl:aNumber>123456</jkl:aNumber></jkl:embeddedMessage>
</abd:aString>
</abd:someElement>
</abd:TypedDocument>
If I get the value of the embedded XML as a string, how can I parse our or address the various elements and attributes in the embedded XML? I was hoping to use:
$aString cast as jkl:embeddedMessage
But on OSB10g this fails. Is there another way with XQuery or XSL to convert an embedded XML that comes in as a string, into a complex User-Defined type?
Thanks,
David. -
How to migrate User Define Function to another mapping in other namespace
Hi Everybody
I have define many User Define Functions in mapping
How can i use them in other mapping
Thank you in advanceHi,
I tried to explain the steps.
1. Take the JAVA code of your User-Defined Functions
2. Go to a JAVA editor (e.g NWDS, Eclipse, etc...)
2.1. create a Java project
2.2. create a Java class
2.3. inside your Java class, put each JAVA code of your User-Defined Function inside a Method
2.4. Export your Java class to a JAR file (e.g my_tools.jar)
3. Go to IR
3.1 create an Imported Archive (IA) and upload your JAR file.
3.2 in this IA, you see your Java class which contains all your methods.
4. inside your mapping,
4.1 create a User-Defined Function <u>and import</u> your class
4.2 use your method.
So, you define in only one place your code (thanks to a IA) and you will be able to use it inside several mappings.
I hope I don't forget steps...
Advantage: if tomorrow, you want to create a new function, just add a new method to your Java class and re-import your JAR file
Oh, I missed: your IA must be created inside a specific Software Component (SC__TOOLS) and this one must be linked with the others by a "Usage dependency", else your IA will be recognise only in one Software Component (and maybe only in one namespace)
Mickael -
KM Search: How can I define a query for the user who currently logged on?
Hello,
I want to use the KM Search iView to display all documents from the currently logged on user in a certain sort order. The result should be some kind of report for the user...
In the search option I can define a default sort order. And I can also define it for a special user with cm_modifiedby(value=username)
But how can I define the predefined property value generically for the current user?
I tried to insert following values in the parameter Predefined Properties of the search option:
Predefined Properties (csv): cm_modifiedby(value=<user.id>)
Predefined Properties (csv): cm_modifiedby(value=%user.id%) -> like in the predefined properties
Predefined Properties (csv): cm_modifiedby(value=$sap_user) -> like in the xml forms builder
But non of these 3 parameters worked. Has anybody an idea what the right variable is?
Thanks a lot.
Best regards
NicoleHi Nicole,
1. First of all you need to use "<User.UserID>" to get the currently logged on user.
2. You need to create an AppIntegrator iView (so based on com.sap.portal.appintegrator.sap.Generic) in order to be able to use this dynamical parameter. The parameter "URL template" should look like:
<Request.Protocol>://<Request.Server>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch?layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=quick&rndLayoutSet=SearchResultLayoutSet&SearchCompsName=UISearchComponents&QueryString=*&SelectedCustomProps=cm_modifiedby(value=<User.UserID>)
Best regards,
Robert -
How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?
How to let the user define the colors for each plots in the graph (I
use LabVIEW 7)?Hi,
Take a look at this example, it uses property nodes to select tha
active plot and then changes the color of that plot.
If you want to make the number of plots dynamic you could use a for
loop and an array of color boxes.
I hope this helps.
Regards,
Juan Carlos
N.I.
Attachments:
Changing_plot_color.vi 38 KB -
How to provide value to a User Defined field thru java code
I am using OIM 11.1.1.5.
I have a user defined field called Unique-Customer-Number. This field need to be pre-populated during user creation (using OIM Web UI) and the value comes from a java code.
Can any of you tell me the high level steps to implement this.
Thanks!
KabiThanks Rajiv,
I just followed everything on metalink 1262803.1. My console shows the followings during Metadata import.
weblogicImportMetadata.bat :-
Starting import metadata script ....
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://10.10.99.99:7001
Connecting to t3://10.10.99.99:7001 with userid weblogic ...
Successfully connected to Admin Server 'adm_server01' that belongs to domain 'server01'.
Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.For more help, use help(domainRuntime)
Disconnected from weblogic server: adm_eimsdv1s01
End of importing metadata script ...
Exiting WebLogic Scripting Tool.
How I will I know that my plugin/ event-Handler is registered successfully. Is there any screen where I can see all registered plugins ? -
How to create user defined button in alv report
how to create user defined button in alv report
thnks in advance.Hi,
U can define it the the PF-STATUS ( Menu for ALV ).
For that u have to define it in the EVENTCAT.
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
And in the DISPLAY
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
endform. " Z_EVENTCAT
Now double click on ALV MENU nad u can create a button in the application bar.
Regards,
Pritha.
Maybe you are looking for
-
Match a po to an invoice without receiving
Hello, Please read the following issue and advise on a solution. PO 381: column "segment1" in table "po_headers_all" is an approved purchase order of 9 lines,with po header id 797, in a foreign currency of the reporting set of books of the company.It
-
Recreating my iTunes on my laptop after moving library to mac
I had my iTunes library on my macair and decided to move it back to the iMac. I followed the instructions for moving the library back to my mac via an external drive. This seems to have worked OK. I had wanted to still have iTunes on my laptop, and
-
Web Dynpro: How to set the header of Tabs in a Tabstrip?
Hi all, I created a tabstrip with 3 tabs. Now I am trying to give proper heading to each of the Tabs but unable to do so because I do not find any property to the Tab(s) for which, I can assign the heading. Only the following 4 Properties are availab
-
How can I convert a pdf file that's larger than 100MB to word
How can I convert a pdf file that's larger than 100MB to word? I have just paid $20 to Adobe to get this facility but It won't work , as the pdf is larger than 100MB, I actually believe that I have paid twice for adobe but I'll take this up with them
-
Using systemd-coredumpctl as a regular user
Hi, With systemd, core dumps are now stored in the journal. For now that's fine to me, except it seems I can't retrieve my core dumps as a regular user, only root seems to be able to get a useful use of systemd-coredumpctl. I did search the forum but