Question : SharePoint List 2010

On the "Edit Item Form" I have added a list as a web part, I want that list to be filtered based on what form is currently open. ie "Customer Name". Its a one to many relationship. I can change the view based on a filter but I need it to dive into another list. I was thinking something like this,

Show the items when column
Customer Name
is equal to
[Customer List]Customer Name  --- So this line needs to get data from the current open item in edit view.

Any Ideas on how to make this possbile? Thank you

Answer : SharePoint List 2010

I think you may want to create a console application for that. Just create a new project and select Win32 Console Application. You should then be able to paste you code in the main.cpp or any other main file.

This is a win32 application and therefore you wont be able to see the printf as there wont be any console. Here is how this one may work (though im not whether thats what would like it to be).

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
#include <stdio.h>
#include <string.h>
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 
{
   FILE * pFile;
   char mystring [100];

   pFile = fopen ("C:\\myfile.txt" , "r");
   if (pFile == NULL) 
      ::MessageBox(NULL, "Error opening file", "Application", MB_OK);
   else 
   {
     fgets (mystring , 100 , pFile);
     fclose (pFile);
     if(strstr(mystring, "sergio") == (char*) &mystring[0])
     {
          ::MessageBox(NULL, "matched, do action here!", "Application", MB_OK);
     }
   }
  return 0;
}
Random Solutions  
 
programming4us programming4us