Goos Servllet Design

Firstly let me say i am not keen on using JSP's because they mix scripting language with Java and that can only be bad,
What i would like to know is if you have servlet(pure) and you wish to output data to the client-how do you do this,
If any developer suggests that i should use PrintWriter instance as i have seen in many book/tutorial they should go home and sleep.
You see the problem with PrintWriter instance is that if your boss says i want the page to look like x,z and y you have a huge task in front of you.
A better approach is to have a HTML template page and insert content in dynamically using a find and replace stratergy.
At least then you can make modifications to the layout without touching your java code.
Can anyone suuggest how they have designed a scalable complex servlet in Java such as this one (devshed forums) so that it is maintaible and doesnt contain hunderds of if then else block which have to deal with all the possiblilities.
For example look at this website-you have regisetre , sumbitNewMessage,ForumList etch etc.
Do you mean totell me that the code is written as
code:
if(currentRequest.equals(newMessage)){
//do something
}else if(...){
//do something else
}else if(){
//do something
Any sensible answers welcome

Daryl,
Apologies for not returning to you yestaerday. I wa busy drawing uml and class diagrams which my organisation requires.
I went away and asked my colleagues why one would use multiple servlets for one project. They could not answer. By using multiple servlets the server becomes much less efficient- you have difficulty maintaining security of each servlet and seeing when and if ay has been broken into amd more importantly:
you still need a main controller servlet to take in the request and deal with it appropriately- ie
the if else scenario decribed above and then dispatch it to the correct servlet.
Let me make my example concrete with a simple example:
A servlet can have four operations logOut, payForbasket, addToBasket and removeFromBasket.
Now your method would be that each operation has a different servlet. My approach would be to have a handleResponse() method with a if else blockas explained before.
This is bad design surely.!!
As a side note lets say you have a from which needs filling in- and four fields you must make sure are not blank inputs. My naive approach is to get all the parameters and check if the are equal to "" -if one is blank then build the form again with all the fields which were not empty in place- there must be abetter way to do this.
String notify=httpRequest.getParameter("submitNewBug.notify");
         String version=httpRequest.getParameter("submitNewBug.version");
         String platform=httpRequest.getParameter("submitNewBug.platform");
         String os=httpRequest.getParameter("submitNewBug.os");
         String severity=httpRequest.getParameter("submitNewBug.severity");
         String component=httpRequest.getParameter("submitNewBug.component");
         String description=httpRequest.getParameter("submitNewBug.description");
if(title.equals("")){
          StringBuffer errorString=new StringBuffer("The title was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(notify.equals("")){
          StringBuffer errorString=new StringBuffer("The notify field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(version.equals("")){
          StringBuffer errorString=new StringBuffer("The version field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(platform.equals("")){
          StringBuffer errorString=new StringBuffer("The platform field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(os.equals("")){
          StringBuffer errorString=new StringBuffer("The OS field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         else if(severity.equals("")){
          StringBuffer errorString=new StringBuffer("The severity field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(component.equals("")){
          StringBuffer errorString=new StringBuffer("The severity field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
         }else if(description.equals("")){
          StringBuffer errorString=new StringBuffer("The severity field  was not filled out ");
          return submitNewBug(responsePage,errorString,projectID,title,notify,version,platform,os,severity,component,description);
    //else form correctly filled in!-so can carry onIf you have a big servlet then i do not believe this is how you retain form fields the cient has submitted- Remember i am using a template HTML file where i do a find and replace strtergy

Similar Messages

  • Design time issues

    hi,
    i have some problems displaying my usercontrols with EF6 in design time
    first i had a connectionstring not found exception, so after some search i modified the dbcontext constructor to change connectionstring dynamically like this
    public partial class CardioEFEntities : DbContext
    public CardioEFEntities(String connString)
    : base(connString)
    string p = "metadata=res://*/CardioEFModel.csdl|res://*/CardioEFModel.ssdl|res://*/CardioEFModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string='character set=ISO8859_1;data source=localhost;initial catalog=C:\\Dev\\WPF\\Projects\\Cardio\\CARDIO.FDB;user id=SYSDBA;password=masterkey'";
    p = p.Replace("localhost", arr[0]);
    p = p.Replace("C:\\Dev\\WPF\\Projects\\Cardio\\CARDIO.FDB", arr[1]);
    context = new CardioEFEntities(p);
    now i have a blank empty page instead of the exception !
    i would say that everything work at runtime fine but not in design time,
    also i have my DAL in a separate class library project .
    any help is welcome
    thanks and goo day !

    Hi,
    yes i have installed EF and db provider both in my application and in my DAL project
    here the app.config of my app
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    </configSections>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
    </startup>
    <entityFramework>
    <defaultConnectionFactory type="FirebirdSql.Data.EntityFramework6.FbConnectionFactory, EntityFramework.Firebird" />
    <providers>
    <provider invariantName="FirebirdSql.Data.FirebirdClient" type="FirebirdSql.Data.EntityFramework6.FbProviderServices, EntityFramework.Firebird" />
    <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
    </providers>
    </entityFramework>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="FirebirdSql.Data.FirebirdClient" publicKeyToken="3750abcc3150b00c" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <connectionStrings>
    <add name="CardioEntities" connectionString="metadata=res://*/CardioModel.csdl|res://*/CardioModel.ssdl|res://*/CardioModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string=&quot;character set=ISO8859_1;data source=localhost;initial catalog=C:\Dev\WPF\Projects\Cardio\CARDIO.FDB;user id=SYSDBA;password=masterkey&quot;" providerName="System.Data.EntityClient" />
    <add name="CardioEFEntities" connectionString="metadata=res://*/CardioEFModel.csdl|res://*/CardioEFModel.ssdl|res://*/CardioEFModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string=&quot;character set=ISO8859_1;data source=localhost;initial catalog=C:\Dev\WPF\Projects\Cardio\CARDIO.FDB;user id=SYSDBA;password=masterkey&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    <system.data>
    <DbProviderFactories>
    <remove invariant="FirebirdSql.Data.FirebirdClient" />
    <add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient" />
    <remove invariant="System.Data.SQLite.EF6" />
    <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
    </DbProviderFactories>
    </system.data>
    <appSettings>
    <add key="AWSAccessKey" value="" />
    <add key="AWSSecretKey" value="" />
    </appSettings></configuration>
    and the app.config of my DAL project
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </configSections>
    <entityFramework>
    <defaultConnectionFactory type="FirebirdSql.Data.EntityFramework6.FbConnectionFactory, EntityFramework.Firebird" />
    <providers>
    <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    <provider invariantName="FirebirdSql.Data.FirebirdClient" type="FirebirdSql.Data.EntityFramework6.FbProviderServices, EntityFramework.Firebird" />
    </providers>
    </entityFramework>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="FirebirdSql.Data.FirebirdClient" publicKeyToken="3750abcc3150b00c" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <system.data>
    <DbProviderFactories>
    <remove invariant="FirebirdSql.Data.FirebirdClient" />
    <add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient" />
    </DbProviderFactories>
    </system.data>
    <connectionStrings>
    <add name="CardioEntities" connectionString="metadata=res://*/CardioModel.csdl|res://*/CardioModel.ssdl|res://*/CardioModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string=&quot;character set=ISO8859_1;data source=localhost;initial catalog=C:\Dev\WPF\Projects\Cardio\CARDIO.FDB;user id=SYSDBA;password=masterkey&quot;" providerName="System.Data.EntityClient" />
    <add name="CardioEFEntities" connectionString="metadata=res://*/CardioEFModel.csdl|res://*/CardioEFModel.ssdl|res://*/CardioEFModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider connection string=&quot;character set=ISO8859_1;data source=localhost;initial catalog=C:\Dev\WPF\Projects\Cardio\CARDIO.FDB;user id=SYSDBA;password=masterkey&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    </configuration>
    now i have again this error
    System.Data.Entity.Core.MetadataException
    Schema specified is not valid. Errors:
    CardioEFModel.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'FirebirdSql.Data.FirebirdClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
    btw in my code i have a class that implement INotifyPropertyChanged wich get the data from database,
    in my usercontrol i have a reference for that class like this
    <UserControl.Resources>
    <local:ListeConsViewModel x:Key="ListeConsViewModel"/>
    </UserControl.Resources>
    <UserControl.DataContext>
    <local:ListeConsViewModel />
    </UserControl.DataContext>
    thanks for your help

  • Thermal design problems for MacBook Air Rev. A.

    I am having a serious problem to watch streaming movies with first generation of Macbook Air. From the web sites, I leaened that this is due to "thermal design problems" and found that instration of "xnu-speedstep-air: https://github.com/reid/xnu-speedstep-air/blob/master/README.md" would solve this problem. I have tried to install this extension without success as I am not a computer expert. I appreciate it if somebody explain in detail how to install this. Thanks for your help.

    First of all, check this:
    http://support.apple.com/downloads/MacBook_Air_EFI_Firmware_Update_1_0
    http://support.apple.com/downloads/MacBook_Air_SMC_Firmware_Update_1_2
    If these updates don't help then download this app, it allows you to throttle the macbook's fans up so it runs cooler
    http://links.visibli.com/4b93fc22658d1fa7/?web=cc555a&dst=http%3A//feedproxy.goo gle.com/%7Er/SoyDeMac/%7E3/1KAZTfyEZS4/story01.htm
    I think you'll find this app simpler than the one you are trying to install.
    Hope it helps!

  • Can not see two fields in Crystal 2008 Developer explorer/designer view

    I am currently developing crystal 2008 reports against the salesforce.com database using version 12.0.0.683 CR Developer Full version. I am using an updated driver that was provided in July or Aug 08 in order to view self referencing fields. The problem is that when I try and report against one of the tables (lead history) I cannot view two of the fields (New Value and Old Value)? I can see these two field (New Value and Old Value) in the database expert as the last two fields in the actual table, but the two fields are missing when I go into the explorer/designer view. In Salesforce, these two fields can not be filtered on, but I can export all the values in this table using Salesforece Apex data loader.

    Please re-post if this is still an issue to the OnDemand Forum or purchase a case and have a dedicated support engineer work with you directly

  • MSI Forum Wallpaper Design Contest

    Prize:
     The winner will be rewarded with a soon to be launched Z87-GD65 GAMING motherboard.
    (check it out at http://game.msi.com)
    How:
     Design and submit a wallpaper in this Forum topic.
     (If you don't have an MSI Forum account you need to register first here, please read how to add pictures to forum posts below)
    Contest Rules:
    -   Submitted wallpapers must be at least 1920x1080.
        (Preferably JPG or PNG formats, 16:9 or 16:10 ratio, max 2560x1600)
    -   You can post as many unique wallpapers as you like until the contest ends at June 28th 18:00h (GMT).
        (when we will lock this topic).
    -   MSI will select and announce the winner, one week after the contest has ended.
    -   The winner will be contacted by PM and registered email.
        (if we can’t reach the winner within one week, we will select a new winner)
        (so please check your PMs/Email regularly when the contest has ended)
    -   MSI Forum Rules and MSI Forum Terms also apply to the Wallpaper entries, so keep it clean.
        (no obscenity/vulgarity/copyrighted material).
        MSI reserves the right to remove entries when we think the entry is inappropriate.
    -   By submitting your wallpaper entry to this forum you give MSI the right to use/upload/print
        any wallpaper entries for marketing activities during or after this contest.
    Hints:
    -   Upload your wallpaper(s) to an image hoster  (e.g. photobucket, imageshack, etc) or other online location with unrestricted access.
    -   Please use the following tags to add your uploaded wallpaper to your forum post.
       Code: [Select]
    [img width=760]http://url-to-your-wallpaper-goes-here.jpg[/img]    (“width=760” added for proper forum scaling, does not affect original image). More info here.
        (Please Note if you also want to use the URL tags you need at least 2 posts in the forum (=anti spam measure))
    -   Use high quality pictures. As a starter you can use any pictures/logos from http://media.msi.com or
        other MSI websites (http://www.msi.com, http://game.msi.com, http://oc.msi.com)
    -   Increase your chance of winning by:
          1.) Using the MSI Dragon image
          2.) Using the MSI Gaming theme or the MSI OC theme
          3.) Get a lot of users to share your Forum post on Facebook
               (everyone can share your Forum post on Facebook by clicking the button in your forum post).
    Good luck everyone.

    Hello everyone,
    Here is my submission for the contest with 7 wallpapers (I know it's a lot... but I was inspired so... ^^ )
    For the 2 first ones, I wanted some classic good looking wallpapers with the MSI Dragon being the center of it, with some high quality effects. So here they are, a bright version and a dark one.
    Hope you guys like it.
    For the 5 next ones, I tried something really different. More in an advertising campaign way. Some minimalist looking wallpapers, trying to focus on simple things, no shadow effect. Art on it's purest form, simple but well thought.
    I asked myself why people would chose MSI instead of another brand, so I figured the people who already know that. So I first started with the "Gamers know why" because it's obvious, then went to an iconic e-sport legend ("Legends Know Why") Mr. Patrik 'cArn' Sättermon, I think he and the Fnatic team clearly represent why people should chose MSI. So I used the Fnatic team for the third one "Winners know why", they are clearly one of the best multigaming team of the world and are sponsored by MSI for quite a few years now. (The picture is from the IEM 5 For the 4th one, I noticed that I start to see more and more MSI laptops around me, at college etc, so I thought that "The World knows why". And for the last one I tried to represent the spirit around the MSI Dragon and the whole Gaming part of MSI, that feeling of POWER. So I tried to make that last one a combination of the 2 styles. Representing the Power coming out of the Dragon... in a minimalist way. So here's "Unleash the Dragon". I hope I succeed. And I really hope you like my work. It took me several hours to complete that "campaign" and I'm really proud of it. I used the "#" system in it because as I made it as an advertising campaign, I thought it would be nice if everyone could share that spirit easily.
    The picture of cArn and the one of the Fnatic team are from the internet, the rest comes from my personal pictures (textures and such) and of course everything is homemade.
    Cheers.

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • Text value is not getting displayed in Query designer !!

    Dear experts..,
    i have created a new query in query designer using my info provider and then selected one field in default value and then trying to restrict that particular field while selecting the restriction in query designer am getting the exact text value but after generating the report instead of text value , key value is getting displayed....so how can i get text instead of key value??
    please help me friends....
    i have posted in OSS mesage also...i got a reply like...even i didnt understand his reply too...what he is trying to say?
    whether can i get text display or not???
    can any one help me in this regard???
    SAP Reply----
    Hello kumar,
    After another analysis I have to inform you about general concept of
    "compounded characteristics".
    A compounded characteristic bounds two characteristics. The technical
    name is generated by both technical names of the two characteristics
    combined by two underlines "__".
    An individual text is only available for one single combination of both
    characteristics.
    Example:
    =======
    Compounded characteristic "Famous family name" is a combination of
    characteristic "COUNTRY" & "ETHNIC". Technical name: COUNTRY__ETHNIC
    Values for Country: USA, Australia
    Values for Ethnic: Asian, Latino
    Possible value combinations with individual text:
    USA & Asian; text: "Ling"
    USA & Latino; text: "Sanchez"
    Australia & Asian; text: "Chu"
    Australia & Latino; text: "Garcia"
    (Keep in mind the individual text only valid for the specific
    combination.)
    In analogy to the issue that you reported, you want to restrict this
    compounded characteristic. In the window where you select the restrictedvalue (called Selector) you'll see on the left hand side all available
    combinations of the characters with an individual text.
    You select family name "Chu" and drag'n'drop it to the right side.
    Actually you can only restrict the right compounded characteristic. In
    our example you would restrict on characteristic "ETHNIC" with value
    "Asian". (When you switch on technical names this comes more clear). Thetext "Chu" is displayed in the context of Selector because you selected
    value combination Australia & Asian. But in the end it's just a
    placeholder(!) for any combination of characteristic "ETHNIC" and value
    #Asian#; in our example it could be USA & Asian "Ling" or Australia &
    Asian "Chu").
    By leaving the Selector the individual text is gone because now the
    context is lost between the two characteristics. You have just a
    restriction on characteristic "ETHNIC" with value "Asian". An individualtext can't be displayed because the compounded characteristic is not
    specified for this restriction.
    You're right, it is confusing when "loosing" the text of a restriction.
    But accoring to the concepts of the compounded characteristics it
    is a correct behavior.

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • Master data is not getting displayed in the Query Designer

    Hi,
    I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
    The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
    I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
    The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
    Hope its clear.
    Please help.
    Thanks

    Hi,
    I have brought the Emp. No. in the Key Field and also have activate the master data again.
    Yet my Query Designer doesn't have the Emp. No.
    I have done a full load for both Master and Transaction.
    Please advice me what the other alternative.
    Thanks

  • Multiprovider design -problem

    I am just creating the multiprovider on Custom Billing cube and Custom DSO .
    In my billing cube , I have Billing document assigned to line item dimension
    and Line item is also in another in another line item diemsion .
    My DSO have Billing document number , Item number and Partner function as primary key .
    Could you please let me know how should be my MP design ?
    How to create a dimension in Multiprovider ?
    Can I assign the Billing document from cube and Billing document from DSO to the same diemsion ?
    How to figure out the  Partner function Characterstic of DSO which is primary key of DSO but not having this fields in billing cube . ?
    There are 2 other data fields available in DSO which is not there in Billing cube , Do i hv to create a new dimension for them ?
    Please help me soon .
    Regards

    Can I assign the Billing document from cube and Billing document from DSO to the same diemsion ?
    You can create a single dimension for this, in that you can use Billing document and right click assign/identify from the both DSO/Cube.
    How to figure out the Partner function Characterstic of DSO which is primary key of DSO but not having this fields in billing cube . ?
    Create separate dimension for these Partner function Characterisitcs
    There are 2 other data fields available in DSO which is not there in Billing cube , Do i hv to create a new dimension for them ?
    If those data fields related to Billing Document, then you can add these two fields to fisrt dimension (Billing Document Dimension).
    Hope you get some idea.
    Veerendra.

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts,
    I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
    I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
    Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
    "An error occurred while communicating with the BI server.
    As a result of this error, the system has been
    disconnected from the BI server.
    Detailed Description:
    STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
    Details text is as below:
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
    I have tried with SAP Note 899572, but still it's the same.
    Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
    Your time is much appreciated.
    Thanks,
    Chandu

    Arun - Thanks a million. You saved me Nine. It worked.
    Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
    Points already assigned.
    Thanks,
    Chandu

  • Dunning Letter Design & Aging report

    Hello Experts,
    I have a few doubts in B1 Sales AR -> Dunning and Aging Reports.
    1. How do we incorporate our own letter format for dunning letters? I looked for PLD's, but nothing was available in the print preview screen.
    2. When we execute Customer Receivables Aging report, what is the significance of the column "Future Remit"? In our B1 instance, the receivables that are due 60 or 90 days from current date are not appearing in their respective columns.
    Please advise on how to proceed
    With Regards,
    PS: We are running B1 2005-B / MS-SQL 2005

    Hi Kaatss,
    You should be able to find the Dunning letter formats by clicking on the layout designer button and then from the windows selecting the dunning letter formats from the 'Choose Document Type'.  They go by the ID of DUN0... DUN09.
    As for the columns the 60 and 90 columns show the invoices (values) that are overdue by 60 and 90 days respectively.
    The Future Remit column shows invoices that are still within the due date.  So if you raise two invoice with 60 and 90 day payment terms, but they are still within their due date, their values will appear in the future remit column.
    I hope this helps.  I use 2005A so I hope there are no differences.
    Damian

  • Web design reporter and Report designer is not working in SAP BI

    Hello,
    I am facing JAVA RFC error in Web reporting designing and reporting designer tools in BEx application. For more details please check the attachment in mail  Any one help me for this issue.
    Please check the my system details in the following
    SAP ECC 6.0 EHP 6 with ABAP stack
    SAP BI 740 with ABAP stack
    BO 4.1
    Thanks & regards,
    Surendra

    Hi,
    Check with basis team , either they have configured rfc connection properly or not.
    Refer below also:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0a5216a-349c-2a10-9baf-9d4797349f6a?QuickLink=index&…
    Thanks.

  • Using Designer to get Document ID in Document Library

    I am creating an approval workflow on a document library that auto starts on submitting a document.
    What I want to do, besides sending the user a link to view the document, is to actually provide a link to the URL that is used to generated the popup with approval options. I do not need a popup.  When you paste the URL popup in the address bar, you
    get the page with the correct info.
    Here's the URL:
    http://.../_Layouts/listform.aspx?PageType=4&ListId={...}&ID=22
    The number 22 is what I am trying to get.
    In Designer, when i do a look up, I cannot seem to get the ID of the document in the list view.

    Hi Ogrehulk,
    Is the URL the related document in the approval task?
    Do you want to put the URL in the email when user gets the task notification? 
    If yes, we can get the ID of the related document in the Start Approval Process step.
    Click Approval in the Start Approval Process step.
    Click Change the behavior of a single task under Customization.
    Navigate to the step Email task notification to Current Task:Assigned To in When a Task is Pending.
    Click Current Task:Assigned To.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can i design a EJB application using session Beans?

    Hello,
    I am designing a Find application using EJB. Here a user is prompted a search page, where he can enter the search criteria's. Then on click of submit, the query is formed at the server side depending on what criteria's were selected. Then a jdbc query is performed and the results are returned back to the user. Here no session is maintained for the users. Can anyone suggest me how to design this application using EJB. Should i use entity beans for this or session beans will suffice? Should the jdbc query be performed in the bean itself or should it be outside in a helper class? Please kindlu suggest me the design for this application...
    Regards,
    Subbu

    Hi,
    First of all, I'm unable to figure out why you need to use EJB for this scenario. You can write a helper class to frame and execute the query.
    If you really want to use EJB, then I suggest you use a stateless Session Bean with transaction attribute as TX_NOT_SUPPORTED. From the session bean, you can call the helper class. But, by avoiding the session bean, you can eliminate remote calls, thus improving your performance. Also, check if the database & the db driver you are using supports sql caching.
    Regards,
    Raj.

  • List view web part not reflecting changes made to list view in SharePoint Designer

    Dear All,
    When adding a list view web part containing a view modified in SharePoint designer (e.g. conditional formatting applied, or group headers modified) I'm finding that the changes made in SPD are not reflected in the web part. 
    For example, I go into SPD edit a view, and the view appears correctly when I go back into SharePoint, however when I link to the view within a list view web part it results in losing the changes made in SPD. 
    Becasue it's a publishing page I'm unable to edit the contents of the web part in SPD.
    I'm sure this is expected behavior but how do I get around this?
    Thnaks,
    MDB

    Try below
    http://stackoverflow.com/questions/19533998/sharepoint-designer-doesnt-show-anything-in-list-and-libraries-link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a63a1894-6b1d-420a-95dd-b6c546eab34d/updates-made-to-sharepoint-designer-2010-workflow-do-not-show-up-on-the-server?forum=sharepointcustomizationprevious
    http://stackoverflow.com/questions/5959521/sharepoint-designer-saves-the-changes-but-it-does-not-affect
    http://social.technet.microsoft.com/Forums/en-US/1e9a8c27-bbc5-4a6f-8daf-4b243182f543/changes-in-sharepoint-designer-2010-not-showing-in-sharepoint-server-2010-page?forum=sharepointadminprevious

Maybe you are looking for