Accessing Dictionary devlopment component in Web dynpro component
Hi
I want to access a table created in the java dictionary development component in webdynpro. I dont want to use the EJB for doing this.
Regards
NagaKishore V
Hi,
there are several possibilities to achieve that.
For example
- JDO
- SQLJ
- direct access to the database via JDBC from your WD Controller (not recommended).
For more information about JDO see at
/program files/SAP/JDT/eclipse/examples
There you will find the tutorial J2EE_GettingStartedJDO
For general information about Java persistence have a look at
http://help.sap.com/saphelp_erp2004/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/content.htm
Regards
Helmut
Similar Messages
-
Need info on Accessing portal services within a Web Dynpro application
Hi,
I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
Thanks in advance.
Rajani NHi
how to reference a portal service with web dyn pro ?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
Best Regards
Jakub Krecicki -
Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
Hi Guys,
Can someone tell me, what is the Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
Regards
Sankar>
sankar.cgsl wrote:
> Hi Guys,
>
>
> Can someone tell me, what is the Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
>
>
>
> Regards
> Sankar
HI Sankar,
I think it is not to get from this forum. You have to download the trail version and follow the instructions for installation.
Once you installed the software, you can request for the License key with your SCN credentials.
Follow this link for 7.02 Trial [/people/horst.keller/blog/2010/12/09/abap-trial-version-702-available-in-scn|/people/horst.keller/blog/2010/12/09/abap-trial-version-702-available-in-scn] -
Java dictionary database table in web dynpro application
Hi,
I want to access java dictionary database table in my web dynpro application in java.
Right now I have created one java dictionary DC.
and in that Dc i have created two database table .
Now I want to use this table in my web dynpro application.
Can anyone help me.You can use the Dictionary Projects to create tables in Database. You must use codes to access these database tables that is created using Dictionary projects.
You have to use the DataSource in order to get connection ; Use Visual Administrator to see the data source name.
You can use the following code to access the database table.
ResultSet result = null;
try
InitialContext initialcontext = new InitialContext();
DataSource datasource = (DataSource)initialcontext.lookup("jdbc/<DataSourceName>");
Connection connection = datasource.getConnection();
Statement statement = connection.createStatement();
result = statement.executeQuery( <Query>);
connection.close();
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Regards
Vinod -
Access portal system details in Web Dynpro ???
Hello All,
I have a requirement such that in my Web Dynpro application, I need to figure out that the backend R/3 it is trying to connect to, is it a unicode or a non unicode system.
For this purpose, we maintain an additional alias name for the portal system starting with UNI_ if its a unicode box or NONUNI_ if its a non-unicode box.
Is there any other better way of storing this information.
<b>I need to know, how can we fetch all the alias names maintained for a sytem in portal using Web Dynpro APIs.</b>
Please help.
Thanks in advance,
SamtaHi,
please take a look at the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">tutorial section</a> here at SDN. This is a good starting point to learn WebDynpro.
Regards
Sebastian -
Access field of view in web dynpro
Hi all,
I'm developing a web dynpro.
In a view I need to fill automatically a field when I press a button. I'm new in web dynpro and I don't know good the use of standard attriutes and methods of wd (like wdThis, wdContext, etc.)
regards
enzoHi,
please take a look at the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">tutorial section</a> here at SDN. This is a good starting point to learn WebDynpro.
Regards
Sebastian -
Hey people!
Im pretty new in web dynpro, and i want to store the data i input in the inputfields somewhere.. either in a database (oracle) or xml file.. someone got any tips? and if i choose to go for oracle, do i have to create an EJB as well? or could i just write the connections and queries in the views?I think that suggested way is to use SQLJ in a EJB and then use that EJB in your web dynpro project.
Check out this thread.
Accessing Dictionary devlopment component in Web dynpro component
Regards,
Rich Heilman -
Accessing portal dictionary tables from Web Dynpro project
Hi
Am a new to whole portal and webdynpro thing, and I hope that you can help here
I created a new dictionary project through NWDS and created a table with columns and I successfully deployed it
I also created a web dynpro project and I added a TABEL UI to the layout
how can I connect or access the table I created in the dictionary project from the Web dynpro project so I can query all data to fill the TABEL UI in the web dynpro ?
is there a driver that I can use like JDBC where I can just write regular SQL queries ?
regardsHi swathi
See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
Relational Persistence
=================
SQL-based coding: expressive!
SQLJ: for static SQL, checked at design time,
recommended
JDBC: for dynamic SQL, can be combined with SQLJ
=======================
Object-relational Persistence
======================
SQL-free! Portable!
JDO: light-weight object persistence, Java-like dynamic
query language
EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
Regards,
Venkata Kalyan Karanam -
Nwdi-managed access of pcd-objects from java web dynpro
Hi,
im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
thanks
heiko
private static void savePersonalizationData(String value) {
try {
IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
attributeSet.putAttribute(ATTRIBUTE, value);
attributeSet.save();
} catch (Exception e) {
private static Object getIview(String pcdPath) throws Exception {
Hashtable env = new Hashtable();
env.put(
com.sap.portal.directory.Constants.REQUESTED_ASPECT,
com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
env.put(
Context.SECURITY_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
env.put(
IPcdContext.PCD_PERSONALIZATION_PRINCIPAL,
WDClientUser.getCurrentUser().getSAPUser());
InitialContext iCtx = new InitialContext(env);
return iCtx.lookup(pcdPath);Hi Kust,
To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
/message/979328#979328 [original link is broken]
Regards
Krishna Reddy -
Accessing cookies in Web Dynpro EP7 (NW07 )
In 6.40 (EP6), we were able to access cookies using the following line of code in web dynpro:
Cookie[] cookieset = TaskBinder.getCurrentTask().getApplicationSession().getWebContextAdapter().getHttpServletRequest().getCookies();
We are upgrading to NW07 and the getWebContextAdapter method is no longer available. Is there a way to access cookies in NW07 through web dynpro java?
Thanks,
JeffHi,
Their no way to access the cookies from Webdynpro, it will be handled by the framework.
Regards
Ayyapparaj -
Accessing UWL API from Web Dynpro Java
Hi experts,
I need to retrieve the data from UWL into Web Dynpro java, I have gone through many blogs and solutions but since I am new to portal I am unable to a get hang of it. Can anyone provide me step by step solution including codes for my problem?
Thanks & Regards,
Amit Sinha.
P.S. Points will rewarded.Hi Amit,
just gothrough this below link... here they given the coding also.....
Accessing UWL-API out of Web Dynpro Java
it may be helpful to you.... pls comeback if you are struck any where......
Regards,
Srinivas. -
IWDConfiguration service in Web Dynpros
Hi,
I created a .properties file in my web dynpro application, then I am trying to read this .properties file using IWDConfiguration service. Following is my piece of code which I am using, but I am getting error while running the application.
IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("ESSCountrySpecific");
WDDeployableObjectPart[] compParts = deplObj.getParts(WDDeployableObjectPartType.COMPONENT);
WDDeployableObjectPart essPart = null;
for (int i = 0; i < compParts.length; i++) {
if (compParts<i>.getName().equals("com.xxxx.hr.ess.ESSCountrySpecific")) {
essPart = compParts<i>;
break;
IWDConfiguration essConfig = WDConfiguration.getConfiguration(essPart);
String pcdLoc = essConfig.getStringEntry("pcdLocUSl");
I am getting the following error, while running the apllication.
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object 'ESSCountrySpecific' since it is not a Web Dynpro object.
In this case, 'ESSCountrySpecific' is my project name.
Please let me know, what is the deployable object? Is it a name of project created or name of application created or anything else?
Thanks & Regards,
Raj.Hi Raj,
Have a look at these links for more info
http://help.sap.com/saphelp_erp2005/helpdata/en/2a/7a754297fdd142e10000000a1550b0/content.htm
https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/services/sal/deployment/api/IWDDeployableObject.html
/people/sap.user72/blog/2005/06/27/accessing-was-system-configurations-from-web-dynpro
Re: List of deployed applications
Regards -
View KM document in Web Dynpro application
Hello - Does anyone have any tips for accessing KM documents in a web dynpro application? I have tried some of the examples found here but several of the methods were deprecated. Any help would be appreciated. Thank you.
Hi
Refer this sample code. unfortunately that page is not opening directly.
public void getAllStores( )
//@@begin getAllStores()
String prefix = "/documents/Public Documents/Store Data/";
wdContext.nodeStoreTable().invalidate();
IPrivateDocManageView.IStoreTableElement contentElement;
try {
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5user =
WPUMFactory.getUserFactory().getEP5User(sapUser);
IResourceContext resourceontext = new ResourceContext(ep5user);
IResourceFactory resourcefactory =
com.sapportals.wcm.repository.ResourceFactory.getInstance();
RID pathRID = RID.getRID(prefix);
com.sapportals.wcm.repository.IResource resource =
resourcefactory.getResource(pathRID, resourceontext);
ICollection collection = (ICollection) resource;
IResourceList resoucelist = collection.getChildren();
IResourceListIterator resourelistiterator =
resoucelist.listIterator();
while (resourelistiterator.hasNext()) {
String store = null;
com.sapportals.wcm.repository.IResource tempresouce =
resourelistiterator.next();
if (tempresouce.getName().equals(
wdContext.currentFilterDataElement().getFromStore())) {
contentElement = wdContext.createStoreTableElement();
contentElement.setObjectName(
prefix + tempresouce.getName());
wdContext.nodeStoreTable().addElement(contentElement);
tempresouce = resourelistiterator.next();
while (!tempresouce.getName().equals(
wdContext.currentFilterDataElement().getToStore())) {
contentElement = wdContext.createStoreTableElement();
contentElement.setObjectName(
prefix + tempresouce.getName());
wdContext.nodeStoreTable().addElement(contentElement);
tempresouce = resourelistiterator.next();
tempresouce = resourelistiterator.next();
break;
} // while iterate
} catch (Exception e) {
e.printStackTrace();
Mandeep Virk -
Using Native SQL in Web Dynpro for ABAP
Hi folks,
I am trying to access an oracle database in web dynpro for ABAP via Native SQL.
I am able to read row by row from the database into a work area, but I am unable to read the whole table from the database into an internal table.
Please advise as to how I can do this, and thanks for reading.
PS: Thomas, I wasn't off-topic on the previous thread; I forgot to mention that I was trying to do this under Web Dynpro for ABAP.Hello,
it doesn't matter if you try this with Web Dynpro ABAP, BSP or any other framework, this is a general ABAP question and not related to this forum.
Regards,
Rainer -
Dear All.
How can i use my SQLJ and other helper classes (DB engine) in Web Dynpro? Where can i create the connection context? Is it possible, to use java relational persistence in Web Dynpro without EJB model?
Best Regards, Andrey.Hi Andrey,
you should wrap your SQLJ related classes behind some EJB module project and another application project. You can create the Connection Context class and other SQLJ classes just by saying File>New>Other>Persistence>SQLJ Source. So first create your connection context class there and llok up for the Datasource alias as defined in your application.xml file in your application project. Later on in the business methods of your session bean you can access these sqlj helper classes for processing ad access the business methods from web dynpro through EJB project reference or local web service model.
For relational persistence you can use JDO if you dont want to use EJB CMP. Though for JDO, there are no wizards in NWDS for creating the .map or .jdo files. So you have to create these files by your own and have to take care of syntactical errors as in any xml.
Regards,
Shubhadip
Maybe you are looking for
-
Itunes or Configurator
-
Free at last from Word for the Mac 2011
I used Word for 20 years but when I moved on to Lion, I found the 2011 version of Word for the Mac to be a muddled, useless ball of snakes. I switched to Apple's Pages and was pleased with its intuitive and productive arrangement. What a differe
-
Default/protected access question
Why does this work: The class below extends TreePath but is in a foreign package to TreePath. The call at *1* is to a constructor in TreePath that has "default" access. Shouldn't this fail to compile since the "default" modifier only allows classes i
-
ITunes for Windows will not play the next song in the list
Hello, I cannot get iTunes to play the next song in my list (general list, not a playlist). The random icon and/or repeat icon is not blue. Every time I press the next button (two arrows to the right), it picks another song from my list, instead of t
-
Elements 10 Organizer not fully closing
I've been having issues on a Windows 8 PC with Photoshop elements 10 since I've gotten it in Dec 2012, When I close Organizer, the windows is closed. But I can't relaunch. If I bring up Task Manager, I still see two items running, like Photoshop 1