Conditionalized text and abutting variables

The content uses two variables: "
institution" and "
campus."
All text regarding campuses needs to be conditionalized.
For the most part, I've had complete success with
conditionalizing text that includes variable(s). The problem comes
in when there is another variable before or after the text that I
select for the condition. For example, if I try to conditionalize "
/campus" in the phrase "institution/campus" the condition
also grabs the
institution variable. Or, if the phrase is "feature is
available for institution and campuses." when I conditionalize "
and campuses" the condition also grabs "institution."
The grab doesn't occur when the condition is initially
entered. In the topic content, the change occurs when I switch
between wysiwyg and truecode. When the condition is set in expanded
text, it looks fine. Close the expanded text and then reopen it,
and the condition has grabbed the neighboring variable.
I'm using Robohelp HTML 6.
For now, I'm rewriting the text. But is there a solution?
Thank you.

First try getting it right in code view, then save from
there, then open another topic. Reopen the topic and see if it
still works. If it does (unlikely) make some other edit in WYSIWYG.
My guess is the problem will still be there. If it is. Create
a new project with one topic with this problem in it. Zip it up and
send it to me via my site. In the email, include a link to this
topic.
In the topic have a paragraph with the problem and below that
repeat the paragraphs with text showing the results you want to
achieve.
I'll verify I get the same result and try to find a
workaround.

Similar Messages

  • Create a Link using Dynamic Text and Capture Variable

    I am building a dynamic website using Dreamweaver CS5 with Coldfusion 9
    Currently I have created a dynamic text table. The table is created by querying the Invoice table and displays the all the customers Invoices. The columns Include Invoice #, Date, Amount Paid, BalanceRemaining, Due Date. So basically lists all the invoices I have applied to the unique customer. It is pulled up using a session variable I created from the login page.
    My question is this I want to make the "Invoice #" linked so when you click on it it goes to a new page and performs a new query which retrieves infro related to that specific invoice such as Services Rendered, Service Description, Date, Price, Total. I was able to create a link to the Invoice # but I am stuck trying to figure out how to capture the Unique Invoice # and apply it to the new query. Is this possible if so how?
    Thanks for your help!

    Now keep in mind I am speaking strictly from a web and SQL standpoint as I have no experience with coldfusion.
    If you are able to create the link to the Invoice, I am perceiving this as the following:
    Invoice
    Links to
    #123
    page.php?invoice=123
    #345
    page.php?invoice=345
    If your page is setup like that then you already have the data stored in the browser request with the GET method.  In PHP the equivalent is the $_GET array.  I am assuming ColdFusion has a similar array to work with forms.  Then on your following page you obviously need to check that the visitor came from the prior page with the proper permissions to ensure that someone doesn't get the address page.php?invoice=### and just guesses through and views all invoices if they are not supposed to.  Then your query would look something like the following:
    SELECT * FROM invoice_table WHERE invoice_number = $_GET['invoice']
    Remember this in written in PHP so yours should be a similar equivalent.
    Hopefully this helps a little to get you going in the right direction.

  • How to use Text and Image variables for printing

    I have been working on product configurator with AS3 for several months now.
    I am not proficient with AS3.
    Now, it seems that maybe my design is all wrong.
    Is there a proper way to do this?
    I have a main timeline that has movie clips showing images of different options for the product.
    On the first frame, I use buttons to select the choice for option 1 from the Option1_mc.
    Then I store the choice in a variable.
    I use a button to go to the next choice (frame 10.)
    On frame 10, I use buttons to select the choice for option 2 from the Option2_mc.
    This is stored in another variable.
    There are about 10 options that are selected and stored in variables.
    Some are text values and others are instances of images from the Option movie clips.
    I made a Print_mc to use for printjob.
    I can't get the values of the variables to display in the first frame for printing.
    Any helpl would be appreciated.

    you're welcome.
    you won't insert a variable into a textfield.  you'll assign the text property of your textfield to be the value one of your variables points to.
    so, for example, if you have:
    var var1:String="this is a test";
    you can use:
    tf.text=var1;

  • Defining text and integer variables??

    I found this in some code:
    var num = 0, txt = "bo";
    I guess it could also have been written as:
    var num = 0,
    txt = "bo";
    Why is it allowed to define an integer by just using "," and when you define a text variable you use ";"

    The code you are looking at would be javascript, not java.
    Despite the name, the two are definitely NOT the same thing.
    Why is it allowed to define an integer by just using "," and when you define a text
    variable you use ";" You are misunderstanding the syntax.
    The semicolon ';' completes a statement
    the comma was just separating multiple variable declarations on the same line.
    It could just as easily have been
    var txt="bo", num=0;
    var a=42, b=69, c=666;
    Just to reiterate this is NOT valid java code. Java does not use the "var" keyword.
    It is javascript, which means it can do pretty much whatever it likes ;-)

  • Is variable offsets can be used for characteristics, text and formulas?

    hi all,
    can anyone let me know whether variable offsets can be used for characteristics, text and formulas.
    if so cany one send me examples of using offsets to my email id [email protected]
    regds
    hari

    You use offsets on dates (0CALMONTH, 0FISCYEAR, 0DAT and so on) and of course the corresponding texts.
    If you have 0CALMONTH in your query and you want to do the same thing not only for the current month but for the past twelve months, they you just minus 1, 2....11,12 for each selections, and at the same time you can create text variable for the description of each month.
    thanks.
    Wond

  • Trying to pass and object variable to a method

    I have yet another question. I'm trying to display my output in succession using a next button. The button works and I get what I want using test results, however what I really want to do is pass it a variable instead of using a set number.
    I want to be able to pass the object variables myProduct, myOfficeSupplies, and maxNumber to method actionPerformed so they can be in-turn passed to the displayResults method which is called in the actionPerformed method. Since there is no direct call to actionPerformed because it is called within one of the built in methods, I can't tell it to receive and pass those variables. Is there a way to do it without having to pass them through the built-in methods?
    import javax.swing.JToolBar;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import java.net.URL;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Panel extends JPanel implements ActionListener
         protected JTextArea myTextArea;
         protected String newline = "\n";
         static final private String FIRST = "first";
         static final private String PREVIOUS = "previous";
         static final private String NEXT = "next";
         public Panel( Product myProduct, OfficeSupplies myOfficeSupplies, int maxNumber )
                 super(new BorderLayout());
              int counter = 0;
                 //Create the toolbar.
                 JToolBar myToolBar = new JToolBar( "Still draggable" );
                 addButtons( myToolBar );
                 //Create the text area used for output.
                 myTextArea = new JTextArea( 450, 190 );
                 myTextArea.setEditable( false );
                 JScrollPane scrollPane = new JScrollPane( myTextArea );
                 //Lay out the main panel.
                 setPreferredSize(new Dimension( 450, 190 ));
                 add( myToolBar, BorderLayout.PAGE_START );
                 add( scrollPane, BorderLayout.CENTER );
              myTextArea.setText( packageData( myProduct, myOfficeSupplies, counter ) );
              setCounter( counter );
         } // End Constructor
         protected void addButtons( JToolBar myToolBar )
                 JButton myButton = null;
                 //first button
                 myButton = makeNavigationButton( FIRST, "Display first record", "First" );
                 myToolBar.add(myButton);
                 //second button
                 myButton = makeNavigationButton( PREVIOUS, "Display previous record", "Previous" );
                 myToolBar.add(myButton);
                 //third button
                 myButton = makeNavigationButton( NEXT, "Display next record", "Next" );
                 myToolBar.add(myButton);
         } //End method addButtons
         protected JButton makeNavigationButton( String actionCommand, String toolTipText, String altText )
                 //Create and initialize the button.
                 JButton myButton = new JButton();
                     myButton.setActionCommand( actionCommand );
                 myButton.setToolTipText( toolTipText );
                 myButton.addActionListener( this );
                   myButton.setText( altText );
                 return myButton;
         } // End makeNavigationButton method
             public void actionPerformed( ActionEvent e )
                 String cmd = e.getActionCommand();
                 // Handle each button.
              if (FIRST.equals(cmd))
              { // first button clicked
                          int counter = 0;
                   setCounter( counter );
                 else if (PREVIOUS.equals(cmd))
              { // second button clicked
                   counter = getCounter();
                      if ( counter == 0 )
                        counter = 5;  // 5 would be replaced with variable maxNumber
                        setCounter( counter );
                   else
                        counter = getCounter() - 1;
                        setCounter( counter );
              else if (NEXT.equals(cmd))
              { // third button clicked
                   counter = getCounter();
                   if ( counter == 5 )  // 5 would be replaced with variable maxNumber
                        counter = 0;
                        setCounter( counter );
                      else
                        counter = getCounter() + 1;
                        setCounter( counter );
                 displayResult( counter );
         } // End method actionPerformed
         private int counter;
         public void setCounter( int number ) // Declare setCounter method
              counter = number; // stores the counter
         } // End setCounter method
         public int getCounter()  // Declares getCounter method
              return counter;
         } // End method getCounter
         protected void displayResult( int counter )
              //Test statement
    //                 myTextArea.setText( String.format( "%d", counter ) );
              // How can I carry the myProduct and myOfficeSupplies variables into this method?
              myTextArea.setText( packageData( product, officeSupplies, counter ) );
                 myTextArea.setCaretPosition(myTextArea.getDocument().getLength());
             } // End method displayResult
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event dispatch thread.
         public void createAndShowGUI( Product myProduct, OfficeSupplies myOfficeSupplies, int maxNumber )
                 //Create and set up the window.
                 JFrame frame = new JFrame("Products");
                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 //Add content to the window.
                 frame.add(new Panel( myProduct, myOfficeSupplies, maxNumber ));
                 //Display the window.
                 frame.pack();
                 frame.setVisible( true );
             } // End method createAndShowGUI
         public void displayData( Product myProduct, OfficeSupplies myOfficeSupplies, int maxNumber )
              JTextArea myTextArea = new JTextArea(); // textarea to display output
              JFrame JFrame = new JFrame( "Products" );
              // For loop to display data array in a single Window
              for ( int counter = 0; counter < maxNumber; counter++ )  // Loop for displaying each product
                   myTextArea.append( packageData( myProduct, myOfficeSupplies, counter ) + "\n\n" );
                   JFrame.add( myTextArea ); // add textarea to JFrame
              } // End For Loop
              JScrollPane scrollPane = new JScrollPane( myTextArea ); //Creates the JScrollPane
              JFrame.setPreferredSize(new Dimension(350, 170)); // Sets the pane size
              JFrame.add(scrollPane, BorderLayout.CENTER); // adds scrollpane to JFrame
              JFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); // Sets program to exit on close
              JFrame.setSize( 350, 170 ); // set frame size
              JFrame.setVisible( true ); // display frame
         } // End method displayData
         public String packageData( Product myProduct, OfficeSupplies myOfficeSupplies, int counter ) // Method for formatting output
              return String.format( "%s: %d\n%s: %s\n%s: %s\n%s: %s\n%s: $%.2f\n%s: $%.2f\n%s: $%.2f\n%s: $%.2f",
              "Product Number", myOfficeSupplies.getProductNumber( counter ),
              "Product Name", myOfficeSupplies.getProductName( counter ),
              "Product Brand",myProduct.getProductBrand( counter ),
              "Number of Units in stock", myOfficeSupplies.getNumberUnits( counter ),
              "Price per Unit", myOfficeSupplies.getUnitPrice( counter ),
              "Total Value of Item in Stock is", myOfficeSupplies.getProductValue( counter ),
              "Restock charge for this product is", myProduct.restockingFee( myOfficeSupplies.getProductValue( counter ) ),
              "Total Value of Inventory plus restocking fee", myOfficeSupplies.getProductValue( counter )+
                   myProduct.restockingFee( myOfficeSupplies.getProductValue( counter ) ) );
         } // end method packageData
    } //End Class Panel

    multarnc wrote:
    My instructor has not been very forthcoming with assistance to her students leaving us to figure it out on our own.Aren't they all the same! Makes one wonder why they are called instructors. <sarcasm/>
    Of course it's highly likely that enough information was imparted for any sincere, reasonably intelligent student to actually figure it out, and learn the subject in the process.
    And if everything were spoonfed, how would one grade the performance of the students? Have them recite from memory
    public class HelloWorld left-brace
    indent public static void main left-parenthesis String left-bracket right-bracket args right-parenthesis left-brace
    And everywhere that Mary went
    The lamb was sure to go
    db

  • Issue with visibiliy of dynamic text and hyperlinks

    Hi everyone,
    It's been a while since I've build a Flash site and a I'm finding a out a lot has changed.
    I'm building a simple site with some pictures, text and the 5 last posts from Twitter.
    This last one is not working out that well.
    First of all:
    The outputed data from Twitter is displayed into a dynamic text field which is working fine when I test the movie in Flash, but as soon as I upload it to my server the text is not visible.
    Flash already told me that I need to enclose my font in the movie (that's new for me) and I did that using the button in the properties windows.
    But it still won't work.
    I recreated the Twitter reader in a empty document to isolate it from my website during the troubleshooting.
    Here's the AS I'm using:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("twitter.php"); //used when swf in placed on server
        loadXML.load("");
        function processXML(loaded:Boolean)
            if(loaded)
                var node = this.firstChild;
                tweet_1.text = node.childNodes[0].childNodes[2].firstChild;
                tweet_2.text = node.childNodes[1].childNodes[2].firstChild;
                tweet_3.text = node.childNodes[2].childNodes[2].firstChild;
                tweet_4.text = node.childNodes[3].childNodes[2].firstChild;
                var follower_count = node.childNodes[9].childNodes[11].childNodes[9].firstChild;// Creates variable
                trace(follower_count); //loads variable into output
                follower_count_txt.text = follower_count;// show follower count in text box
            else
                error_txt.text = "Error loading XML file";
                        for (i=0; i<follower_count; i++)
                            _root.attachMovie("tweep_mc", "tweep"+i+"_mc", i);
                            _root["tweep"+i+"_mc"]._x = 150 + random(500);
                            _root["tweep"+i+"_mc"]._y = 150 + random(500);
                            trace(i);
                        trace(i);
        follow_btn.onRelease = function()
            getURL("");
    facebook_btn.onRelease = function()
            getURL("");
    stop();
    Right here you can see the output of it on the server.
    The second issue:
    The items posted to Twitter will simply always contain pictures which Twitter posts as hyperlinks.
    Is there a way to make those hyperlinks function in my dynamic text field?
    Hope you guys can help me out!
    Thanks in advance!!
    Karim

    Ok.. After some resarch I find out the guy who created this made use of the Twitter API.. Since I don't know how to do that and
    can't find straight answers that's not an option for me...
    Althought...
    What I forgot to mention in the first post:
    This is what the beginning of actionscript is actually looking like right now and why it is working offline:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=karimbizid2");
    I'm getting the data direct from the Twitter server.
    This procedure does'nt neceserly need a PHP file to store the XML, right?
    I'm guessing it's just a visual issue why the text isn't showing.
    Karim

  • Reading in a line of text and breaking it up, complicated

    Hi all,
    At the moment im reading in a few 100 lines of text from a file, each line contains a command and a few variables which need to be set to existing variables I have created shown below;
    Int variableA ;
    Int variable B ;
    Int variable C;
    Int Variable D;
    However I have no way to know which command will go with which variables,
    On every line there will be one command and two variables..
    The possible command are; ADD, SUB, TIMES, Divide, COPY, SET
    And the text coming in look like this;
    SET A10, B15 // set each variable
    SET C33, D50 // as above
    COPY A, B // which means assign copy what ever in variableA to variableB
    ADD C, D // which mean add variableC�s contents to variableD contents
    SUB B, C // which is subtract variableC contents by what ever is in variableB
    Does anybody know of a way where I can test what the next command is, and assign the correspond variables , so far I have come up with;
    But am not sure if this is the best way to go about it, was thinking maybe I should put the text file into an array, which might make it easyer to process.
    public static void main (String [] args)
    int D = 0 ;
    int C = 0 ;
    int B = 0 ;
    int A = 0 ;
    StringTokenizer st ;
    String line ;
    String buffer = "";
    String file ="test2.txt" ;
    String name = "";
    String billy = "";
    try
    FileReader fr = new FileReader(file) ;
    BufferedReader inFile = new BufferedReader (fr) ;
    //read in one line @ a time
    buffer =inFile.readLine() ;
    while (buffer !=null)
    StringTokenizer words = new StringTokenizer (buffer) ;
    //put the buffer "line" into a tokenizer for individual characters out of a line;
    while(words.hasMoreTokens())
    String letter = words.nextToken() ;
    if(letter.charAt (0) == 'S') // if first letter = S would be SET
    System.out.println(letter) ;
    //display the token as a test output;
    if(letter.charAt (0) == 'A') // if letter = A would be ADD
    System.out.println(letter) ;
    buffer = inFile.readLine() ;
         //read in next line
    inFile.close();
    catch (FileNotFoundException e)
    System.out.println("File not found");
    catch ( IOException e)
    System.out.println("IO Exception") ;
    }

    hi,
    i think that what u r tring to do is "parsing" where u translate these primatin=ve commands to execute them, if so here what u need to do:
    Rad a line untell end of file
    for each token in the line
    if(token="SET" || token="ADD || token=""SUB")
    {       //save operation for later use
    operation=token;
    //now u expect the next token to be an operand
    token=nextToken;
    if (token!="" and token!=",")//it must be an operand
    {operand1=token;
    token=next token;
    if(token=",")//do nothing just read the nest operand
    token=nexttoken;
    else //syntax error in file, exit ;
    if (token!="" and token!=",")//checking the 2nd operand
    operand2=token;
    //now check value of operation and call the right method and send operand1,operand2 as arguments to get the result e.g
    if(opration=="ADD")
    system.println("result of addition is"+addMethod(operand1,operand2));
    hope that helps,
    Insighter

  • Box containing text and image (fit frame to contents).

    Hi all,
    The best way I can describe what I am trying to achieve is to show you a picture.
    So essentially, I'm looking to create a grey box, containing some text with an image floating to the right hand side. I want about 2mm space (padding) inside the grey box so no content goes right to the edge and I want the text to wrap around the image. The bit I'm finding tricky is when I go to use the 'Fit frame to content' option. I'm trying to remove the space indicated by the red arrows but if I anchor the image inside the text frame, the grey box shrinks to the height of the text and the image overflows.
    This would be incredibly simple to achieve on the web, am I doing something wrong?
    Any help/direction would be greatly appreciated.

    Sorry, been out for an hour.
    I understood that you want to have some variable height text frame (the gray box), and that this box should reduce in height to fit the text contained therein, but not  less than necessary for the bottom to be 2mm below the bottom edge of the variable height image (which I'm presuming is anchored to the first line of text in the frame) in a case where there is not sufficient text for fit frame to content to avoide making the frame shorter than the bottom of the image.
    I believe this could be scripted, but that will still require you to run the script. You should ask over in InDesign Scripting
    As far as a container that holds both text and image frames, yes, but only if you "paste into" a new frame after creating the two separately and grouping, which probably is not what you have in mind.

  • Concatenate text and property of dimension in script logic

    hello experts,
    how to concatenate text and property of dimension in script logic?
    as example:
    dimension : interco
    property    : mgmtallocdefcc
    *WHEN TIME.YEAR
    *IS %YEAR_VAR%
    *REC(EXPRESSION=%VALUE%,ACCOUNT=12345,ENTITY="I_" [INTERCO],MGMTALLOCDEFCC)
    *NEXT
    then it will read all as text: I_[INTERCO].MGMTALLOCDEFCC
    for example the value of property mgmtallocdefcc in interco dimension (INTERCO.MGMTALLOCDEFCC) is ABCDE.
    what i expect is :I_ABCDE
    thanks!

    Hi Yoki,
    Concatenation is only possible between text and variables %VAR% or $VAR$.
    Like ENTITY=I_%SOMEVAR%
    But in your case instead of concatenate you have to use other property like TARGETENTITY having valid ENTITY members:
    ENTITY=INTERCO.TARGETENTITY
    B.R. Vadim

  • Text and/or repeating frames run off page ...

    Please help. It's very hard to believe that Oracle Reports 6i does not have a way of keeping text and/or frames from running off the physical page. My frames and text boxes have thier vertical size set to variable, and I have set page protect to yes, although this does not seems to help.
    Will setting the page length to the correct number of lines in between the margins help, there must be a way of keeping this from happening.....please help!

    hello,
    by setting the frame elasticity to variable, you allow the frames to shring and expand regardless of the page-size. to restrict it to a specific page size, the out-most frame must represent the boundries and must be set to fixed.
    regards,
    the oracle reports team

  • Difference between New Formula and Formula Variable

    Can any body explain what is the difference between  New Formula and Formula Variable.
    Thanks

    Hi,
    Formula:http://help.sap.com/saphelp_nw04/helpdata/en/d3/8057f830a911d4b2be0050dadfb23f/frameset.htm
    Formula Variable:If you want use variables in the formulas of a form, you need to use formula variables. You can use formula variables only in form reports, and must define them in the form itself. They can be replaced in the same ways as text variables when you execute the report.
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db0b1555411d189660000e829fbbd/frameset.htm
    Bye
    Dinesh

  • Using the text and not the value of a filed

    Hi there,
    I'm programming a pdf form using life cycle, I'm using the following script in a "SEND TO" button in order to email an XML file with the data extracted from the form:
    var emailAddress = F.P1.Line.rawValue;
    var veicle = F.P1.Vehicle.rawValue;
    var shipper = F.P1.Shipper.rawValue;
    var date = F.P1.Date.rawValue;
    event.target.submitForm({cURL:"mailto:"+emailAddress+"?subject=Booking request from "+shipper+" date:"+date+" &body=Dear Sirs,Please find attached the completed PDF booking form for the following "+veicle+".",cSubmitAs:"XML",cCharset:"utf-8"});
    The problem is that I would like to use in a variable the text and not the value of the F.P1.Line.raw field.
    Thanks in advance

    Hi,
    This is not the appropriate forum to post this type of question. Please post all designer related queries in LiveCYcle Designer Forum to receive better response.
    From you query I understand you have a dropdown box with name as "Line". And you want to the "text" part of the selected item and not the "value" part. If it is so then do the following -
    1. Write the below code in onCHange event of your dropdown box.
    var ddValue = this.boundItem(xfa.event.newText);
    var nodeList = this.resolveNode("#items").nodes;
    var ddText = null;
    for (var i = 0; i < nodeList.length; i++)
    if (this.boundItem(nodeList.item(i).value) == ddValue)
    ddText = nodeList.item(i).value;
    break;
    global.selectedtxt = ddText;
    In the above code I am basically getting the "text" part of the item selected and then I am storing it in a global variable.
    2.
    Write the below code on click event of your button -
    var emailAddress = global.selectedtxt;
    Hope this helps.
    Thanks,
    Shivajiv.

  • Taking data from a edit text and placing it in a matrix

    Hi all, this is most probably a silly question and simple as pie for everyone on this site, but i just can't get it to work .
    Im trying to take data from a edit text and then place it into the matrix.the matrix has been added to the form already. my code looks like this
    dataSource = oForm.DataSources.UserDataSources.Add("MyData", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    oColumn = oColumns.Item("ItemC")
    oColumn.DataBind.SetBound(True, "", "MyData")
    dataSourceED = oEdit.DataSources.UserDataSources.Add("MyDataED", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    oEdit.DataBind.SetBound(True, "", "MydataED")
    dataSource.Value = dataSourceED.Value.ToString(oEdit)
    oMatrix.AddRow()
    Please can someone show me how it should be actualy done because i think the above is totaly wrong.

    I thought it was wrong Alexey Grebennikov because it wasn't doing anything.  I original said
    If (FormUID = "UidFrm") Then
    If (pVal.Before_Action = False) Then
    If (pVal.ItemUID = "Add") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
    AddToMatrix()
    end if
    end if
    end if
    then in AddMatrix() it had the code listed before,it was in a try block but i was not diplsying the error in the catch part,my bad/fault   but i've added it to a try block with it displaying the error in the catch block and i'm getting the error
    "Object Variable or block variable not set" when it gets to the line
    dataSourceED = oEdit.DataSources.UserDataSources.Add("MyDataED", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    any ideas what this error means, if i know that i think it will then work.
    Thank you to both of you Auzillaud Antoine and Alexey Grebennikov for helping. Auzillaud Antoine i tried loadfromdatasource and the other code but it obviously picks up the error before getting to the code you supplied. If i can figure out the error i'm sure it will all work.
    So please, any ideas why i get the error
    "Object Variable or block variable not set"

  • I am able to search only by text and not by Key in filter.

    We have a variable x which has bex properties in the infoobject level to
    1.display:   Key and Text
    2.text type: long text
    3.Query def filter value selection: Only values in infoprovider
    4.Query Exe filter value selection: Only posted values for navigation.
    in the Query designer to the object we have the same properties for 1 and 2 as above.
              On execueting the report in web,  In the variable screen for x <b>we can search for both Key and text</b>. (we have two radio buttons for Key and text),
               Whereas in the <b>result area for the filter</b> for x I am able to search <b>only by text and not by Key</b>. I want to search by both Key and text in filter screen. 
    Can u suggest suitable solution for this ASAP.

    I have been working on a similar problem and have found that it depends on what kind of InfoProvider you are using.
    If you are using an InfoCube, the setting that seems to control this is on the maintenance screen (Admin Workbench -> {InfoProvider to be edited} -> Change -> Extras -> Structur-Specific InfoObject Properties. If you want the key and text to display on the variables screen (which you already have), make sure the 'Display' is set to "Key and Text". If you want key and text to display on the filter screen, make sure the 'F4 Query' is set to "Values in Master Data Table". (You may also have to set the characteristic to display key and text in the query, but it sounds like you already have done this.)
    For an ODS, the settings are the same, but the path to get there is different. Go to Admin Workbench -> {ODS to be edited} -> Change -> {InfoObject to be edited} -> Right-click -> ODS-object Specific Properties. Same settings as above after this.
    For a MultiProvider, I found that the settings on the InfoObject itself seemed to control the display on the Web, so I ended up setting: Display = "Key and Text"; Query Def Filter Value Selection = "Values in Master Data Table"; and Query Exe Filter Value Selection = "Values in Master Data Table". That may be a bit of overkill, but I wanted to be sure to get both key and text in all situations.
    I also found that the settings for navigational attributes (e.g., 0PLANT__0REGION) for any kind of InfoProvider must be set at the InfoObject level (e.g., 0REGION), as above.
    Even with all of this, I still have a couple of InfoObjects left that I can't get to display both key and text for some unknown reason.
    Hope this helps...
    Bob

Maybe you are looking for